<?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: Quick Tip &#8211; Set Hover Class for Anything</title>
	<atom:link href="http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything</link>
	<description>Tips, techniques, and tutorials for the jQuery JavaScript library</description>
	<lastBuildDate>Tue, 16 Mar 2010 15:31:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: TomB</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-79656</link>
		<dc:creator>TomB</dc:creator>
		<pubDate>Mon, 01 Feb 2010 16:10:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-79656</guid>
		<description>I want to set the hover class for a thumbnail but also for some subject related text in a ul on the same page.  When you hover on the thumbnail a simultaneous class change occurs for both the thumbnail and a particular line of text within the ul.  Can you direct me to a source to see how this can be done?</description>
		<content:encoded><![CDATA[<p>I want to set the hover class for a thumbnail but also for some subject related text in a ul on the same page.  When you hover on the thumbnail a simultaneous class change occurs for both the thumbnail and a particular line of text within the ul.  Can you direct me to a source to see how this can be done?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SlappyTheFish</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-79162</link>
		<dc:creator>SlappyTheFish</dc:creator>
		<pubDate>Fri, 13 Nov 2009 07:16:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-79162</guid>
		<description>Perhaps this is of some help:

http://www.4pmp.com/2009/11/dynamic-css-pseudo-class-styles-with-jquery/

It uses jQuery to create an inline stylesheet, so you&#039;re able to achieve basically any CSS styling that you can with a normal stylesheet.</description>
		<content:encoded><![CDATA[<p>Perhaps this is of some help:</p>
<p><a href="http://www.4pmp.com/2009/11/dynamic-css-pseudo-class-styles-with-jquery/" rel="nofollow">http://www.4pmp.com/2009/11/dynamic-css-pseudo-class-styles-with-jquery/</a></p>
<p>It uses jQuery to create an inline stylesheet, so you&#8217;re able to achieve basically any CSS styling that you can with a normal stylesheet.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 78 jQuery Scenarios to Fall in Love &#124; ProgrammerFish - Everything that's programmed!</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-79016</link>
		<dc:creator>78 jQuery Scenarios to Fall in Love &#124; ProgrammerFish - Everything that's programmed!</dc:creator>
		<pubDate>Thu, 08 Oct 2009 03:12:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-79016</guid>
		<description>[...] 50) Set hover class for anything [...]</description>
		<content:encoded><![CDATA[<p>[...] 50) Set hover class for anything [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miss chohoh</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-78245</link>
		<dc:creator>miss chohoh</dc:creator>
		<pubDate>Sat, 22 Aug 2009 06:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-78245</guid>
		<description>I really need your help or someone&#039;s help.

this is what im trying to do to ..

look at this link firefox or safari.
http://www.chohoh.com/pcs/hover.example.html

I need everything to look and function the way this does but it doesn&#039;t work in IE6
I used the suckerfish :hover for this and it just doesn&#039;t work properly with nested lists.

this is now what im trying to do with jquery.
http://www.chohoh.com/pcs/hoverthing.html

 i thought it would be nest to shift gears but now I&#039;m totally stuck on this and can&#039;t figure out why my hover isn&#039;t working.

if i can just get this to work with jquery and have it work in ie6 it&#039;s smooth sailing. but im in a real bind at the moment. i&#039;ve been working on this for 4 days now!

any help, advice is appreciated !!! 
hope to hear from someone soon

-lb</description>
		<content:encoded><![CDATA[<p>I really need your help or someone&#8217;s help.</p>
<p>this is what im trying to do to ..</p>
<p>look at this link firefox or safari.<br />
<a href="http://www.chohoh.com/pcs/hover.example.html" rel="nofollow">http://www.chohoh.com/pcs/hover.example.html</a></p>
<p>I need everything to look and function the way this does but it doesn&#8217;t work in IE6<br />
I used the suckerfish :hover for this and it just doesn&#8217;t work properly with nested lists.</p>
<p>this is now what im trying to do with jquery.<br />
<a href="http://www.chohoh.com/pcs/hoverthing.html" rel="nofollow">http://www.chohoh.com/pcs/hoverthing.html</a></p>
<p> i thought it would be nest to shift gears but now I&#8217;m totally stuck on this and can&#8217;t figure out why my hover isn&#8217;t working.</p>
<p>if i can just get this to work with jquery and have it work in ie6 it&#8217;s smooth sailing. but im in a real bind at the moment. i&#8217;ve been working on this for 4 days now!</p>
<p>any help, advice is appreciated !!!<br />
hope to hear from someone soon</p>
<p>-lb</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: In de reeks “Vloeken op”; Internet Explorer 6 &#124; futtta's blog</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-75103</link>
		<dc:creator>In de reeks “Vloeken op”; Internet Explorer 6 &#124; futtta's blog</dc:creator>
		<pubDate>Tue, 02 Jun 2009 08:12:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-75103</guid>
		<description>[...] in Wordpress zit, besef ik nu pas, al schrijvende. Misschien Suckerfish er toch terug uit en de jQuery-oplossing in de plaats, één dezer [...]</description>
		<content:encoded><![CDATA[<p>[...] in Wordpress zit, besef ik nu pas, al schrijvende. Misschien Suckerfish er toch terug uit en de jQuery-oplossing in de plaats, één dezer [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-72875</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Thu, 23 Apr 2009 20:21:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-72875</guid>
		<description>Actually, the example shows how to set it for all p tags within #hover-demo2. To apply it to all list items with an unordered list that has an id of &quot;selector,&quot; you would do it like this:

&lt;pre&gt;&lt;code&gt;$(&#039;#selector li&#039;).hover(function() {
  $(this).addClass(&#039;pretty-hover&#039;);
}, function() {
  $(this).removeClass(&#039;pretty-hover&#039;);
});
&lt;/code&gt;&lt;/pre&gt;

Or, for all list items within any unordered list:

&lt;pre&gt;&lt;code&gt;$(&#039;ul li&#039;).hover(function() {
  $(this).addClass(&#039;pretty-hover&#039;);
}, function() {
  $(this).removeClass(&#039;pretty-hover&#039;);
});
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Actually, the example shows how to set it for all p tags within #hover-demo2. To apply it to all list items with an unordered list that has an id of &#8220;selector,&#8221; you would do it like this:</p>
<pre><code>$('#selector li').hover(function() {
  $(this).addClass('pretty-hover');
}, function() {
  $(this).removeClass('pretty-hover');
});
</code></pre>
<p>Or, for all list items within any unordered list:</p>
<pre><code>$('ul li').hover(function() {
  $(this).addClass('pretty-hover');
}, function() {
  $(this).removeClass('pretty-hover');
});
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mr JQ</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-72874</link>
		<dc:creator>Mr JQ</dc:creator>
		<pubDate>Thu, 23 Apr 2009 19:47:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-72874</guid>
		<description>Great piece of code!!

Your example shows how to set for specific object..  How would I set for all #selector li tags of an unordered list without specifying an ID for every li..   Thanks in advance..</description>
		<content:encoded><![CDATA[<p>Great piece of code!!</p>
<p>Your example shows how to set for specific object..  How would I set for all #selector li tags of an unordered list without specifying an ID for every li..   Thanks in advance..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: padma</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-72537</link>
		<dc:creator>padma</dc:creator>
		<pubDate>Wed, 11 Mar 2009 13:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-72537</guid>
		<description>Thank You for all the help It works fine</description>
		<content:encoded><![CDATA[<p>Thank You for all the help It works fine</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Karl Swedberg</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-72529</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Tue, 10 Mar 2009 18:43:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-72529</guid>
		<description>If that&#039;s all you&#039;re including, then you must be getting an error. 

Sorry, I guess the article isn&#039;t explicit enough. Include the jQuery core file first:
&lt;pre&gt;&lt;code&gt;
&lt;head&gt;
&lt;!-- other stuff --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;assets_client/scripts/jqueryglobal.js&quot;&gt; &lt;/script&gt;
&lt;!-- other stuff --&gt;
&lt;/head&gt;
&lt;/code&gt;&lt;/pre&gt;
In your jqueryglobal.js file, wrap your script in a document ready block:

&lt;pre&gt;&lt;code&gt;$(document).ready(function() {
  $(&#039;#hover-demo&#039;).hover(function() {
    $(this).addClass(&#039;pretty-hover&#039;);
  }, function() {
    $(this).removeClass(&#039;pretty-hover&#039;);
  });
});
&lt;/code&gt;&lt;/pre&gt;

For more information, see &lt;a href=&quot;http://www.learningjquery.com/2006/09/introducing-document-ready&quot; rel=&quot;nofollow&quot;&gt;Introducing $(document).ready()&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>If that&#8217;s all you&#8217;re including, then you must be getting an error. </p>
<p>Sorry, I guess the article isn&#8217;t explicit enough. Include the jQuery core file first:</p>
<pre><code>
&lt;head&gt;
&lt;!-- other stuff --&gt;
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="assets_client/scripts/jqueryglobal.js"&gt; &lt;/script&gt;
&lt;!-- other stuff --&gt;
&lt;/head&gt;
</code></pre>
<p>In your jqueryglobal.js file, wrap your script in a document ready block:</p>
<pre><code>$(document).ready(function() {
  $('#hover-demo').hover(function() {
    $(this).addClass('pretty-hover');
  }, function() {
    $(this).removeClass('pretty-hover');
  });
});
</code></pre>
<p>For more information, see <a href="http://www.learningjquery.com/2006/09/introducing-document-ready" rel="nofollow">Introducing $(document).ready()</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: padma</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything/comment-page-1#comment-72527</link>
		<dc:creator>padma</dc:creator>
		<pubDate>Tue, 10 Mar 2009 17:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-72527</guid>
		<description>$(&#039;#hover-demo2 p&#039;).hover(function() {
    $(this).addClass(&#039;pretty-hover&#039;);
}, function() {
    $(this).removeClass(&#039;pretty-hover&#039;);
});

My jquery code file has only this nothing other than that. No the mouseover color change dosent&#039; work there is no javascript error.</description>
		<content:encoded><![CDATA[<p>$(&#8216;#hover-demo2 p&#8217;).hover(function() {<br />
    $(this).addClass(&#8216;pretty-hover&#8217;);<br />
}, function() {<br />
    $(this).removeClass(&#8216;pretty-hover&#8217;);<br />
});</p>
<p>My jquery code file has only this nothing other than that. No the mouseover color change dosent&#8217; work there is no javascript error.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
