<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Related Snippets</title>
		<link>http://www.bytemycode.com</link>
		<description>Related snippets for this snippet.</description>
		<pubDate>Tue, 02 Dec 2008 10:29:08 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	<item>
	<title>Analyte - Easy to use include for Google Analytics</title>
	<link>http://www.bytemycode.com/snippets/snippet/846/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/846/comments/</comments>
	<pubDate>Mon, 11 Aug 2008 23:50:31 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>analytics, drop, google, in, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/846/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Aug. 11th, 2008  11:50 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/846/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/analytics">analytics</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/drop">drop</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/google">google</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/in">in</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/846/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>Forgive the formality here; this is one of my professional scripts.<br /><br />Analyte 1.0 (c) 2008 Bryan Elliott<br />Purpose:<br />	Simplify inclusion of Google Analytics into any site, add GA tracking to non-HTML links, and reduce 'blocking' action of Google Analytics scripts.<br /><br />Use:<br />	<br /><br />License:<br />	Unlimited license granted to Abacus Studios, Inc. and I-Site, Inc.<br />	All other parties licensed under CC-BY-SA-3.0:<br />	<br />		Creative Commons Attribution / Share Alike 3.0 US<br />			Fulltext and synopsis at<br />				http://creativecommons.org/licenses/by-sa/3.0/us/<br /><br />	This license need not appear in minified or otherwise compressed forms <br />	of this script, so long as the script is in active use by a web site or <br />	application, and no other credit is claimed.</p>
		]]>
	</description>
</item><item>
	<title>Easy SQLite interface for XUL</title>
	<link>http://www.bytemycode.com/snippets/snippet/845/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/845/comments/</comments>
	<pubDate>Mon, 11 Aug 2008 23:43:09 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>JavaScript, sqlite, xul</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/845/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Aug. 11th, 2008  11:43 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/845/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/sqlite">sqlite</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/xul">xul</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/845/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>Dead simple interface for structured SQLite access within XUL, using Mozilla's SQLite Storage API.</p>
		]]>
	</description>
</item><item>
	<title>Javascript port of PHP's ParseURL</title>
	<link>http://www.bytemycode.com/snippets/snippet/798/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/798/comments/</comments>
	<pubDate>Thu, 06 Mar 2008 03:09:46 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>JavaScript, parse_url, PHP</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/798/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Mar. 6th, 2008  3:09 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/798/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/parse_url">parse_url</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/798/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 3
			<p>Simple.  It's parse_url, from PHP, implemented in Javascript.  Seen a lot of similar ones around the web, but they were all bulky code and none of them took advantage of the RegEx parser in JS.<br /><br />Applied as a member of the String prototype, so just call as myURL.parseURL();  Will return a named object with naming identical to that of PHP's function.<br /><br />Additional: if first argument is present, will break the querystring up into name/value pairs, unescaped, and return that instead of the raw querystriing.</p>
		]]>
	</description>
</item><item>
	<title>A couple of Prototype Ports for ActionScript</title>
	<link>http://www.bytemycode.com/snippets/snippet/788/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/788/comments/</comments>
	<pubDate>Fri, 11 Jan 2008 23:35:52 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>ActionScript, Bind, curry, JavaScript, Prototype</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/788/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Jan. 11th, 2008  11:35 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/788/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/ActionScript">ActionScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Bind">Bind</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/curry">curry</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Prototype">Prototype</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/788/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>Ok, so here's the deal.  I've started to dally with Flash a bit, and I'm feeling all naked without my nifty Prototype functionality.<br /><br />Most important to me are the bind() and curry() functions (though, others will rear their heads as my AS code gets more complex), Object.extend, and $A.  They are para-ported here.</p>
		]]>
	</description>
</item><item>
	<title>New Javascript Class with data hiding</title>
	<link>http://www.bytemycode.com/snippets/snippet/780/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/780/comments/</comments>
	<pubDate>Mon, 24 Dec 2007 02:34:05 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>"data hidng", Class, JavaScript, Prototype</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/780/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Dec. 24th, 2007  2:34 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/780/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22data+hidng%22">"data hidng"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Class">Class</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Prototype">Prototype</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/780/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>Ok, so I was getting frustrated with the inability to hide data in javascript, as well as a number of other concerns with existing class structures (the requirement to use this.constructor in lieu of self, for example).<br /><br />As a result, I've thrown together a nice little class constructor that accepts a class definition, as well as a class extender that allows you to build a new class from an existing one, with full access to all that private stuff.</p>
		]]>
	</description>
</item><item>
	<title>Function.prototype.promise</title>
	<link>http://www.bytemycode.com/snippets/snippet/779/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/779/comments/</comments>
	<pubDate>Thu, 20 Dec 2007 18:48:52 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>JavaScript, promise, Prototype</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/779/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Dec. 20th, 2007  6:48 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/779/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/promise">promise</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Prototype">Prototype</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/779/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 3
			<p>This is a version of my previous entrant, Promise, that will work with prototype, but does not require it.  It's slightly more advanced, using .apply here and there.<br /><br />It's basically a function to allow any other function to poll.  Polling is generally regarded as bad practice in object oriented code, but can make very simple the matter of, for example, running a bit of code only after a single-run event (like onload) occurs (whether that be in the future or past), another unrelated bit of code needs to be hack-tracked, or any other generic condition.<br /><br />Note that when the function runs, it doesn't necessarily run within the scope that's called it.  Its context is set to itself, rather than its normal context, and it's asynchronous, so you'll not get a return value.  If you use Prototype, you can bind the function and it'll behave as it should in terms of context, but I'm unaware of a way to cause an asynch function to block execution - and you'd really rather that not happen anyway, trust me.</p>
		]]>
	</description>
</item><item>
	<title>Javascript Key Shortcut Manager</title>
	<link>http://www.bytemycode.com/snippets/snippet/771/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/771/comments/</comments>
	<pubDate>Tue, 04 Dec 2007 10:32:33 +0000</pubDate>
	<dc:creator>HRCerqueira</dc:creator>
	<category>JavaScript, Key, Web</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/771/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Dec. 4th, 2007  10:32 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/771/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/HRCerqueira/" title="Helper">HRCerqueira</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Key">Key</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Web">Web</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/771/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 0
			<p>A simple, yet powerful (what a cliché) way of resgistering javascript keyboard shortcuts. Register any kind of keyboard shortcuts, and if applicable, override the browser default action.<br /><br />Example usage and more info here:<br /><br /><a href='http://www.hrcerqueira.com/a-javascript-keyboard-shortcut-manager/' target="_blank">Javascript Keyboard Shortcut Manager</a></p>
		]]>
	</description>
</item><item>
	<title>fade in / fade out javascript slideshow</title>
	<link>http://www.bytemycode.com/snippets/snippet/762/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/762/comments/</comments>
	<pubDate>Thu, 29 Nov 2007 12:46:48 +0000</pubDate>
	<dc:creator>HRCerqueira</dc:creator>
	<category>images, JavaScript, sl</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/762/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Nov. 29th, 2007  12:46 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/762/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/HRCerqueira/" title="Helper">HRCerqueira</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/images">images</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/sl">sl</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/762/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>This is a simple fade in / fade out javascript slideshow, search engine friendly with low resource usage.<br /><br />More info <a href='http://www.hrcerqueira.com/simple-fade-in-fade-out-javascript-slideshow/' target="_blank">here.</a><br /><br />Cheers</p>
		]]>
	</description>
