<?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/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Advanced CSS Tables II &#8211; Using Mootools JavaScript For Alternate Row&#160;Colors</title> <atom:link href="http://davidwalsh.name/css-tables-mootools-alternate-row-colors/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/css-tables-mootools-alternate-row-colors</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Tue, 22 May 2012 05:31:04 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: Puneet Madaan</title><link>http://davidwalsh.name/css-tables-mootools-alternate-row-colors#comment-9563</link> <dc:creator>Puneet Madaan</dc:creator> <pubDate>Tue, 02 Jun 2009 05:02:41 +0000</pubDate> <guid
isPermaLink="false">http://www.davidwalsh.name/advanced-css-tables-ii-using-mootools-javascript-for-alternate-row-colors/#comment-9563</guid> <description>anyways, this site offers great resources :) will visit it often :)</description> <content:encoded><![CDATA[<p>anyways, this site offers great resources :) will visit it often :)</p> ]]></content:encoded> </item> <item><title>By: Puneet Madaan</title><link>http://davidwalsh.name/css-tables-mootools-alternate-row-colors#comment-9561</link> <dc:creator>Puneet Madaan</dc:creator> <pubDate>Tue, 02 Jun 2009 05:01:42 +0000</pubDate> <guid
isPermaLink="false">http://www.davidwalsh.name/advanced-css-tables-ii-using-mootools-javascript-for-alternate-row-colors/#comment-9561</guid> <description>you don&#039;t need that heavy increment loop.. All new Browsers have &lt;a href=&quot;w3.org/Style/Examples/007/evenodd&quot; rel=&quot;nofollow&quot;&gt;inbuilt capability&lt;/a&gt; for this.in mootools way, a easy way to achived by..$$(&#039;tr:even&#039;).setStyle(&#039;background-color&#039;, &#039;#ccc&#039;);
$$(&#039;tr:even&#039;).setStyle(&#039;background-color&#039;, &#039;#eee&#039;); </description> <content:encoded><![CDATA[<p>you don&#8217;t need that heavy increment loop.. All new Browsers have <a
href="w3.org/Style/Examples/007/evenodd" rel="nofollow">inbuilt capability</a> for this.</p><p>in mootools way, a easy way to achived by..</p><p>$$(&#8216;tr:even&#8217;).setStyle(&#8216;background-color&#8217;, &#8216;#ccc&#8217;);<br
/> $$(&#8216;tr:even&#8217;).setStyle(&#8216;background-color&#8217;, &#8216;#eee&#8217;);</p> ]]></content:encoded> </item> <item><title>By: davidwalsh83</title><link>http://davidwalsh.name/css-tables-mootools-alternate-row-colors#comment-33</link> <dc:creator>davidwalsh83</dc:creator> <pubDate>Fri, 17 Aug 2007 01:11:00 +0000</pubDate> <guid
isPermaLink="false">http://www.davidwalsh.name/advanced-css-tables-ii-using-mootools-javascript-for-alternate-row-colors/#comment-33</guid> <description>Thank you for your post and insights digitarald!  Taking the count var out of play will make the code a little cleaner and easier.I&#039;ve enjoyed your work with MooTools and continued success!</description> <content:encoded><![CDATA[<p>Thank you for your post and insights digitarald!  Taking the count var out of play will make the code a little cleaner and easier.</p><p>I&#8217;ve enjoyed your work with MooTools and continued success!</p> ]]></content:encoded> </item> <item><title>By: digitarald</title><link>http://davidwalsh.name/css-tables-mootools-alternate-row-colors#comment-35</link> <dc:creator>digitarald</dc:creator> <pubDate>Thu, 16 Aug 2007 20:23:01 +0000</pubDate> <guid
isPermaLink="false">http://www.davidwalsh.name/advanced-css-tables-ii-using-mootools-javascript-for-alternate-row-colors/#comment-35</guid> <description>You don&#039;t need count. Array::each has a second argument, the index (and a third, the Array itself).MooTools 1.11:$$(’table.shade-table tr’).each(function(el, i) {
el.addClass((i % 2) ? ‘even’ : ‘odd’);
});MooTools 1.2 (dev)$$(’table.shade-table tr:odd’).addClass(‘odd’);</description> <content:encoded><![CDATA[<p>You don&#8217;t need count. Array::each has a second argument, the index (and a third, the Array itself).</p><p>MooTools 1.11:</p><p>$$(’table.shade-table tr’).each(function(el, i) {<br
/> el.addClass((i % 2) ? ‘even’ : ‘odd’);<br
/> });</p><p>MooTools 1.2 (dev)</p><p>$$(’table.shade-table tr:odd’).addClass(‘odd’);</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.008 seconds using disk: basic
Object Caching 451/451 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-22 03:57:20 -->
