<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>3scriptz</title>
	<link>http://www.3scriptz.com</link>
	<description>Free snippets, scripts, software and stuff</description>
	<pubDate>Sun, 27 Apr 2008 16:04:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<item>
		<title>Bioinformatics enters the world of Rich Internet Applications</title>
		<link>http://www.3scriptz.com/cool-stuff/bioinformatics-enters-the-world-of-rich-internet-applications.html</link>
		<comments>http://www.3scriptz.com/cool-stuff/bioinformatics-enters-the-world-of-rich-internet-applications.html#comments</comments>
		<pubDate>Sun, 27 Apr 2008 16:03:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Cool Stuff]]></category>

		<guid isPermaLink="false">http://www.3scriptz.com/the-coolest-new-technology-stuff/bioinformatics-enters-the-world-of-rich-internet-applications.html</guid>
		<description><![CDATA[A new Flex app demonstating how easy to use and powerful pubmed is. This tools enables you to search PubMed (www.ncbi.nlm.nih.gov/pubmed) journals without any page reload, read the abstracts and even go to the full article. Its only in alpha stage but it shows what huge potential flex has in bioinformatics.

A few bugs need sorting [...]]]></description>
			<content:encoded><![CDATA[<p>A new Flex app demonstating how easy to use and powerful pubmed is. This tools enables you to search PubMed (<a href="http://www.3scriptz.com/go.php?http://www.ncbi.nlm.nih.gov/pubmed" title="(93 hits)"><span class="a">www.ncbi.nlm.nih.gov/pubme</span><span class="a">d</span></a>) journals without any page reload, read the abstracts and even go to the full article. Its only in alpha stage but it shows what huge potential flex has in bioinformatics.</p>
<p><a href="http://www.3scriptz.com/go.php?http://www.3scriptz.com/wp-content/uploads/2008/04/pubmedflex.png" title="PubMed Flex Search Tool (82 hits)"><img src="http://www.3scriptz.com/wp-content/uploads/2008/04/pubmedflex.thumbnail.png" alt="PubMed Flex Search Tool" /></a></p>
<p>A few bugs need sorting out.<br />
- Page scroll when focus is on the app<br />
- CPU load with large xml files<br />
and probably some more</p>
<p>Features to be added<br />
- A nice Layout<br />
- Better caching<br />
- Faster searching<br />
and probably some more</p>
<p>Try it out at <a href="http://www.3scriptz.com/go.php?http://www.bioinformaticscentral.com/index.php/tools/flex-pubmed-search" title="The PubMed Flex Search (96 hits)" target="_blank">http://www.bioinformaticscentral.com/index.php/tools/flex-pubmed-search</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3scriptz.com/cool-stuff/bioinformatics-enters-the-world-of-rich-internet-applications.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Subtitle Translator</title>
		<link>http://www.3scriptz.com/software/subtitle-translator.html</link>
		<comments>http://www.3scriptz.com/software/subtitle-translator.html#comments</comments>
		<pubDate>Fri, 20 Jul 2007 19:01:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Software]]></category>