</item><item>
	<title>Class name handling prototype methods</title>
	<link>http://www.bytemycode.com/snippets/snippet/761/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/761/comments/</comments>
	<pubDate>Wed, 28 Nov 2007 13:08:25 +0000</pubDate>
	<dc:creator>HRCerqueira</dc:creator>
	<category>CSS, DOM, HTML, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/761/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Nov. 28th, 2007  1:08 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/761/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/HRCerqueira/" title="Helper">HRCerqueira</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/CSS">CSS</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/DOM">DOM</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/HTML">HTML</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/761/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 3
			<p>These are some prototype methods to handle class names in html elements. As you all should know, a html element can have more than one class name.<br /><br />This is part of <a href='http://www.hrcerqueira.com/my-dom-handling-methods-re-designed/' target="_blank">my dom handling toolkit</a>. Check it out and use it at will.<br /><br />Cheers</p>
		]]>
	</description>
</item><item>
	<title>Transparent HTML nodes without affecting content</title>
	<link>http://www.bytemycode.com/snippets/snippet/760/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/760/comments/</comments>
	<pubDate>Wed, 28 Nov 2007 08:14:12 +0000</pubDate>
	<dc:creator>HRCerqueira</dc:creator>
	<category>HTML, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/760/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Nov. 28th, 2007  8:14 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/760/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/HRCerqueira/" title="Helper">HRCerqueira</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/HTML">HTML</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/760/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 4
			<p>This code allows you to set the "opcity" style attribute on a element without affecting it's content.<br /><br />Just call the function for a specific element or to all elements of a given classname after the document loads.<br /><br /><a href='http://www.hrcerqueira.com/semi-transparent-html-elements-without-affecting-the-content/' target="_blank">Examples and advanced usage here...</a></p>
		]]>
	</description>
</item><item>
	<title>Screen Resolution Detection</title>
	<link>http://www.bytemycode.com/snippets/snippet/748/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/748/comments/</comments>
	<pubDate>Mon, 22 Oct 2007 08:43:51 +0000</pubDate>
	<dc:creator>richard123</dc:creator>
	<category>JavaScript, PHP, resolution</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/748/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 22nd, 2007  8:43 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/748/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/richard123/" title="Beginner">richard123</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/resolution">resolution</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/748/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>This detects screen resolution using javascript and makes it available to php by way of cookies.</p>
		]]>
	</description>
</item><item>
	<title>createNamedElement</title>
	<link>http://www.bytemycode.com/snippets/snippet/745/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/745/comments/</comments>
	<pubDate>Wed, 17 Oct 2007 14:34:13 +0000</pubDate>
	<dc:creator>chaos</dc:creator>
	<category>createElement, IE, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/745/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Oct. 17th, 2007  2:34 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/745/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/chaos/" title="Helper">chaos</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/createElement">createElement</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/IE">IE</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/745/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>A wrapper on top of createElement for getting around IE problems with manipulating the name attribute. Unlike most solutions for this, it tests for which method to use once when the page loads rather than every time an element is created. By Chaos of <a href='http://lostsouls.org' target="_blank">Lost Souls MUD (a text-based fantasy RPG)</a>.</p>
		]]>
	</description>
</item><item>
	<title>Diminishing Returns Formula</title>
	<link>http://www.bytemycode.com/snippets/snippet/741/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/741/comments/</comments>
	<pubDate>Sun, 07 Oct 2007 03:47:13 +0000</pubDate>
	<dc:creator>chaos</dc:creator>
	<category>"diminishing returns", formula, JavaScript, math</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/741/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Oct. 7th, 2007  3:47 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/741/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/chaos/" title="Helper">chaos</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22diminishing+returns%22">"diminishing returns"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/formula">formula</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/math">math</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/741/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 3
			<p>A simple, flexible formula for generating diminishing returns out of input numbers.  Full explanation and home, with sample calculators and versions of the code in other languages, on the <a href='http://lostsouls.org/grimoire_diminishing_returns' target="_blank">Lost Souls MUD Grimoire</a>.</p>
		]]>
	</description>
</item><item>
	<title>Include and Promise for Prototype</title>
	<link>http://www.bytemycode.com/snippets/snippet/734/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/734/comments/</comments>
	<pubDate>Fri, 28 Sep 2007 02:08:28 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>JavaScript, promise, Prototype</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/734/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Sep. 28th, 2007  2:08 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/734/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/promise">promise</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Prototype">Prototype</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/734/comments/">6 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>Here's a quick lil' addon for Prototype that I use often.<br /><br />Prototype.Promise(condition, action, interval)<br />condition is a string that you want met before an action is run.<br />action is a function that does the action.<br />interval is the polling rate for condition in seconds, and defaults to 1<br /><br />So, for example, you may want function foo to run, but only once bar has been set:<br /><br />function foo(a,b) {<br />	this.retVal=a+b;<br />}<br />var thingy = {<br />	retVal:0<br />};<br />Prototype.Promise(<br />	'thingy.retVal=5',<br />	foo.bind(thingy,5,10),<br />	5<br />);<br /><br /><br />Then, in some point in the mysterious future, thingy.retVal gets set to 5, at which point, the Promise goes into effect, and thingy.retVal becomes 10.<br /><br />Where I find this particularly useful is in making sure that a document is loaded before doing something (condition="$$('body').length>=1), as you can see it used for the include functions.<br /><br />Speaking of which, the following include functions are great for getting scripts and stylesheets into your page.  I won't bother with examples, as they're pretty straightforward.<br /><br />Meanwhile, Prototype.scriptPath will point to wherever in your server's heirarchy Prototype was loaded from.  The regex, you'll note allows for names like prototype.compressed.js, prototype.modified.js, 2007-09-28.prototype.js, etc - just in case you want to keep track of your various hacks of Prototype, as I do.</p>
		]]>
	</description>
