<?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: jQuery Highlight Navigation Menu v.01 Script</title>
	<atom:link href="http://www.onerutter.com/css/jquery-highlight-tab-v01-javascript.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.onerutter.com/web/css/jquery-highlight-tab-v01-javascript.html</link>
	<description>Designer, CSS/XHTML Expert, ActionScript 3, Magento Developer</description>
	<lastBuildDate>Tue, 07 Feb 2012 03:39:22 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: JJ-DR</title>
		<link>http://www.onerutter.com/web/css/jquery-highlight-tab-v01-javascript.html/comment-page-1#comment-38617</link>
		<dc:creator>JJ-DR</dc:creator>
		<pubDate>Wed, 18 May 2011 22:51:27 +0000</pubDate>
		<guid isPermaLink="false">http://onerutter.com/?p=161#comment-38617</guid>
		<description>can you paste the html code as well? Mine is not working. </description>
		<content:encoded><![CDATA[<p>can you paste the html code as well? Mine is not working.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Damon</title>
		<link>http://www.onerutter.com/web/css/jquery-highlight-tab-v01-javascript.html/comment-page-1#comment-32028</link>
		<dc:creator>Damon</dc:creator>
		<pubDate>Tue, 18 Jan 2011 19:21:40 +0000</pubDate>
		<guid isPermaLink="false">http://onerutter.com/?p=161#comment-32028</guid>
		<description>You have to make sure that in your CSS, the &quot;current&quot; class is changing the LI of the link... if your CSS is telling the A tag to use &quot;current&quot;, then remove the: .parents(&quot;li&quot;)   section of the script.  That way, you are telling the script to find all of the a tags that match the path, then apply the current class to that, rather than it&#039;s LI tag.
Hope that helps. </description>
		<content:encoded><![CDATA[<p>You have to make sure that in your CSS, the &quot;current&quot; class is changing the LI of the link&#8230; if your CSS is telling the A tag to use &quot;current&quot;, then remove the: .parents(&quot;li&quot;)   section of the script.  That way, you are telling the script to find all of the a tags that match the path, then apply the current class to that, rather than it&#039;s LI tag. </p>
<p>Hope that helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ger</title>
		<link>http://www.onerutter.com/web/css/jquery-highlight-tab-v01-javascript.html/comment-page-1#comment-30983</link>
		<dc:creator>Ger</dc:creator>
		<pubDate>Thu, 16 Dec 2010 20:34:39 +0000</pubDate>
		<guid isPermaLink="false">http://onerutter.com/?p=161#comment-30983</guid>
		<description>Hi Dan
Think your just mising your closing brackets.  I&#039;ve used the code below and it seems to work.
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;
$(document).ready(function(){
var path = location.pathname;
$(&quot;a[href $=&#039;&quot; + path + &quot;&#039;]&quot;).parents(&quot;li&quot;).each(function() {
$(this).addClass(&quot;current&quot;);
});
})
&lt;/script&gt;
 </description>
		<content:encoded><![CDATA[<p>Hi Dan<br />
Think your just mising your closing brackets.  I&#039;ve used the code below and it seems to work.<br />
&lt;script language=&quot;javascript&quot; type=&quot;text/javascript&quot;&gt;<br />
$(document).ready(function(){<br />
var path = location.pathname;<br />
$(&quot;a[href $=&#039;&quot; + path + &quot;&#039;]&quot;).parents(&quot;li&quot;).each(function() {<br />
$(this).addClass(&quot;current&quot;);<br />
});<br />
})<br />
&lt;/script&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://www.onerutter.com/web/css/jquery-highlight-tab-v01-javascript.html/comment-page-1#comment-26685</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Mon, 17 May 2010 14:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://onerutter.com/?p=161#comment-26685</guid>
		<description>Hi, thanks for the code. Unfortunately I can&#039;t get it to work. I tried Pauls version from his live site but unfortunately can&#039;t get it to work either.
I used:
$(document).ready(function(){
    var path = location.pathname;
    $(&quot;a[href $=&#039;&quot; + path + &quot;&#039;]&quot;).parents(&quot;li&quot;).each(function() {
        $(this).addClass(&quot;current&quot;);
    });
 and am linking to the lattest JQuery. I have my main nav within a container and the UL has an id of &#039;nav&#039;.
Any help or advice is greatly appreciated. </description>
		<content:encoded><![CDATA[<p>Hi, thanks for the code. Unfortunately I can&#39;t get it to work. I tried Pauls version from his live site but unfortunately can&#39;t get it to work either. </p>
<p>I used: </p>
<p>$(document).ready(function(){<br />
    var path = location.pathname;<br />
    $(&quot;a[href $=&#39;&quot; + path + &quot;&#39;]&quot;).parents(&quot;li&quot;).each(function() {<br />
        $(this).addClass(&quot;current&quot;);<br />
    }); </p>
<p> and am linking to the lattest JQuery. I have my main nav within a container and the UL has an id of &#39;nav&#39;. </p>
<p>Any help or advice is greatly appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Unibands</title>
		<link>http://www.onerutter.com/web/css/jquery-highlight-tab-v01-javascript.html/comment-page-1#comment-26255</link>
		<dc:creator>Unibands</dc:creator>
		<pubDate>Tue, 13 Apr 2010 15:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://onerutter.com/?p=161#comment-26255</guid>
		<description>Great stuff. Thanks </description>
		<content:encoded><![CDATA[<p>Great stuff. Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akhil</title>
		<link>http://www.onerutter.com/web/css/jquery-highlight-tab-v01-javascript.html/comment-page-1#comment-21404</link>
		<dc:creator>akhil</dc:creator>
		<pubDate>Tue, 25 Aug 2009 06:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://onerutter.com/?p=161#comment-21404</guid>
		<description>i have an issue with this script as this is not working fine in IE6, what may be the issue </description>
		<content:encoded><![CDATA[<p>i have an issue with this script as this is not working fine in IE6, what may be the issue</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jake Rutter</title>
		<link>http://www.onerutter.com/web/css/jquery-highlight-tab-v01-javascript.html/comment-page-1#comment-14755</link>
		<dc:creator>Jake Rutter</dc:creator>
		<pubDate>Tue, 27 Jan 2009 13:06:46 +0000</pubDate>
		<guid isPermaLink="false">http://onerutter.com/?p=161#comment-14755</guid>
		<description>Excellent, Im glad I could help you out. Im going to try the &#039;ends with syntax&#039; too. The attribute stuff in jQuery is pretty powerful.</description>
		<content:encoded><![CDATA[<p>Excellent, Im glad I could help you out. Im going to try the &#8216;ends with syntax&#8217; too. The attribute stuff in jQuery is pretty powerful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paul</title>
		<link>http://www.onerutter.com/web/css/jquery-highlight-tab-v01-javascript.html/comment-page-1#comment-14752</link>
		<dc:creator>paul</dc:creator>
		<pubDate>Tue, 27 Jan 2009 09:58:05 +0000</pubDate>
		<guid isPermaLink="false">http://onerutter.com/?p=161#comment-14752</guid>
		<description>Hi, thanks for your script.
Couple of things needed to be changed in order for it to work.
Firstly, don&#039;t think the square brackets around the path are necessary i.e. [ + path + ]
Secondly, I found it useful to use the &#039;ends with syntax for matching the path i.e instead of &quot;a[href=&#039; + path I used &quot;a[href $=&#039; + path
see docs at http://docs.jquery.com/Selectors/attributeEndsWith#attributevalue
anyway, it&#039;s live and working on a site I did, http://www.worldmarathonchallenge.com</description>
		<content:encoded><![CDATA[<p>Hi, thanks for your script.</p>
<p>Couple of things needed to be changed in order for it to work.</p>
<p>Firstly, don&#8217;t think the square brackets around the path are necessary i.e. [ + path + ] </p>
<p>Secondly, I found it useful to use the &#8216;ends with syntax for matching the path i.e instead of &#8220;a[href=&#8217; + path I used &#8220;a[href $=&#8217; + path</p>
<p>see docs at <a href="http://docs.jquery.com/Selectors/attributeEndsWith#attributevalue" rel="nofollow">http://docs.jquery.com/Selectors/attributeEndsWith#attributevalue</a></p>
<p>anyway, it&#8217;s live and working on a site I did, <a href="http://www.worldmarathonchallenge.com" rel="nofollow">http://www.worldmarathonchallenge.com</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