<category>srt</category><category>standalone</category><category>subtitle</category><category>translate</category><category>translator</category>
		<guid isPermaLink="false">http://www.3scriptz.com/software/subtitle-translator.html</guid>
		<description><![CDATA[Features:-
Line by line translation
Uses Babelfish, so an internet connection is required
Import/Export of subtitles in .srt format
 
Instructions:-
Unzip the archive
Launch the standalone .exe file
Browse for your subtitle
Choose your language
Click translate - it may take about 15-20 minutes to translate, you computer hasn&#8217;t hung dont worry
When the status bar says &#8220;Translated&#8221;, save your file to a desired location [...]]]></description>
			<content:encoded><![CDATA[<p>Features:-</p>
<p>Line by line translation<br />
Uses Babelfish, so an internet connection is required<br />
Import/Export of subtitles in .srt format</p>
<p> <img src="http://www.3scriptz.com/wp-content/uploads/2007/07/srt_trans.jpg" alt="srt_trans.jpg" /></p>
<p>Instructions:-</p>
<p>Unzip the archive<br />
Launch the standalone .exe file<br />
Browse for your subtitle<br />
Choose your language<br />
Click translate - it may take about 15-20 minutes to translate, you computer hasn&#8217;t hung dont worry<br />
When the status bar says &#8220;Translated&#8221;, save your file to a desired location by clicking &#8220;Save as&#8221;</p>
<p>This is an alpha version which may have have some bugs, but it works!<br />
 <br />
Download <a href="http://www.3scriptz.com/go.php?http://www.3scriptz.com/wp-content/uploads/2007/07/subtitle-translator.zip" title="subtitle-translator.zip (986 hits)">subtitle-translator.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3scriptz.com/software/subtitle-translator.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>AJAX File Browser</title>
		<link>http://www.3scriptz.com/software/ajax-file-browser.html</link>
		<comments>http://www.3scriptz.com/software/ajax-file-browser.html#comments</comments>
		<pubDate>Fri, 20 Jul 2007 18:54:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Software]]></category>
<category>ajax</category><category>browser</category><category>directory</category><category>file</category><category>php</category><category>tree</category>
		<guid isPermaLink="false">http://www.3scriptz.com/software/ajax-file-browser.html</guid>
		<description><![CDATA[This is a file browser made in PHP5 so you will need this for it to work. It&#8217;s all Ajax so you&#8217;ll get a directory tree without having to make read all the directories at once. It&#8217;s been made so that you can incorporate it in your scripts with minimum hassle.

Step 1: Upload the files [...]]]></description>
			<content:encoded><![CDATA[<p>This is a file browser made in PHP5 so you will need this for it to work. It&#8217;s all Ajax so you&#8217;ll get a directory tree without having to make read all the directories at once. It&#8217;s been made so that you can incorporate it in your scripts with minimum hassle.</p>
<p><img src="http://www.3scriptz.com/wp-content/uploads/2007/07/ajax-file-browser2.jpg" alt="ajax-file-browser2.jpg" /></p>
<p>Step 1: Upload the files on your server.</p>
<p>Step 2: Edit the config.php file to allow selected file extensions and select the path you want to read</p>
<p>That&#8217;s all!!!</p>
<p align="left">A template is provided in index.php. The code is pretty self explanatory so you can edit it quite easily to suit your specifications.</p>
<p align="left">Download <a href="http://www.3scriptz.com/go.php?http://www.3scriptz.com/wp-content/uploads/2007/07/ajax_file_browser.zip" title="ajax_file_browser.zip (350 hits)"><font face="Tahoma">ajax_file_browser.zip</font></a></p>
<p align="left"><a href="http://www.3scriptz.com/go.php?http://old.3scriptz.com/demos/miniscripts/AJAX_File_Browser" title="(829 hits)">View Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3scriptz.com/software/ajax-file-browser.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Flash Shoutcast Player</title>
		<link>http://www.3scriptz.com/software/flash-shoutcast-player.html</link>
		<comments>http://www.3scriptz.com/software/flash-shoutcast-player.html#comments</comments>
		<pubDate>Sun, 15 Jul 2007 23:48:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.3scriptz.com/software/flash-shoutcast-player.html</guid>
		<description><![CDATA[I&#8217;ve seen so many websites offering WMP, Real Player and Quicktime for playing their Shoutcast radio. This is very offputting to newbies who don&#8217;t know which to choose, choose the wrong one and think their computer should be returned. It doesnt only put them off your station but others too as the revert to the ancient [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen so many websites offering WMP, Real Player and Quicktime for playing their Shoutcast radio. This is very offputting to newbies who don&#8217;t know which to choose, choose the wrong one and think their computer should be returned. It doesnt only put them off your station but others too as the revert to the ancient radio. Save the internet and give &#8216;em one choice.</p>
<p><strong>Features:-</strong></p>
<ol>
<li>Play your shoutcast radio in a flash player</li>
<li>Easy to use for your users - all thats needed is flash</li>
<li>Displays currently playing song</li>
<li>Displays listners</li>
<li>Displays Bitrate</li>
<li>Can stop, mute, adjust volume and of course play</li>
<li>Set your own title for the player and set refresh rate</li>
</ol>
<p><a href="http://www.3scriptz.com/go.php?http://www.3scriptz.com/wp-content/uploads/2007/07/flexampv10.zip" title="flexampv10.zip (5256 hits)">flexAMP Version 1</a></p>
<p><a href="http://www.3scriptz.com/go.php?http://www.3scriptz.com/wp-content/uploads/2007/07/flexampv1.JPG" title="flexampv1.JPG (6237 hits)"><img src="http://www.3scriptz.com/wp-content/uploads/2007/07/flexampv1.thumbnail.JPG" alt="flexampv1.JPG" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3scriptz.com/software/flash-shoutcast-player.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>UnZip on Server - using PHP</title>
		<link>http://www.3scriptz.com/snippets/unzip-on-server-using-php.html</link>
		<comments>http://www.3scriptz.com/snippets/unzip-on-server-using-php.html#comments</comments>
		<pubDate>Sun, 15 Jul 2007 23:34:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://www.3scriptz.com/snippets/unzip-on-server-using-php.html</guid>
		<description><![CDATA[Ever had to upload 5452 small files averaging 50mbs? Ever had to upload a single 50MB file? No, never! Well here&#8217;s another useless fact - &#8220;A new TCP connection is required for every file uploaded by FTP. This connection takes time to open and close.&#8221; Therefore, it is much more time consuming trying to upload 5242 files than [...]]]></description>
			<content:encoded><![CDATA[<p>Ever had to upload 5452 small files averaging 50mbs? Ever had to upload a single 50MB file? No, never! Well here&#8217;s another useless fact - &#8220;A new TCP connection is required for every file uploaded by FTP. This connection takes time to open and close.&#8221; Therefore, it is much more time consuming trying to upload 5242 files than 1 if they average out the same file size.</p>
<p>Once a collegue told me he had a 10 meg script to upload and it should take about 20 minutes. How wrong was he - it took jus less than an hour. Upon commencing to moan I told him to &#8220;Zip it up&#8221;. He inadvertedly thought it I was being rude!</p>
<p>Anyway now you don&#8217;t need to worry about uploading file by file just &#8220;Zip it up&#8221; and with this script click browse and unzip it on your server. Then just do what you need to on your server.</p>
<p><strong>How to use</strong></p>
<ol>
<li>Upload pclzip.lib.php and index.php to your server</li>
<li>Create a directory named &#8220;uploads&#8221; in the same place and chmod it 0777</li>
<li>Point your browser to index.php</li>
<li>Upload your zip file and find it in the &#8220;uploads&#8221; directory</li>
</ol>
<p>Easy huh!</p>
<p> <a href="http://www.3scriptz.com/go.php?http://www.3scriptz.com/wp-content/uploads/2007/07/unzip_on_server.zip" title="PHP - UnZip on Server (1217 hits)">PHP - UnZip on Server</a></p>
<p><em>PHP Class to create and manage ZIP files taken from http://www.phpconcept.net</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3scriptz.com/snippets/unzip-on-server-using-php.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Easy Music Box</title>
		<link>http://www.3scriptz.com/software/easy-music-box.html</link>
		<comments>http://www.3scriptz.com/software/easy-music-box.html#comments</comments>
		<pubDate>Sun, 01 Jul 2007 15:43:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.3scriptz.com/blog/software/easy-music-box.html</guid>
		<description><![CDATA[Features:-

Dynamically browse a directory of music files (mp3, wma)
Search entire directory
Create a playlist
No database needed
Easily visualize your site
Easy template system
A variety of players, windows media player, javascript*, quicktime*, real player*, flash*, java*
Displays ID3 tags*
Add an image to each directory(album)*
Ajax for browsing and editing the playlist*

*unfinished
Instructions:-

Upload the folder 3scriptz
Open config.php
Edit the following two lines to match [...]]]></description>
			<content:encoded><![CDATA[<p>Features:-</p>
<ol>
<li>Dynamically browse a directory of music files (mp3, wma)</li>
<li>Search entire directory</li>
<li>Create a playlist</li>
<li>No database needed</li>
<li>Easily visualize your site</li>
<li>Easy template system</li>
<li>A variety of players, windows media player, javascript*, quicktime*, real player*, flash*, java*</li>
<li>Displays ID3 tags*</li>
<li>Add an image to each directory(album)*</li>
<li>Ajax for browsing and editing the playlist*</li>
</ol>
<p>*unfinished</p>
<p>Instructions:-</p>
<ol>
<li>Upload the folder 3scriptz</li>
<li>Open config.php</li>
<li>Edit the following two lines to match your full path to the script and your site url<br />
  $home_dir = &#8216;C:\apache2triad\htdocs\MusicShare/&#8217;; //set your path to the script here e.g. /home/script00/public_html/demos/3musicZ/<br />
  $web_path = &#8216;http://www.3scriptz.com/demos/3musicZ/&#8217;; //set your website address to the script here</li>
<li>Add you music in as many subfolders as you like</li>
</ol>
<p>Enjoy your site.</p>
<p>Changing the template:-</p>
<ol>
<li>Rename your template to template.html</li>
<li>Open it<br />
  Add {config} to the vey top of the file<br />
  Add {title} in between the &#8220;&#8221; tags<br />
  Add {body} whereever you want the body of the script to appear<br />
  Add {left} whereever you want the playlist to appear<br />
Upload your template as template.html in the /skins/ directory</li>
<li>Images, CSS and JavaScript must be relative to the script, usually this all would be in the root folder</li>
<li>Include<script type="text/javascript" src="play.js"></script> at the inbetween tags</li>
</ol>
<p>Remember this is in its first stages so expect will be changed a lot in the future. If you want any feature that I have not mentioned here please do not hesitate to let me know.</p>
<p><a href="http://www.3scriptz.com/go.php?http://sourceforge.net/project/showfiles.php?group_id=178338" title="(407 hits)">Download now!!!</a><br />
<a href="/demos/3musicZ"></a>View Demo!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3scriptz.com/software/easy-music-box.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>IPB: Logo Rotator</title>
		<link>http://www.3scriptz.com/add-ons/ipb-logo-rotator.html</link>
		<comments>http://www.3scriptz.com/add-ons/ipb-logo-rotator.html#comments</comments>
		<pubDate>Sun, 22 Oct 2006 15:31:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Add-ons]]></category>

		<guid isPermaLink="false">http://www.3scriptz.com/blog/add-ons/ipb-logo-rotator.html</guid>
		<description><![CDATA[This works on IPB (Invision Power Board) 2.2. However, if all you want is a simple PHP banner rotator then just use logo.php in the archive and create a &#8220;/logo/&#8221; folder with all your images. To include in a web page just use &#60;img src=&#8221;logo.php&#8221;&#62;.
 
Upload skin_logos.php to \sources\action_admin
Upload logo.php to \style_images
Open \sources\acp_loaders\acp_lookandfeel.php
Find:
$another_choice = array(
Add Below:
'logo' [...]]]></description>
			<content:encoded><![CDATA[<p>This works on IPB (Invision Power Board) 2.2. However, if all you want is a simple PHP banner rotator then just use logo.php in the archive and create a &#8220;/logo/&#8221; folder with all your images. To include in a web page just use <strong>&lt;img src=&#8221;logo.php&#8221;&gt;.</strong><br />
 </p>
<p>Upload skin_logos.php to \sources\action_admin<br />
Upload logo.php to \style_images</p>
<p>Open \sources\acp_loaders\acp_lookandfeel.php</p>
<p>Find:</p>
<pre><code>$another_choice = array(</code></pre>
<p>Add Below:</p>
<pre><code>'logo' =&gt; 'skin_logos',</code></pre>
<p> <br />
Open \skin_acp\IPB2_Standard\acp_skin_html\cp_skin_lookandfeel.php</p>
<p>Find:</p>
<pre><code>function skin_sets_overview_row_menulist( $r ) {

$IPBHTML = "";
//--starthtml--//

$IPBHTML .= &lt;&lt;&lt;EOF</code></pre>
<p>Below add:</p>
<pre><code>img_edit + " &lt;!--ALTERED.wrappper--&gt;&lt;a href='{$this-&gt;ipsclass-&gt;base_url}§ion={$this-&gt;ipsclass-&gt;section_code}&amp;act=logo&amp;code=edit&amp;id={$r['set_skin_set_id']}&amp;p={$r['set_skin_set_parent']}'&gt;Edit Logo Rotator&lt;/a&gt;",</code></pre>
<p>Now go to LOOK &amp; FEEL &gt; Skins &amp; Templates &gt; Skin Manager<br />
Choose the desired Skin/s<br />
Click on the Options button<br />
Go to Edit Template HTML &gt; All Global HTML &gt; global_board_header<br />
Find:</p>
<pre><code>logo_4.gif</code></pre>
<p>Replace with:
<pre><code>logo_4.php</code></pre>
<p>Note: It doesn&#8217;t have to be <strong>logo_4.gif</strong>, any logo file will do</p>
<p>In the drop down box you will see &#8220;Edit Logo Rotator&#8221;<br />
Click on it to edit your logos</p>
<p>Note:- make sure that you are able to write to \style_images\ (Chmodd 0777)</p>
<p><a href="http://www.3scriptz.com/go.php?http://www.3scriptz.com/blog/wp-content/uploads/2007/07/ipb_logo_rotator.zip" title="IPB: Logo Rotator (232 hits)">IPB: Logo Rotator</a></p>
<p><a href="http://www.3scriptz.com/go.php?http://www.3scriptz.com/demos/miniscripts/IPB_Logo_Rotator" title="(1052 hits)">View Demo!!!</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3scriptz.com/add-ons/ipb-logo-rotator.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Easy Banner Rotator</title>
		<link>http://www.3scriptz.com/snippets/easy-banner-rotator.html</link>
		<comments>http://www.3scriptz.com/snippets/easy-banner-rotator.html#comments</comments>
		<pubDate>Tue, 03 Oct 2006 15:23:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://www.3scriptz.com/blog/snippets/easy-banner-rotator.html</guid>
		<description><![CDATA[How many of you have a website? How many of you want to display a rotating
banner but don&#8217;t want the hassle of using PHP or a database? Well this is your
answer. Just copy and go.
Step 1: Add this code in the head section of the document. Between the  tags.

Step 2: Add this code in [...]]]></description>
			<content:encoded><![CDATA[<p>How many of you have a website? How many of you want to display a rotating<br />
banner but don&#8217;t want the hassle of using PHP or a database? Well this is your<br />
answer. Just copy and go.</p>
<p>Step 1: Add this code in the head section of the document. Between the <HEAD></HEAD> tags.</p>
<pre><code><script language='JavaScript' type='text/JavaScript' src='banners.js'></script></code></pre>
<p>Step 2: Add this code in the body section where you want to display your banner, between <BODY> </BODY> tags.</p>
<pre><code>/*Easy Banner Rotator
by 3scriptz.com
*/
var rotating_banner;
var rnd1 = Math.round((banners.length-1)*Math.random()); //get random number
document.write('<div id="banner">' + banners[rnd1] + '</div>'); //create div tags

function rotator() {
	rotating_banner = document.getElementById("banner"); //reference object
	setInterval(rotate_banner, 1000*5); //set time here
}
function rotate_banner() {
	var ctr = Math.round((banners.length-1)*Math.random()); //new random number for next banner
	rotating_banner.innerHTML = banners[ctr]; //display banner
}
window.onload = rotator;</code></pre>
<p>Step 3: Create a file called banner.js. Inside it place the following code:-</p>
<pre><code>/*Easy Banner Rotator
by 3scriptz.com
*/
var banners = new Array ( 
    '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="120" height="600" title="Goosefat Tower"><param name="movie" value="http://www.sportrelief.com/img/banners/flashbanners/goosefat_tower2.swf" /><param name="quality" value="high" /><embed src="http://www.sportrelief.com/img/banners/flashbanners/goosefat_tower2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="600"></embed></object>', 
    '<a href="http://www.3scriptz.com/go.php?http://www.actionagainsthunger.org" target="_top" title="(91 hits)"><img src="http://www.actionagainsthunger.org/images/aah_affiliate/banners/120x600_aah_progress_3l.gif" width="120" height="600"></a>',
	'<a href="http://www.3scriptz.com/go.php?http://www.recycle4charity.com" title="(107 hits)"><img src="http://www.recycle4charity.com/graphics/120x240_r4c.gif" width="120" height="240" border="0" alt="Recycle4Charity.com - A Recycling Program That Benefits Charities!"></a>',
	'<a href="http://www.3scriptz.com/go.php?http://www.unicef.org/" title="(106 hits)"><img src="images/unicef.jpg" width="120" height="600" border="0" alt="The United Nations Children\'s Fund - UNICEF"></a>',
	'<a href="http://www.3scriptz.com/go.php?http://www.savethechildren.org.uk/" title="(91 hits)"><img src="images/savethechildren.gif" width="120" height="600" border="0" alt="Save the Children"></a>'
);</code></pre>
<p>This is only an example. In banner.js you can insert your own banners in between the &#8221; quotes. you can add as many as you wish quickly and easily.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3scriptz.com/snippets/easy-banner-rotator.html/feed</wfw:commentRss>
		</item>
		<item>
		<title>Select all checkboxes</title>
		<link>http://www.3scriptz.com/snippets/select-all-checkboxes.html</link>
		<comments>http://www.3scriptz.com/snippets/select-all-checkboxes.html#comments</comments>
		<pubDate>Fri, 10 Mar 2006 15:18:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://www.3scriptz.com/blog/snippets/select-all-checkboxes.html</guid>
		<description><![CDATA[One frequently wanted snippet is one with the ability to select
all checkboxes in a form. Although there are many around some have problems when
using an array as the desired &#8216;name&#8217;. This script overcomes this by using DOM.
Step 1: Add this code in the head section of the document. Between the
&#60;HEAD&#62;&#60;/HEAD&#62; tags.
/*Select all check boxes script
/*
Select [...]]]></description>
			<content:encoded><![CDATA[<p>One frequently wanted snippet is one with the ability to select<br />
all checkboxes in a form. Although there are many around some have problems when<br />
using an array as the desired &#8216;name&#8217;. This script overcomes this by using DOM.</p>
<p>Step 1: Add this code in the head section of the document. Between the<br />
&lt;HEAD&gt;&lt;/HEAD&gt; tags.</p>
<pre><code>/*Select all check boxes script
/*
Select all check boxes script
by 3scriptz.com
*/
function SelectAll(){
var check_status = document.getElementsByName('pick[]');
for (i=0; i<check_status.length;></check_status.length;> check_status[i].checked = true;
}
function DeSelectAll(){
var check_status = document.getElementsByName('pick[]');
for (i=0; i<check_status.length;></check_status.length;> check_status[i].checked = false;
}</code></pre>
<p>Step 2: Add this code in the body section, between &lt;BODY&gt; &lt;/BODY&gt; tags.</p>
<pre><code>

<form action="form.php" name="cbox"><input name="pick[]" type="checkbox" />PHP<input name="pick[]" type="checkbox" />Ajax<input name="pick[]" type="checkbox" />Perl<input name="pick[]" type="checkbox" />MySQL<input name="pick[]" type="checkbox" />3scriptz<input name="pick[]" type="checkbox" />Javascript<input type="button" onclick="SelectAll()" /> <input type="button" onclick="DeSelectAll()" /> <input type="reset" /> <input type="submit" /> </form></code></pre>
<p>Thats all!!! To customise it just edit the inputs types just like you would for any form.</p>
<p><a href="http://www.3scriptz.com/go.php?http://www.3scriptz.com/blog/wp-content/uploads/2007/07/checkbox_selector.zip" title="Checkbox Selector (124 hits)">Checkbox Selector</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.3scriptz.com/snippets/select-all-checkboxes.html/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