</item><item>
	<title>Javascript -> PHP Serializer for Prototype</title>
	<link>http://www.bytemycode.com/snippets/snippet/733/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/733/comments/</comments>
	<pubDate>Thu, 27 Sep 2007 08:02:39 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>JavaScript, PHP, Prototype, serialize</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/733/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Sep. 27th, 2007  8:02 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/733/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Prototype">Prototype</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/serialize">serialize</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/733/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>This is the final version of my Javascript serializer targetted at PHP.<br /><br />The point: <br /><blockquote>Objects are most easily passed over the network as serialized strings.  Between serialization and unserialization, serialization is by far the easier of the two.  Since object passing can sometimes be a process-hungry thing, we want to do things as quickly as possible.<br /><br />My solution is to always do the hard part in compiled code, while doing the easy part in script.  That is, whichever way you're passing an Object, you want to pass it in a natively decoded format for the target.<br /><br />Since I work mostly in PHP, this meant writing a module that would be able to generate a string that can be decoded with PHP's unserialize() function into a PHP Associative Array (or other applicable type).</blockquote><br />Notes:<br /><blockquote>This lib REQUIRES the Prototype lib.  You can hack prototype out of it, of course (by replacing the references to Object.extend() with explicit assignments), but I can't imagine why you'd want to bother; it's used mostly with Ajax.Request anyway.<br /><br />Previous versions of this code would add the .toPHP() member to the Object prototype.  After trying to enumerate things, I found that this is a REALLY bad thing to do, as toPHP springs up where it's not wanted in ALL objects.  As a result, I've opted to go the Prototype route and apply it as a member of the Object object.<br /><br />Please note that if you pass a serialized string to PHP via GET or POST, you'll need to stripslashes() before unserialization.</blockquote><br /><br /><br />Javascript sample of use:<br /><br />var myObject = {<br />	name:'value',<br />	test:['Array','of','strings'],<br />	bool:false,<br />	timestamp: new Date(),<br />	float: 3.1415926539,<br />	number: 42,<br />	func: function () {<br />		alert('Member functions are always omitted from serialization');<br />	}<br />}<br />alert(Object.toPHP(myObject));<br /><br />Output: <br /><blockquote>a:7:{s:4:"name";s:5:"value";s:4:"test";a:3:{i:0;s:5:"Array";i:1;s:2:"of";i:2;s:7:"strings";}s:4:"bool";b:0;s:9:"timestamp";i:1190897619824;s:5:"float";d:3.1415926539;s:6:"number";i:42;s:4:"func";null}</blockquote><br /><br />Sample of subsequent unserialization in PHP (passed via POST as 'myobject')<br /><br />$myObject=unserialize(stripslashes($_POST['myobject']));<br />var_dump($myObject);<br /><br />Output:<br /><blockquote>array(7) {<br />  ["name"]=><br />  string(5) "value"<br />  ["test"]=><br />  array(3) {<br />    [0]=><br />    string(5) "Array"<br />    [1]=><br />    string(2) "of"<br />    [2]=><br />    string(7) "strings"<br />  }<br />  ["bool"]=><br />  bool(false)<br />  ["timestamp"]=><br />  int(1192296601)<br />  ["float"]=><br />  float(3.1415926539)<br />  ["number"]=><br />  int(42)<br />  ["func"]=><br />  NULL<br />}</blockquote></p>
		]]>
	</description>
</item><item>
	<title>Drop-In Form Autofocus Script</title>
	<link>http://www.bytemycode.com/snippets/snippet/732/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/732/comments/</comments>
	<pubDate>Tue, 25 Sep 2007 10:50:13 +0000</pubDate>
	<dc:creator>chaos</dc:creator>
	<category>"form input", "input focus", autofocus, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/732/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Sep. 25th, 2007  10:50 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/732/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/chaos/" title="Helper">chaos</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22form+input%22">"form input"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/%22input+focus%22">"input focus"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/autofocus">autofocus</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/732/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 3
			<p>This script performs reliable, cross-browser input autofocus that often can be used simply by dropping it in, with no modifications to the form or HTML body.  It refuses to switch focus if it detects that the user has interacted with the form (avoiding a major source of annoyance with autofocus scripts) and correctly handles Firefox tabs opened "in the background", which most autofocus scripts fail on.  Official home is on the <a href='http://lostsouls.org/grimoire_form_autofocus' target="_blank">Lost Souls MUD Grimoire</a>.</p>
		]]>
	</description>
</item><item>
	<title>get mouse position</title>
	<link>http://www.bytemycode.com/snippets/snippet/684/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/684/comments/</comments>
	<pubDate>Fri, 20 Jul 2007 23:42:24 +0000</pubDate>
	<dc:creator>lavaramano</dc:creator>
	<category>DOM, JavaScript, mouse, onclick, pointer</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/684/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Jul. 20th, 2007  11:42 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/684/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/lavaramano/" title="Helper">lavaramano</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/DOM">DOM</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/mouse">mouse</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/onclick">onclick</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/pointer">pointer</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/684/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>it give us the position of the mouse. works on IE and Firefox<br /><br />use:<br />onclick="posicion_mouse(event)"</p>
		]]>
	</description>
</item><item>
	<title>key_pressed(event)</title>
	<link>http://www.bytemycode.com/snippets/snippet/683/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/683/comments/</comments>
	<pubDate>Fri, 20 Jul 2007 23:17:54 +0000</pubDate>
	<dc:creator>lavaramano</dc:creator>
	<category>DOM, JavaScript, Key, onkeyup</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/683/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Jul. 20th, 2007  11:17 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/683/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/lavaramano/" title="Helper">lavaramano</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/DOM">DOM</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Key">Key</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/onkeyup">onkeyup</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/683/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>Returns the keycode of the key we wrote on a textarea/input. works on IE and Firefox</p>
		]]>
	</description>
</item><item>
	<title>getElementsByClassName( classname )</title>
	<link>http://www.bytemycode.com/snippets/snippet/682/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/682/comments/</comments>
	<pubDate>Fri, 20 Jul 2007 23:12:45 +0000</pubDate>
	<dc:creator>lavaramano</dc:creator>
	<category>Array, getelementsby, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/682/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Jul. 20th, 2007  11:12 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/682/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/lavaramano/" title="Helper">lavaramano</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Array">Array</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/getelementsby">getelementsby</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/682/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 7
			<p>Returns an array with all the objects with certain class. tested on IE 6 and Firefox 2</p>
		]]>
	</description>
</item><item>
	<title>Regex methods for grabbing HTML Classes</title>
	<link>http://www.bytemycode.com/snippets/snippet/667/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/667/comments/</comments>
	<pubDate>Sat, 16 Jun 2007 06:07:59 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>Class, HTML, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/667/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sat. Jun. 16th, 2007  6:07 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/667/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Class">Class</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/HTML">HTML</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/667/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 5
			<p>Simple set of functions for capturing and manipulating the className member of an HTMLElement</p>
		]]>
	</description>
</item><item>
	<title>Javascript->PHP serializer</title>
	<link>http://www.bytemycode.com/snippets/snippet/666/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/666/comments/</comments>
	<pubDate>Mon, 04 Jun 2007 15:06:47 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>"object passing", JavaScript, PHP, serialize</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/666/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Jun. 4th, 2007  3:06 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/666/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22object+passing%22">"object passing"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/serialize">serialize</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/666/comments/">6 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>This is a quick set of overrides for Javascript so that any variable can be passed to PHP in a GET/POST activity.  Just call myVar.toPHP();<br /><br />I use this little set of functions extensively in a little Javascript/PHP RPC handler I wrote.  I don't have the reverse function, as I pass JSON back to the browser for the return value.<br /><br />Note: This lib is not safe for binaries or HTML Elements.  The former will come out similar to FTP ASCII breaks, and the latter will cause infinite recursion.  If you want to make a speical case for HTML Elements, do so; you could probably just test for parentNode and create a 'safe' object from that.  I didn't need it, so I didn't code it.<br /><br />As for binary safety, at some point between toPHP/escape/post/urldecode/unserialize, the object breaks.  Rather than create a huge fix for something I didn't need to do, I put in a quick match/hack.  Don't like it?  Write the fix yourself.</p>
		]]>
	</description>
