<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Simplest Classname Switcher</title>
	<atom:link href="http://mauzon.com/simple_classname_switcher/feed/" rel="self" type="application/rss+xml" />
	<link>http://mauzon.com/simple_classname_switcher/</link>
	<description>Coding and programming tricks, ideas, notes: xHTML, CSS, JS etc</description>
	<lastBuildDate>Wed, 21 Jul 2010 11:22:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alex</title>
		<link>http://mauzon.com/simple_classname_switcher/comment-page-1/#comment-7253</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Wed, 30 May 2007 06:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mauzon.com/?p=81#comment-7253</guid>
		<description>Good idea, thanks a lot! :)</description>
		<content:encoded><![CDATA[<p>Good idea, thanks a lot! <img src='http://mauzon.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynn</title>
		<link>http://mauzon.com/simple_classname_switcher/comment-page-1/#comment-7252</link>
		<dc:creator>Lynn</dc:creator>
		<pubDate>Tue, 29 May 2007 10:19:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.mauzon.com/?p=81#comment-7252</guid>
		<description>&lt;code&gt;function toggleClassName(obj,sClassName,switcher){
	var re = new RegExp(&#039;\b&#039;+sClassName+&#039;\b&#039;,&#039;g&#039;);
	if(switcher){
		if(!obj.className.match(re))
			obj.className=obj.className + &#039; &#039; + sClassName;
	}else{
		obj.className=obj.className.replace(re,&#039;&#039;);
	}
}&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p><code>function toggleClassName(obj,sClassName,switcher){<br />
	var re = new RegExp('\b'+sClassName+'\b','g');<br />
	if(switcher){<br />
		if(!obj.className.match(re))<br />
			obj.className=obj.className + ' ' + sClassName;<br />
	}else{<br />
		obj.className=obj.className.replace(re,'');<br />
	}<br />
}</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lynn</title>
		<link>http://mauzon.com/simple_classname_switcher/comment-page-1/#comment-7251</link>
		<dc:creator>Lynn</dc:creator>
		<pubDate>Tue, 29 May 2007 10:10:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.mauzon.com/?p=81#comment-7251</guid>
		<description>
toggleClassName(div, &#039;test&#039;, false)


Oooops…</description>
		<content:encoded><![CDATA[<p>toggleClassName(div, &#8216;test&#8217;, false)</p>
<p>Oooops…</p>
]]></content:encoded>
	</item>
</channel>
</rss>
