<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/class</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 05 Sep 2008 09:16:32 GMT</pubDate>
<item>
<title>(JavaScript) JavaScript Object Inheritance - wizard04</title>
<link>http://snipplr.com/view/8146/javascript-object-inheritance/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 02 Sep 2008 10:48:31 GMT</pubDate>
<guid>http://snipplr.com/view/8146/javascript-object-inheritance/</guid>
</item>
<item>
<title>(JavaScript) List all class names used in a DOM tree - noah</title>
<link>http://snipplr.com/view/6488/list-all-class-names-used-in-a-dom-tree/</link>
<description><![CDATA[ <p>Lists each CSS class name that is applied to an element within an HTML page.

Some applications suggested by this pattern are:
- List class names by frequency of use.
- List class names by what kind of element they are applied to.
- List class names that are only used once.</p> ]]></description>
<pubDate>Wed, 28 May 2008 17:31:41 GMT</pubDate>
<guid>http://snipplr.com/view/6488/list-all-class-names-used-in-a-dom-tree/</guid>
</item>
<item>
<title>(JavaScript) Change CSS - leandemon</title>
<link>http://snipplr.com/view/5281/change-css/</link>
<description><![CDATA[ <p>This JavaScript function will dynamically change the style information for any CSS class in a Web Page. Applying this function to a class will cause all items calling on the class to change to the updated style value. This function works even if there are multiple stylesheets referenced in the document.

Example usage (assuming you have a stylesheet defining the "exampleA" class and "exampleB" id:

changecss('.exampleA','display','none');
changecss('#exampleB','display','none');</p> ]]></description>
<pubDate>Wed, 05 Mar 2008 21:20:06 GMT</pubDate>
<guid>http://snipplr.com/view/5281/change-css/</guid>
</item>
<item>
<title>(JavaScript) toogle class - marcio</title>
<link>http://snipplr.com/view/5086/toogle-class/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 15 Feb 2008 21:30:12 GMT</pubDate>
<guid>http://snipplr.com/view/5086/toogle-class/</guid>
</item>
<item>
<title>(JavaScript) class and className - Todd</title>
<link>http://snipplr.com/view/2368/class-and-classname/</link>
<description><![CDATA[ <p>One notorious discrepancy between IE and Firefox (or other "good" browsers) is the way they access the class HTML attribute. While I've used more complicated solutions in the past, this simple solution doesn't require any browser detection or even a function to set the class attribute that is used. Click the title for an explanation of how it works (see the comment by "penders").</p> ]]></description>
<pubDate>Tue, 20 Mar 2007 13:07:50 GMT</pubDate>
<guid>http://snipplr.com/view/2368/class-and-classname/</guid>
</item>
<item>
<title>(JavaScript) relWindow - New window based on 'rel' attr - mountainash</title>
<link>http://snipplr.com/view/2192/relwindow--new-window-based-on-rel-attr/</link>
<description><![CDATA[ <p>Based on the linked SitePoint article but with options to limit the container (eg body copy) and set the target. Use '_blank' for a new window for each link. Also adds a class (based on the rel value) for styling. Call the 'relWindow' on window load.</p> ]]></description>
<pubDate>Tue, 20 Feb 2007 21:45:22 GMT</pubDate>
<guid>http://snipplr.com/view/2192/relwindow--new-window-based-on-rel-attr/</guid>
</item>
<item>
<title>(JavaScript) addClass Function - 1man</title>
<link>http://snipplr.com/view/2181/addclass-function/</link>
<description><![CDATA[ <p>Function to look if an element has a class, if it doesn't simply add it to the element. If it does have a class add it to the class that is already there. Function expects 2 values, the element to add the class to, and the new class name (value).</p> ]]></description>
<pubDate>Mon, 19 Feb 2007 06:43:37 GMT</pubDate>
<guid>http://snipplr.com/view/2181/addclass-function/</guid>
</item>
<item>
<title>(JavaScript) Get Elements By Class Name - tylerhall</title>
<link>http://snipplr.com/view/1696/get-elements-by-class-name/</link>
<description><![CDATA[ <p>Returns a list of child nodes with the supplied class name.</p> ]]></description>
<pubDate>Mon, 20 Nov 2006 13:30:14 GMT</pubDate>
<guid>http://snipplr.com/view/1696/get-elements-by-class-name/</guid>
</item>
<item>
<title>(JavaScript) div class changer - leoh</title>
<link>http://snipplr.com/view/760/div-class-changer/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 09 Aug 2006 12:13:01 GMT</pubDate>
<guid>http://snipplr.com/view/760/div-class-changer/</guid>
</item>
<item>
<title>(JavaScript) Date Format v1.0 - Leech</title>
<link>http://snipplr.com/view/545/date-format-v10/</link>
<description><![CDATA[ <p>Formats a date according to a formatting string.
Created: 2006.05.05</p> ]]></description>
<pubDate>Fri, 21 Jul 2006 09:04:22 GMT</pubDate>
<guid>http://snipplr.com/view/545/date-format-v10/</guid>
</item>
<item>
<title>(JavaScript) Restrict v1.0 - Leech</title>
<link>http://snipplr.com/view/543/restrict-v10/</link>
<description><![CDATA[ <p>Class to mask inputs and restrict characters.
Created: 2005.10.08</p> ]]></description>
<pubDate>Fri, 21 Jul 2006 08:55:10 GMT</pubDate>
<guid>http://snipplr.com/view/543/restrict-v10/</guid>
</item>
<item>
<title>(JavaScript) Incremental Search v1.3 - Leech</title>
<link>http://snipplr.com/view/541/incremental-search-v13/</link>
<description><![CDATA[ <p>Auto-complete for inputs similar to gmail.
Created: 2005.08.06 - Modified: 2006.01.17</p> ]]></description>
<pubDate>Fri, 21 Jul 2006 08:49:02 GMT</pubDate>
<guid>http://snipplr.com/view/541/incremental-search-v13/</guid>
</item>
<item>
<title>(JavaScript) Tool Tip v1.1 - Leech</title>
<link>http://snipplr.com/view/540/tool-tip-v11/</link>
<description><![CDATA[ <p>Displays a tooltip when the mouse is over an element.
Created: 2005.08.07 - Modified: 2005.11.28</p> ]]></description>
<pubDate>Fri, 21 Jul 2006 08:47:39 GMT</pubDate>
<guid>http://snipplr.com/view/540/tool-tip-v11/</guid>
</item>
<item>
<title>(JavaScript) Data Slider v1.0 - Leech</title>
<link>http://snipplr.com/view/539/data-slider-v10/</link>
<description><![CDATA[ <p>Auto rotates through objects.
Created: 2005.08.08</p> ]]></description>
<pubDate>Fri, 21 Jul 2006 08:43:14 GMT</pubDate>
<guid>http://snipplr.com/view/539/data-slider-v10/</guid>
</item>
<item>
<title>(JavaScript) CountDown v1.0 - Leech</title>
<link>http://snipplr.com/view/537/countdown-v10/</link>
<description><![CDATA[ <p>Supplies countdown with pause and events.
Created: 2006.06.23</p> ]]></description>
<pubDate>Fri, 21 Jul 2006 08:19:37 GMT</pubDate>
<guid>http://snipplr.com/view/537/countdown-v10/</guid>
</item>
<item>
<title>(JavaScript) GetElementsByClassName() - travis</title>
<link>http://snipplr.com/view/88/getelementsbyclassname/</link>
<description><![CDATA[ <p>From here: http://www.dustindiaz.com/top-ten-javascript/</p> ]]></description>
<pubDate>Thu, 29 Jun 2006 14:13:46 GMT</pubDate>
<guid>http://snipplr.com/view/88/getelementsbyclassname/</guid>
</item>
</channel>
</rss>