</item><item>
	<title>Auto Create New Element</title>
	<link>http://www.bytemycode.com/snippets/snippet/665/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/665/comments/</comments>
	<pubDate>Mon, 04 Jun 2007 14:37:44 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>createElement, JavaScript, kiss</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/665/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Jun. 4th, 2007  2:37 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/665/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/createElement">createElement</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/kiss">kiss</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/665/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 10
			<p>This is a function I created to ease headaches caused by creating and inserting new stuff in an HTML document dynamically.  Essentially, it allows you to specify an HTML tag, in its entirety (attributes, styles, event handling, etc), via a single command.  You can nest it, so as to create an entire element tree programmatically in a lot less time as with document.createElement.<br /><br />Don't let the goofy function acronym fool you; this is damned powerful.<br /><br />First, the function spec:<br />HTMLElement acne(<i>type</i>[,<i>attributes</i>[,<i>styles</i>[,<i>events</i>[,<i>children</i>[,<i>parent</i>[,<i>document</i>]]]]]]);<br /><br />Arguments:<br /><blockquote>String <i>type</i>: type of element to create; same information as the argument of document.createElement<br />mixed Object <i>attributes</i>: attributes you want the new element to have (ie: href, src)<br />mixed Object <i>styles</i>: styles for the new element (ie: width, borderLeft)<br />(function|function Array) Object <i>events</i>: event handlers for the new element<br />HTMLElement|HTMLElement Array <i>children</i>: elements you want to be in the new element (ie: nesting is possible)<br />HTMLElement <i>parent</i>: parent node of object<br />HTMLDocument <i>document</i>: document to create element in<br /></blockquote><br />Return value: The newly created/configured element</p>
		]]>
	</description>
</item><item>
	<title>JavaScript Web-Safe Colour Palette Generator</title>
	<link>http://www.bytemycode.com/snippets/snippet/653/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/653/comments/</comments>
	<pubDate>Sat, 12 May 2007 10:38:19 +0000</pubDate>
	<dc:creator>albud</dc:creator>
	<category>colour, JavaScript, palette, web-safe</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/653/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sat. May. 12th, 2007  10:38 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/653/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/albud/" title="Helper">albud</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/colour">colour</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/palette">palette</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/web-safe">web-safe</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/653/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 7
			<p>A websafe colour palette generator in JavaScript.  Coded this after looking at <a href='http://www.bytemycode.com/snippets/snippet/585/' target="_blank">http://www.bytemycode.com/snippets/snippet/585/</a> and wanting to do it differently.<br /><br />It's been refactored so that:<br />* can pass generateColourPalette an arbitrary array of colour codes and it'll generate a palette. <br />* it hooks into the page through the external file<br />* uses an internal stylesheet instead of inline styles</p>
		]]>
	</description>
</item><item>
	<title>Hide your mail</title>
	<link>http://www.bytemycode.com/snippets/snippet/641/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/641/comments/</comments>
	<pubDate>Thu, 12 Apr 2007 14:33:12 +0000</pubDate>
	<dc:creator>siva</dc:creator>
	<category>Email, JavaScript, Mail, protect</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/641/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Apr. 12th, 2007  2:33 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/641/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/siva/" title="Beginner">siva</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Email">Email</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Mail">Mail</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/protect">protect</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/641/comments/">4 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>You can search for "@" or something like mail information in your page source code. You'll find nothing.<br />You can have link of your mail with a title or just you mail address as the title. Hope this code have no problem...</p>
		]]>
	</description>
</item><item>
	<title>Cookie object</title>
	<link>http://www.bytemycode.com/snippets/snippet/634/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/634/comments/</comments>
	<pubDate>Wed, 14 Mar 2007 12:06:37 +0000</pubDate>
	<dc:creator>shachi</dc:creator>
	<category>Cookie, JavaScript, object</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/634/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Mar. 14th, 2007  12:06 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/634/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/shachi/" title="Scripter">shachi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Cookie">Cookie</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/object">object</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/634/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 10
			<p>This is a simple cookie object that handles some of the basic cookie functions and which is kind of like a simple cookie-object parser.<br /><br />Hope you like it.<img src="http://www.bytemycode.com/img/wysiwyg/emo-bigsmile.gif" /></p>
		]]>
	</description>
</item><item>
	<title>libNog - A Browser-Independence lib for JavaScript</title>
	<link>http://www.bytemycode.com/snippets/snippet/631/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/631/comments/</comments>
	<pubDate>Thu, 08 Mar 2007 23:37:21 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>ajax, browser-independent, JavaScript, Library, XML</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/631/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Mar. 8th, 2007  11:37 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/631/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/ajax">ajax</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/browser-independent">browser-independent</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Library">Library</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/XML">XML</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/631/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p><a href='http://www.elflord.net/libNog' target="_blank">libNog</a> is a 9k library to provide somewhat easier browser-independence.  It is not yet complete, and will be continuously revised.  It grew from <a href='http://www.bytemycode.com/snippets/snippet/527/' target="_blank">this</a> snippet, and is still growing as I find things I use often.<br />Presently, libNog features:<br /><blockquote><br />A way to browser-independently get an XMLHttpRequest object.<br />A set of simple methods for GET, POST, HEAD, and to include other Scripts.<br />Simple methods for className control<br />A completely abstracted form of getElement*<br />Browser-independent methods for attaching and detaching event handlers<br />An event-normalization routine<br />A simple one-command 'Stop the Event' routine<br />And the big one: A simplified Class object by which classes can be built in JavaScript.<br /></blockquote><br />The above link will point you to the API documentation and history of libNog, as well as where to download the library.</p>
		]]>
	</description>
</item><item>
	<title>Get DOM-Object</title>
	<link>http://www.bytemycode.com/snippets/snippet/629/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/629/comments/</comments>
	<pubDate>Wed, 07 Mar 2007 15:48:53 +0000</pubDate>
	<dc:creator>stalkerX</dc:creator>
	<category>DOM, Element, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/629/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Mar. 7th, 2007  3:48 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/629/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/stalkerX/" title="Beginner">stalkerX</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/DOM">DOM</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Element">Element</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/629/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>Return object by type. Revision 2.</p>
		]]>
	</description>
</item><item>
	<title>Get DOM-Object</title>
	<link>http://www.bytemycode.com/snippets/snippet/628/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/628/comments/</comments>
	<pubDate>Wed, 07 Mar 2007 09:49:53 +0000</pubDate>
	<dc:creator>stalkerX</dc:creator>
	<category>DOM, Element, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/628/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Mar. 7th, 2007  9:49 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/628/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/stalkerX/" title="Beginner">stalkerX</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/DOM">DOM</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Element">Element</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/628/comments/">4 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> -3
			<p>Return object by type</p>
		]]>
	</description>
</item><item>
	<title>Clean DOM-Object</title>
	<link>http://www.bytemycode.com/snippets/snippet/627/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/627/comments/</comments>
	<pubDate>Wed, 07 Mar 2007 08:57:39 +0000</pubDate>
	<dc:creator>stalkerX</dc:creator>
	<category>DOM, Element, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/627/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Mar. 7th, 2007  8:57 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/627/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/stalkerX/" title="Beginner">stalkerX</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/DOM">DOM</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Element">Element</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/627/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 2
			<p>Remove all children of Object.</p>
		]]>
	</description>
