<?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: Create Snook-Style Navigation Using&#160;MooTools</title> <atom:link href="http://davidwalsh.name/snook-navigation-mootools/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/snook-navigation-mootools</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 09 Feb 2012 10:59:12 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>By: Marek</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-26178</link> <dc:creator>Marek</dc:creator> <pubDate>Fri, 22 Jul 2011 09:44:56 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-26178</guid> <description>window.addEvent(&#039;domready&#039;, function(){
var list_a = $$(&#039;#menu ul li a&#039;);
list_a.each(function(element) {
var fx = new Fx.Styles(element, {duration: 900, wait: false, transition: Fx.Transitions.Sine.easeIn});
element.addEvent(&#039;mouseenter&#039;, function(){
fx.start({
&#039;background-position&#039;: [&#039;-457px 1px&#039;, &#039;0px 1px&#039;]
});
});
element.addEvent(&#039;mouseleave&#039;, function(){
fx.start({
&#039;background-position&#039;: [&#039;0px 1px&#039;, &#039;-457px 1px&#039;]
});
});
});
});</description> <content:encoded><![CDATA[<p>window.addEvent(&#8216;domready&#8217;, function(){<br
/> var list_a = $$(&#8216;#menu ul li a&#8217;);<br
/> list_a.each(function(element) {<br
/> var fx = new Fx.Styles(element, {duration: 900, wait: false, transition: Fx.Transitions.Sine.easeIn});<br
/> element.addEvent(&#8216;mouseenter&#8217;, function(){<br
/> fx.start({<br
/> &#8216;background-position&#8217;: ['-457px 1px', '0px 1px']<br
/> });<br
/> });<br
/> element.addEvent(&#8216;mouseleave&#8217;, function(){<br
/> fx.start({<br
/> &#8216;background-position&#8217;: ['0px 1px', '-457px 1px']<br
/> });<br
/> });<br
/> });<br
/> });</p> ]]></content:encoded> </item> <item><title>By: Marek</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-26176</link> <dc:creator>Marek</dc:creator> <pubDate>Fri, 22 Jul 2011 09:42:44 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-26176</guid> <description>Sorry the code:&lt;code&gt;
//
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Sorry the code:</p><p><code><br
/> //<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: Marek</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-26175</link> <dc:creator>Marek</dc:creator> <pubDate>Fri, 22 Jul 2011 09:40:56 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-26175</guid> <description>Hi Roark,thanks for this script you really saved my life :-). I had to changed it a little as I had to use horizontal background movement instead.
Just in case if anyone will need it here it is://Works fine in older MS IE !!!Great thanks again!!!br
Marek</description> <content:encoded><![CDATA[<p>Hi Roark,</p><p>thanks for this script you really saved my life :-). I had to changed it a little as I had to use horizontal background movement instead.<br
/> Just in case if anyone will need it here it is:</p><p>//</p><p>Works fine in older MS IE !!!</p><p>Great thanks again!!!</p><p>br<br
/> Marek</p> ]]></content:encoded> </item> <item><title>By: Suresh</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-24499</link> <dc:creator>Suresh</dc:creator> <pubDate>Fri, 24 Jun 2011 06:11:28 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-24499</guid> <description>Very nice thanx</description> <content:encoded><![CDATA[<p>Very nice thanx</p> ]]></content:encoded> </item> <item><title>By: lineblu</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-21460</link> <dc:creator>lineblu</dc:creator> <pubDate>Tue, 30 Nov 2010 13:41:51 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-21460</guid> <description>The solution for the active menu element:
&lt;code&gt;
if(!el.hasClass(&#039;current&#039;)) {
el.setStyle(&#039;background-position&#039;,&#039;-20px 35px&#039;).addEvents({
&#039;mouseenter&#039;: function(e) {
e.stop();
el.setStyle(&#039;color&#039;, &#039;#FFD700&#039;);
fx.start(&#039;background-position&#039;,&#039;-20px 94px&#039;);
},
&#039;mouseleave&#039;: function(e) {
e.stop();
fx.start(&#039;background-position&#039;,&#039;-20px 35px&#039;);
el.setStyle(&#039;color&#039;, &#039;#000000&#039;);
}
});
}
&lt;/code&gt;</description> <content:encoded><![CDATA[<p>The solution for the active menu element:<br
/> <code><br
/> if(!el.hasClass('current')) {<br
/> el.setStyle('background-position','-20px 35px').addEvents({<br
/> 'mouseenter': function(e) {<br
/> e.stop();<br
/> el.setStyle('color', '#FFD700');<br
/> fx.start('background-position','-20px 94px');<br
/> },<br
/> 'mouseleave': function(e) {<br
/> e.stop();<br
/> fx.start('background-position','-20px 35px');<br
/> el.setStyle('color', '#000000');<br
/> }<br
/> });<br
/> }<br
/> </code></p> ]]></content:encoded> </item> <item><title>By: lineblu</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-21457</link> <dc:creator>lineblu</dc:creator> <pubDate>Tue, 30 Nov 2010 11:11:36 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-21457</guid> <description>Hi David,is there no solution for an active state of a navigation element.
You have been asked twice (@visesh, @rasul) how to realize an exception for
&quot;visited links&quot; or &quot;current active links&quot;, but you didn&#039;t write any reply to these requests.I have the same problem and I hope you can find a little time to answer.</description> <content:encoded><![CDATA[<p>Hi David,</p><p>is there no solution for an active state of a navigation element.<br
/> You have been asked twice (@visesh, @rasul) how to realize an exception for<br
/> &#8220;visited links&#8221; or &#8220;current active links&#8221;, but you didn&#8217;t write any reply to these requests.</p><p>I have the same problem and I hope you can find a little time to answer.</p> ]]></content:encoded> </item> <item><title>By: Rasul</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-18314</link> <dc:creator>Rasul</dc:creator> <pubDate>Sun, 20 Jun 2010 19:47:15 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-18314</guid> <description>Hi David;if one of &quot;Li&quot;s (first li, for exmple) has &quot;current_page_item&quot; class (class=&quot;current_page_item&quot;) like wordpress menu; how can I disable events for it?Thanks.</description> <content:encoded><![CDATA[<p>Hi David;</p><p>if one of &#8220;Li&#8221;s (first li, for exmple) has &#8220;current_page_item&#8221; class (class=&#8221;current_page_item&#8221;) like wordpress menu; how can I disable events for it?</p><p>Thanks.</p> ]]></content:encoded> </item> <item><title>By: Roark</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-16766</link> <dc:creator>Roark</dc:creator> <pubDate>Mon, 05 Apr 2010 09:11:49 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-16766</guid> <description>@William I have the same problem as you, Joomla bounds me to the confines of 1.11,
I needed the same effect and used fx.styles. seemed to work ok in ie6:
var gallery_a = $$(&#039;#slideshow ul li a&#039;);
gallery_a.each(function(element) {
var fx = new Fx.Styles(element, {duration: 300, wait: false, transition: Fx.Transitions.Sine.easeIn});
element.addEvent(&#039;mouseenter&#039;, function(){
fx.start({
&#039;background-position&#039;: [&#039;290px 0px&#039;, &#039;253px 0px&#039;],
&#039;padding-right&#039;: [&#039;0px&#039;,&#039;50px&#039;]
});
});
element.addEvent(&#039;mouseleave&#039;, function(){
fx.start({
&#039;background-position&#039;: [&#039;253px 0px&#039;, &#039;290px 0px&#039;],
&#039;padding-right&#039;: [&#039;50px&#039;,&#039;0px&#039;]
});
});
});</description> <content:encoded><![CDATA[<p>@William I have the same problem as you, Joomla bounds me to the confines of 1.11,<br
/> I needed the same effect and used fx.styles. seemed to work ok in ie6:<br
/> var gallery_a = $$(&#8216;#slideshow ul li a&#8217;);<br
/> gallery_a.each(function(element) {<br
/> var fx = new Fx.Styles(element, {duration: 300, wait: false, transition: Fx.Transitions.Sine.easeIn});<br
/> element.addEvent(&#8216;mouseenter&#8217;, function(){<br
/> fx.start({<br
/> &#8216;background-position&#8217;: ['290px 0px', '253px 0px'],<br
/> &#8216;padding-right&#8217;: ['0px','50px']<br
/> });<br
/> });</p><p> element.addEvent(&#8216;mouseleave&#8217;, function(){<br
/> fx.start({<br
/> &#8216;background-position&#8217;: ['253px 0px', '290px 0px'],<br
/> &#8216;padding-right&#8217;: ['50px','0px']<br
/> });<br
/> });<br
/> });</p> ]]></content:encoded> </item> <item><title>By: William</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-11997</link> <dc:creator>William</dc:creator> <pubDate>Fri, 18 Sep 2009 17:18:05 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-11997</guid> <description>@David Walsh:  I know :(  However, my site runs on joomla and it&#039;ll be a lot of backward coding if I upgrade.  The 1.1 layer doesn&#039;t work with half of my scripts running on the site now.</description> <content:encoded><![CDATA[<p>@David Walsh:  I know :(  However, my site runs on joomla and it&#8217;ll be a lot of backward coding if I upgrade.  The 1.1 layer doesn&#8217;t work with half of my scripts running on the site now.</p> ]]></content:encoded> </item> <item><title>By: David Walsh</title><link>http://davidwalsh.name/snook-navigation-mootools/comment-page-1#comment-11995</link> <dc:creator>David Walsh</dc:creator> <pubDate>Fri, 18 Sep 2009 17:07:54 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=1647#comment-11995</guid> <description>William:  1.1 is almost 2 years old now -- time to upgrade?</description> <content:encoded><![CDATA[<p>William:  1.1 is almost 2 years old now &#8212; time to upgrade?</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 4/19 queries in 0.017 seconds using disk: basic
Object Caching 867/872 objects using disk: basic

Served from: davidwalsh.name @ 2012-02-09 09:19:49 -->