</item><item>
	<title>Handy String Methods</title>
	<link>http://www.bytemycode.com/snippets/snippet/625/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/625/comments/</comments>
	<pubDate>Tue, 06 Mar 2007 19:26:51 +0000</pubDate>
	<dc:creator>albud</dc:creator>
	<category>JavaScript, String</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/625/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Mar. 6th, 2007  7:26 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/625/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/albud/" title="Helper">albud</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/String">String</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/625/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>I like to have these two methods in my toolbelt, even though it's syntactic sugar, I think it aids clarity.</p>
		]]>
	</description>
</item><item>
	<title>Emulating the PHP foreach(){...} in javascript</title>
	<link>http://www.bytemycode.com/snippets/snippet/620/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/620/comments/</comments>
	<pubDate>Sat, 03 Mar 2007 05:55:37 +0000</pubDate>
	<dc:creator>shachi</dc:creator>
	<category>foreach, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/620/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sat. Mar. 3rd, 2007  5:55 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/620/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/shachi/" title="Scripter">shachi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/foreach">foreach</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/620/comments/">4 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 7
			<p>Just a small snippet I discovered when I was tired writing somearrayname\[i\] I thought there was something like foreach in javascript but couldn't find any so why not make one?<br />For those foreach(){...} lovers.<img src="http://www.bytemycode.com/img/wysiwyg/emo-wink.gif" /><br /><br />Hope it makes your life easier.</p>
		]]>
	</description>
</item><item>
	<title>Chatterbox2</title>
	<link>http://www.bytemycode.com/snippets/snippet/606/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/606/comments/</comments>
	<pubDate>Thu, 01 Mar 2007 14:09:24 +0000</pubDate>
	<dc:creator>ushi</dc:creator>
	<category>ajax, Chat, JavaScript, PHP</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/606/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Mar. 1st, 2007  2:09 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/606/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/ushi/" title="Helper">ushi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/ajax">ajax</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Chat">Chat</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/606/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 14
			<p>Simple chatting script to be placed on a corner of a website <img src="http://www.bytemycode.com/img/wysiwyg/emo-smile.gif" /><br />Also a good example how to use ajax.</p>
		]]>
	</description>
</item><item>
	<title>Highlight Row on Rollover</title>
	<link>http://www.bytemycode.com/snippets/snippet/604/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/604/comments/</comments>
	<pubDate>Wed, 28 Feb 2007 15:35:28 +0000</pubDate>
	<dc:creator>mjlintz</dc:creator>
	<category>JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/604/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Feb. 28th, 2007  3:35 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/604/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/mjlintz/" title="Helper">mjlintz</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/604/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 10
			<p>Highlight table row on rollover.</p>
		]]>
	</description>
</item><item>
	<title>Hide and Show Elements by Class or ID</title>
	<link>http://www.bytemycode.com/snippets/snippet/595/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/595/comments/</comments>
	<pubDate>Fri, 23 Feb 2007 01:16:30 +0000</pubDate>
	<dc:creator>Casper42</dc:creator>
	<category>CSS, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/595/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Feb. 23rd, 2007  1:16 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/595/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Casper42/" title="Scripter">Casper42</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/CSS">CSS</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/595/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 9
			<p>There seems to be so many hide/show scripts out there, so here's the functions I wrote and use on a regular basis - there are 7 functions, hide, show and toggle by id or class - and the getElementByClass function that does not exist as a built in Javascript function...<br /><br />This is in response to the flurry of visibility scripts that just don't have all the pieces needed to make them totally useful.</p>
		]]>
	</description>
</item><item>
	<title>Hide And Show DIV's</title>
	<link>http://www.bytemycode.com/snippets/snippet/592/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/592/comments/</comments>
	<pubDate>Wed, 21 Feb 2007 08:53:06 +0000</pubDate>
	<dc:creator>mikedowson</dc:creator>
	<category>CSS, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/592/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Feb. 21st, 2007  8:53 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/592/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/mikedowson/" title="Beginner">mikedowson</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/CSS">CSS</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/592/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>An easy way to hide and show div's using Javascript and CSS.<br /><br />Basically just a slight variation on <a href='http://www.rgagnon.com/jsdetails/js-0086.html' target="_blank">this script</a> by Real Gagnon.</p>
		]]>
	</description>
</item><item>
	<title>Javascript web-safe color generator</title>
	<link>http://www.bytemycode.com/snippets/snippet/585/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/585/comments/</comments>
	<pubDate>Thu, 08 Feb 2007 10:05:26 +0000</pubDate>
	<dc:creator>dohpaz</dc:creator>
	<category>"web safe colors", JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/585/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Feb. 8th, 2007  10:05 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/585/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/dohpaz/" title="Helper">dohpaz</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22web+safe+colors%22">"web safe colors"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/585/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 9
			<p>I had searched high and low for a way to generate a palette of web-safe colors. Despite Google's best efforts, what I had found was lacking for my needs. So, I decided to write a library that would generate all 216 web safe colors, and then allow me to manipulate those colors in any way that I chose. <br /><br />If anybody is curious as to why I would want to do something so... simple, it is because I needed a very light-weight color picker, and didn't want to mess with any fancy options.</p>
		]]>
	</description>
</item><item>
	<title>JavaScript N-Dimentional sort</title>
	<link>http://www.bytemycode.com/snippets/snippet/583/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/583/comments/</comments>
	<pubDate>Sun, 28 Jan 2007 13:18:02 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>JavaScript, json, sort</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/583/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Jan. 28th, 2007  1:18 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/583/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/json">json</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/sort">sort</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/583/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 14
			<p>Flexible sorting algorithm based on Quicksort with extra functionality, such as:<br />- Direction (ie: ascending or descending)<br />- Sort-by-path (eg: item.name, item.name.firstName or item[5])<br />- Sorting function (returns true if two items are already sorted)<br />- Type checking<br />- All constants and support functions are members of the Sort() function<br />- Testsuite with hooks for cscript and in-browser javascript, so you can tweak and optimize, and make sure it still works<br />- Environment agnostic (can use with, say, SpiderMonkey or .Net's jsc)</p>
		]]>
	</description>
</item><item>
	<title>PHP Image Gallery</title>
	<link>http://www.bytemycode.com/snippets/snippet/568/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/568/comments/</comments>
	<pubDate>Sun, 24 Dec 2006 19:10:13 +0000</pubDate>
	<dc:creator>bhmahler</dc:creator>
	<category>HTML, JavaScript, PHP</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/568/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Dec. 24th, 2006  7:10 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/568/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/bhmahler/" title="Beginner">bhmahler</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/HTML">HTML</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/568/comments/">4 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 24
			<p>This is a PHP and JavaScript Image gallery that I created.  There are 2 uses for this.  <br />1.) You can save it as index.php and place in a folder containing images and it will display the images in that folder. <br />Example: <br />place index.php in images/folder<br />http://yoursite.com/images/folder/ <br />This will display all images in that folder<br /><br />2.) Pass in the path to the folder to display in the url<br />Example:<br />Save as imagegallery.php<br />http://yoursite.com/imagegallery.php?path=images/folde</p>
		]]>
	</description>
</item><item>
	<title>Number.times()</title>
	<link>http://www.bytemycode.com/snippets/snippet/567/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/567/comments/</comments>
	<pubDate>Thu, 21 Dec 2006 04:09:17 +0000</pubDate>
	<dc:creator>shachi</dc:creator>
	<category>JavaScript, Number, times</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/567/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Dec. 21st, 2006  4:09 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/567/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/shachi/" title="Scripter">shachi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Number">Number</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/times">times</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/567/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 9
			<p>This script lets you do any action the number of times specified.</p>
		]]>
	</description>
</item><item>
	<title>String.addCharAt()</title>
	<link>http://www.bytemycode.com/snippets/snippet/566/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/566/comments/</comments>
	<pubDate>Thu, 21 Dec 2006 03:48:14 +0000</pubDate>
	<dc:creator>shachi</dc:creator>
	<category>addCharAt, JavaScript, manipulation, String</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/566/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Dec. 21st, 2006  3:48 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/566/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/shachi/" title="Scripter">shachi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/addCharAt">addCharAt</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/manipulation">manipulation</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/String">String</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/566/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 10
			<p>Adds any character at the given index of a string.<br /><br />NOTE: Count starts from 0</p>
		]]>
	</description>
</item><item>
	<title>String.removeCharAt</title>
	<link>http://www.bytemycode.com/snippets/snippet/565/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/565/comments/</comments>
	<pubDate>Wed, 20 Dec 2006 10:26:57 +0000</pubDate>
	<dc:creator>shachi</dc:creator>
	<category>JavaScript, manipulation, removeCharAt, String</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/565/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Dec. 20th, 2006  10:26 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/565/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/shachi/" title="Scripter">shachi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/manipulation">manipulation</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/removeCharAt">removeCharAt</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/String">String</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/565/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 10
			<p>This simple function simply removes the character at the given index from a string.<br /><br />NOTE: The count starts from 0</p>
		]]>
	</description>
</item><item>
	<title>URL Parameters for Dynamic JS and CSS</title>
	<link>http://www.bytemycode.com/snippets/snippet/553/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/553/comments/</comments>
	<pubDate>Tue, 05 Dec 2006 14:15:45 +0000</pubDate>
	<dc:creator>Casper42</dc:creator>
	<category>ASPX, CSharp, CSS, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/553/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Dec. 5th, 2006  2:15 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/553/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Casper42/" title="Scripter">Casper42</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/ASPX">ASPX</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/CSharp">CSharp</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/CSS">CSS</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/553/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 10
			<p>This snippet allows an aspx page (c#) to accept URL parameters to allow styles or script to be dynamically appended to the rendered page.<br /><br />I wrote this simple snippet to allow one of our vendors to accept a style override so that their application would morph into something more closely resembling our own portal application.  Please see screenshots for clarification.<br /><br /><a href='http://jeremyedmiston.com/images/ats-original.jpg' target="_blank">Original Vendor Application</a><br /><br /><a href='http://jeremyedmiston.com/images/ats-override.jpg' target="_blank">Vendor Application with Style Override via URL</a></p>
		]]>
	</description>
</item><item>
	<title>Unload Javascript Files</title>
	<link>http://www.bytemycode.com/snippets/snippet/537/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/537/comments/</comments>
	<pubDate>Wed, 15 Nov 2006 07:29:16 +0000</pubDate>
	<dc:creator>Casper42</dc:creator>
	<category>JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/537/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Wed. Nov. 15th, 2006  7:29 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/537/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Casper42/" title="Scripter">Casper42</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/537/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 12
			<p>I found this to be a neat little trick for hiding(somewhat) source javacscript code from peering eyes...<br /><br />This function will unload all linked javascript files so that when you view source - you see no javascript files! (Especially helpful when using FF and using web-developer tools - no linked js files are displayed) The files remain resident in memory - allowing for the functions to work.<br /><br />Just call the function in the tag</p>
		]]>
	</description>
</item><item>
	<title>Save? Really?</title>
	<link>http://www.bytemycode.com/snippets/snippet/534/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/534/comments/</comments>
	<pubDate>Sun, 12 Nov 2006 06:11:27 +0000</pubDate>
	<dc:creator>shachi</dc:creator>
	<category>confirmation, JavaScript, saving</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/534/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Nov. 12th, 2006  6:11 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/534/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/shachi/" title="Scripter">shachi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/confirmation">confirmation</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/saving">saving</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/534/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> -13
			<p>Just confirms if the user really wants to save the page or just hit the Ctrl+S accidentally. Works in FF maybe in IE too.</p>
		]]>
	</description>
</item><item>
	<title>Javascript screensaver type thingy</title>
	<link>http://www.bytemycode.com/snippets/snippet/533/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/533/comments/</comments>
	<pubDate>Sun, 12 Nov 2006 06:09:14 +0000</pubDate>
	<dc:creator>shachi</dc:creator>
	<category>JavaScript, screensaver</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/533/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Nov. 12th, 2006  6:09 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/533/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/shachi/" title="Scripter">shachi</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/screensaver">screensaver</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/533/comments/">4 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> -11
			<p>This creates a black screen if the browser is inactive for a certain amout of time. I am not sure if it works in IE too but works fine in Firefox.</p>
		]]>
	</description>
</item><item>
	<title>Revised HTTPRequest for AJAX stuff</title>
	<link>http://www.bytemycode.com/snippets/snippet/527/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/527/comments/</comments>
	<pubDate>Tue, 07 Nov 2006 21:04:49 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>ajax, JavaScript, XML</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/527/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Nov. 7th, 2006  9:04 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/527/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/ajax">ajax</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/XML">XML</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/527/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 17
			<p>This is a brief revision to my previous snippet.  It is still what it was: a small, simple system for using XMLHttpRequest without using globals.<br /><br />I'll put the API spec in the code this time, so as not to clutter the front page further.<br /><br />Changes:<blockquote><br />Changed name to HTTPRequest (far more accurate)<br />Added HEAD requests<br />Shortened code by making a GenericRequest function<br />Used a better method for getting an XMLHttpRequest object (checks multiple MS versions and implements the latest one)<br /></blockquote></p>
		]]>
	</description>
</item><item>
	<title>Dead-simple XMLRequest framework for AJAX</title>
	<link>http://www.bytemycode.com/snippets/snippet/526/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/526/comments/</comments>
	<pubDate>Tue, 07 Nov 2006 12:41:53 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>ajax, http, JavaScript, XML</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/526/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Nov. 7th, 2006  12:41 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/526/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/ajax">ajax</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/http">http</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/XML">XML</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/526/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 15
			<p>This is a simple script to provide basic cross-platform XML request functionality in Javascript.  It's meant to be the core component in any AJAX style framework.  It is not an instantiable object, but instead is a namespaced microlibrary.<br /><br />Calling is easy:<br />XMLRequest.GET(<i>uri</i>, <i>query</i>, <i>callback</i>, <i>fallback</i>)<br />uri: The location you're after<br />query: an associative array of form data to provide via the URL<br />callback: callback function of the form myCallbackFunction(<i>objXMLHttpRequest</i>), which is called upon successful (response = 200 OK) retrieval of the XML data<br />fallback: myFallbackFunction(<i>objXMLHttpRequest</i>), which is called upon failed (response != 200 OK) retrieval of the XML data.<br /><br />XMLRequest.POST(<i>uri</i>, <i>query</i>, <i>form</i>, <i>callback</i>, <i>fallback</i>)<br />Similar, but does the query using the POST method.  'query' is the URL-appended data, still in associative array form, and 'form' is the same for the POST data.</p>
		]]>
	</description>
</item><item>
	<title>Portlet links in new window</title>
	<link>http://www.bytemycode.com/snippets/snippet/519/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/519/comments/</comments>
	<pubDate>Mon, 06 Nov 2006 09:19:10 +0000</pubDate>
	<dc:creator>Casper42</dc:creator>
	<category>JavaScript, MDI, Portal, utility</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/519/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Nov. 6th, 2006  9:19 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/519/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Casper42/" title="Scripter">Casper42</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/MDI">MDI</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Portal">Portal</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/utility">utility</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/519/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>This code is used in an Educational Portal product but can be tweaked to fit your need.<br /><br />This code adds a small icon next to the title of a 'portlet' that resides on the page.  By clicking the portlet title, the portlet usually maximizes within the constraint of the portal template - but the extra icon allows for the portlet to be opened in it's own window.<br /><br />This simulates an MDI interface.<br />(REQUIRES PopItUp snippet)</p>
		]]>
	</description>
</item><item>
	<title>Unload Javascript Files</title>
	<link>http://www.bytemycode.com/snippets/snippet/518/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/518/comments/</comments>
	<pubDate>Mon, 06 Nov 2006 09:12:08 +0000</pubDate>
	<dc:creator>Casper42</dc:creator>
	<category>JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/518/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Nov. 6th, 2006  9:12 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/518/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Casper42/" title="Scripter">Casper42</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/518/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 11
			<p>I found this to be a neat little trick for hiding(somewhat) source javacscript code from peering eyes...<br /><br />This function will unload all linked javascript files so that when you view source - you see no javascript files!  (Especially helpful when using FF and using web-developer tools - no linked js files are displayed)  The files remain resident in memory - allowing for the functions to work.<br /><br />Just call the function in the  tag</p>
		]]>
	</description>
</item><item>
	<title>Javascript Loader</title>
	<link>http://www.bytemycode.com/snippets/snippet/517/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/517/comments/</comments>
	<pubDate>Mon, 06 Nov 2006 08:33:33 +0000</pubDate>
	<dc:creator>Casper42</dc:creator>
	<category>conditional, JavaScript, loader</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/517/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Nov. 6th, 2006  8:33 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/517/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Casper42/" title="Scripter">Casper42</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/conditional">conditional</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/loader">loader</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/517/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 11
			<p>This script will allow for conditional loading of javascript libraries.  The example here only has one condition to check for IE or Firefox then loads the appropriate .js file.<br /><br />This is part of an .aspx template for an educational portal product.<br /><br />Usage for loading the script:<br />  <br />  </p>
		]]>
	</description>
</item><item>
	<title>Show/Hide All Elements by Tag Name</title>
	<link>http://www.bytemycode.com/snippets/snippet/506/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/506/comments/</comments>
	<pubDate>Mon, 30 Oct 2006 14:23:33 +0000</pubDate>
	<dc:creator>Mattkins</dc:creator>
	<category>CSS, DHTML, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/506/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 30th, 2006  2:23 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/506/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/Mattkins/" title="Beginner">Mattkins</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/CSS">CSS</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/DHTML">DHTML</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/506/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 12
			<p>Allows you to hide all elements on an HTML page by their tag name. Extremely handy in getting around the "Windowless Elements" problem in IE, which is a bug that puts certain elements, most commonly select boxes, on top of any other element, no matter what. As you can imagine, this causes real problems with DHTML drop-down menus and such like. This is the simplest and quickest fix I've come up with, I simply set this function to run alongside the drop-down and all of the select tags vanish before a menu drops, then I run the show function when the menu retracts.</p>
		]]>
	</description>
</item><item>
	<title>Loading fresh JS code</title>
	<link>http://www.bytemycode.com/snippets/snippet/500/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/500/comments/</comments>
	<pubDate>Sun, 29 Oct 2006 12:52:29 +0000</pubDate>
	<dc:creator>SCoon</dc:creator>
	<category>JavaScript, PHP, Web</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/500/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Oct. 29th, 2006  12:52 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/500/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/SCoon/" title="Scripter">SCoon</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/PHP">PHP</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Web">Web</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/500/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 11
			<p>Enforce loadig fresh script code for the external javascript files. Compatible with HTTP 1.0.</p>
		]]>
	</description>
</item><item>
	<title>Field character limiter</title>
	<link>http://www.bytemycode.com/snippets/snippet/491/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/491/comments/</comments>
	<pubDate>Thu, 26 Oct 2006 18:59:39 +0000</pubDate>
	<dc:creator>brendo</dc:creator>
	<category>forms, JavaScript, message, textarea</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/491/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Oct. 26th, 2006  6:59 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/491/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/brendo/" title="Helper">brendo</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/forms">forms</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/message">message</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/textarea">textarea</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/491/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 6
			<p>This snippet also you to limit the input in a form field to a specified number of characters. It displays a counter so users can see how many characters they have left, and once they reach the limit the field just trims the length to your limit. <img src="http://www.bytemycode.com/img/wysiwyg/emo-smile.gif" /> <br /><br />The following is a snippet from what I used when I implemented a tagboard to my site. Further revisions could/should read the LIMIT from the maxlength attribute <img src="http://www.bytemycode.com/img/wysiwyg/emo-wink.gif" /></p>
		]]>
	</description>
</item><item>
	<title>Accessing the name attribute of a DIV</title>
	<link>http://www.bytemycode.com/snippets/snippet/471/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/471/comments/</comments>
	<pubDate>Tue, 17 Oct 2006 15:25:59 +0000</pubDate>
	<dc:creator>jeremec</dc:creator>
	<category>Attribute, div, JavaScript, Name</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/471/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Tue. Oct. 17th, 2006  3:25 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/471/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/jeremec/" title="Helper">jeremec</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Attribute">Attribute</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/div">div</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Name">Name</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/471/comments/">7 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> -10
			<p>One way to group elements in HTML is to assign them a <b>name</b> attribute.  Multiple elements can share a name, then you can easily access them as an array using the <b><i>getElementsByName()</i></b> method.<br /><br />The problem is that some DOM parsers aren't keen on, or are ignorant to, this use of the name attribute, so a simple <b><i>object.name</i></b> returns undefined.  In my case, it was a DIV in Firefox 1.5 that was behaving this way.<br /><br />There is a simple work around for this that works in Firefox, I haven't tested it in others.  It is to use the <b><i>getAttribute</i></b> method that is an extension of any element object.<br /><br />This ability can be useful if you have a function that performs a transformation on the active element, and another transformation on closely related elements.</p>
		]]>
	</description>
</item><item>
	<title>XUL Make a Window</title>
	<link>http://www.bytemycode.com/snippets/snippet/447/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/447/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 18:19:31 +0000</pubDate>
	<dc:creator>strykstaguy</dc:creator>
	<category>firefox, JavaScript, xul</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/447/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  6:19 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/447/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/strykstaguy/" title="Beginner">strykstaguy</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/firefox">firefox</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/xul">xul</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/447/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 11
			<p>Just a little code to make a window in XUL</p>
		]]>
	</description>
</item><item>
	<title>Draggable Divs</title>
	<link>http://www.bytemycode.com/snippets/snippet/428/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/428/comments/</comments>
	<pubDate>Mon, 09 Oct 2006 03:36:21 +0000</pubDate>
	<dc:creator>sundaramkumar</dc:creator>
	<category>JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/428/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Mon. Oct. 9th, 2006  3:36 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/428/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_syntax_master.gif" align="middle" class="icon" alt="Syntax Master" /> <a href="http://www.bytemycode.com/members/member/sundaramkumar/" title="Syntax Master">sundaramkumar</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/428/comments/">4 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 18
			<p>Add dragging to your div elements. just adding class="drag" to the div element will make it draggable.<br /><br />Here i'm adding an example for a draggable dialog box</p>
		]]>
	</description>
</item><item>
	<title>Javascript Array to String</title>
	<link>http://www.bytemycode.com/snippets/snippet/425/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/425/comments/</comments>
	<pubDate>Sun, 08 Oct 2006 21:28:18 +0000</pubDate>
	<dc:creator>trevis</dc:creator>
	<category>Array, JavaScript, setTimeout, String</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/425/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Oct. 8th, 2006  9:28 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/425/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/trevis/" title="Beginner">trevis</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Array">Array</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/setTimeout">setTimeout</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/String">String</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/425/comments/">3 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 7
			<p>I use this function when passing an array to a function being called from setTimeout();</p>
		]]>
	</description>
</item><item>
	<title>Multiple Image Fader</title>
	<link>http://www.bytemycode.com/snippets/snippet/424/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/424/comments/</comments>
	<pubDate>Sun, 08 Oct 2006 21:19:30 +0000</pubDate>
	<dc:creator>trevis</dc:creator>
	<category>Fade, Image, JavaScript, slideshow</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/424/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Oct. 8th, 2006  9:19 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/424/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/trevis/" title="Beginner">trevis</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/Fade">Fade</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/Image">Image</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/slideshow">slideshow</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/424/comments/">0 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 12
			<p>Fade in/out multiple images like a slideshow.</p>
		]]>
	</description>
</item><item>
	<title>Debugging HTML Objects at Runtime</title>
	<link>http://www.bytemycode.com/snippets/snippet/423/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/423/comments/</comments>
	<pubDate>Sun, 08 Oct 2006 11:19:26 +0000</pubDate>
	<dc:creator>alp0001</dc:creator>
	<category>debug, debugging, JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/423/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Sun. Oct. 8th, 2006  11:19 AM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/423/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_beginner.gif" align="middle" class="icon" alt="Beginner" /> <a href="http://www.bytemycode.com/members/member/alp0001/" title="Beginner">alp0001</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/debug">debug</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/debugging">debugging</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/423/comments/">2 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 12
			<p>Basically, you can dynamically ask the webpage to look at a current object's attributes/values or even change the object's attributes/values. As such, running this script on any browser of your choice should show what attributes your particular browser will allow for an object reference you typed in.</p>
		]]>
	</description>
</item><item>
	<title>Xanga Swear Filter</title>
	<link>http://www.bytemycode.com/snippets/snippet/420/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/420/comments/</comments>
	<pubDate>Fri, 06 Oct 2006 14:42:25 +0000</pubDate>
	<dc:creator>BrandonReese</dc:creator>
	<category>"swear filter", JavaScript, xanga</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/420/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Fri. Oct. 6th, 2006  2:42 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/420/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_helper.gif" align="middle" class="icon" alt="Helper" /> <a href="http://www.bytemycode.com/members/member/BrandonReese/" title="Helper">BrandonReese</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22swear+filter%22">"swear filter"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/xanga">xanga</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/420/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 8
			<p>This is a swear filter script I wrote for my xanga blog. I don't know if it has any application anywhere else. This will replace the swear words listed in the array with the character defined in blank_char. This isn't perfect but it works pretty well.</p>
		]]>
	</description>
</item><item>
	<title>Class-based Javascript analog clock</title>
	<link>http://www.bytemycode.com/snippets/snippet/418/</link>
	<comments>http://www.bytemycode.com/snippets/snippet/418/comments/</comments>
	<pubDate>Thu, 05 Oct 2006 22:26:13 +0000</pubDate>
	<dc:creator>Fordiman</dc:creator>
	<category>"stupid, clock", JavaScript</category>
	<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/418/</guid>
	<description>
		<![CDATA[

			<img src="http://www.bytemycode.com/img/icon_calendar.gif" align="middle" class="icon" alt="Date Submitted" /> Thu. Oct. 5th, 2006  10:26 PM			<br />
			<img src="http://www.bytemycode.com/img/icon_revision.gif" align="middle" class="icon" alt="Revision" /> <a href="http://www.bytemycode.com/snippets/snippet/418/revisions/">1</a>
			<br />
			<img src="http://www.bytemycode.com/img/rank_scripter.gif" align="middle" class="icon" alt="Scripter" /> <a href="http://www.bytemycode.com/members/member/Fordiman/" title="Scripter">Fordiman</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_tag.gif" align="middle" class="icon" alt="Tags" /> <a href="http://www.bytemycode.com/tags/tag/%22stupid">"stupid</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/clock%22">clock"</a>&nbsp;|&nbsp;<a href="http://www.bytemycode.com/tags/tag/JavaScript">JavaScript</a>			<br />
			<img src="http://www.bytemycode.com/img/icon_comments.gif" align="middle" class="icon" alt="Comments" /> <a href="http://www.bytemycode.com/snippets/snippet/418/comments/">1 comments</a>
			<br />
			<img src="http://www.bytemycode.com/img/icon_ranking.gif" align="middle" class="icon" alt="Ranking" /> 11
			<p>This is an analog clock script designed to jump in place of a div element of class 'analogclock'.<br /><br />The div tag is not replaced in this custom element, but instead is used as a pseudo-document to hold the clock itself. The 'hands' are implemented using arrays of generated divs.<br /><br />I was actually inspired to write this widget because of an article on About.com's Javascript pages written by a guy named Stephen Chapman. His code was a mess, but I only discovered this after delving through two layers of 'unescape()' obfuscation.<br /><br />The basics: You control the look of the numbers and the 'box' model of the clock using basic CSS. You control the clock's size (it will always be square) using the 'size' attribute.<br /><br />The 'seconds', 'minutes', and 'hours' attributes are for the color of the 'hand's. 'numstyle' can be 1, i, I, or '.', each refering to a different type of face-numbering for the clock<br /><br />The 'localzone' attribute tells the script to use the user's local time zone. If it's '0', 'false' or 'no', the clock will use the 'clockzone' attribute to determine what time it is (the clock zone is relative to GMT, so, for example, US Eastern is -5. The clock automagically figures out if we're in DST, so you don't have to.)<br /><br />The 'city' and 'country' are for if you want to put in the city/country of origin for your clock. To be honest, you can put anything there.<br /><br />Lastly, I designed my version of the clock to be able to not 'tick', i.e., work like the old-school analog clocks. If you want ticking, add 'tick=1' to the attribute list<br /><br />As with all of my widgets, the idea here is that you can just  include the .js file and start dropping in tags without needing to know any ECMAScript at all.<br /><br />Additionally, for you ECMAScripters, I was very careful to keep my pollution of the global namespace to one class: analo