<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: Quick Tip - Set Hover Class for Anything</title>
	<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything</link>
	<description>Getting to know the library of choice for unobtrusive JavaScript</description>
	<pubDate>Fri, 29 Aug 2008 00:07:03 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>By: Jeronemo</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-52858</link>
		<dc:creator>Jeronemo</dc:creator>
		<pubDate>Wed, 06 Aug 2008 12:37:11 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-52858</guid>
		<description>I have one question remaining. I wondered if this works with a form button. I would like the form button to hover in IE. I tried to replace the p element by button but it doenst work?! I also tried to replace it by a class.. same result. Any idea?</description>
		<content:encoded><![CDATA[<p>I have one question remaining. I wondered if this works with a form button. I would like the form button to hover in IE. I tried to replace the p element by button but it doenst work?! I also tried to replace it by a class.. same result. Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeronemo</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-52857</link>
		<dc:creator>Jeronemo</dc:creator>
		<pubDate>Wed, 06 Aug 2008 12:23:42 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-52857</guid>
		<description>Yeah, that's it! So that's why other jquery things didnt work either. Thanks alot ^^</description>
		<content:encoded><![CDATA[<p>Yeah, that&#8217;s it! So that&#8217;s why other jquery things didnt work either. Thanks alot ^^</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-52856</link>
		<dc:creator>Karl Swedberg</dc:creator>
		<pubDate>Wed, 06 Aug 2008 12:17:57 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-52856</guid>
		<description>Hi Jeronemo,

I think the only problem your script has is that it isn't wrapped in a document ready function. Try it this way instead:
&lt;pre&gt;&lt;code&gt;$(document).ready(function() {
  $('#hover-demo1 p').hover(function() {
    $(this).addClass('pretty-hover');
  }, function() {
    $(this).removeClass('pretty-hover');
  }); 
});&lt;/code&gt;&lt;/pre&gt;
See &lt;a href="http://www.learningjquery.com/2006/09/introducing-document-ready" rel="nofollow"&gt;Introducing document ready&lt;/a&gt; for details.</description>
		<content:encoded><![CDATA[<p>Hi Jeronemo,</p>
<p>I think the only problem your script has is that it isn&#8217;t wrapped in a document ready function. Try it this way instead:</p>
<pre><code>$(document).ready(function() {
  $('#hover-demo1 p').hover(function() {
    $(this).addClass('pretty-hover');
  }, function() {
    $(this).removeClass('pretty-hover');
  });
});</code></pre>
<p>See <a href="http://www.learningjquery.com/2006/09/introducing-document-ready" rel="nofollow">Introducing document ready</a> for details.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeronemo</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-52855</link>
		<dc:creator>Jeronemo</dc:creator>
		<pubDate>Wed, 06 Aug 2008 11:38:10 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-52855</guid>
		<description>ehh that did not go as planned. Heres a link to my &lt;a href="http://tinyurl.com/65ga8d" rel="nofollow"&gt;website&lt;/a&gt;.

Thanks!</description>
		<content:encoded><![CDATA[<p>ehh that did not go as planned. Heres a link to my <a href="http://tinyurl.com/65ga8d" rel="nofollow">website</a>.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeronemo</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-52854</link>
		<dc:creator>Jeronemo</dc:creator>
		<pubDate>Wed, 06 Aug 2008 11:32:54 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-52854</guid>
		<description>Hi there,

This is a great tutorial. But for some reason i can't get it to worl. I tested it with  
Firebug and i can see the class="pretty-hover" is not added to the p element. So i guess it's the javascript. I read this tutorial for about 20 times. Did i miss something?

Here's my code:

&lt;code&gt;



	Test
	
	

	
		$('#hover-demo1 p').hover(function() {
		  $(this).addClass('pretty-hover');
		}, function() {
		  $(this).removeClass('pretty-hover');
		});		
	
	
	
		.pretty-hover, #hover-demo1 p:hover {
 			 background: #ff0;
		}
	
	



	
		My car has four weels!
	
	


&lt;/code&gt;

Thanks alot in advantage!</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>This is a great tutorial. But for some reason i can&#8217;t get it to worl. I tested it with<br />
Firebug and i can see the class=&#8221;pretty-hover&#8221; is not added to the p element. So i guess it&#8217;s the javascript. I read this tutorial for about 20 times. Did i miss something?</p>
<p>Here&#8217;s my code:</p>
<p><code></p>
<p>	Test</p>
<p>		$('#hover-demo1 p').hover(function() {<br />
		  $(this).addClass('pretty-hover');<br />
		}, function() {<br />
		  $(this).removeClass('pretty-hover');<br />
		});		</p>
<p>		.pretty-hover, #hover-demo1 p:hover {<br />
 			 background: #ff0;<br />
		}</p>
<p>		My car has four weels!</p>
<p></code></p>
<p>Thanks alot in advantage!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Slava</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-51896</link>
		<dc:creator>Slava</dc:creator>
		<pubDate>Wed, 23 Jul 2008 14:57:09 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-51896</guid>
		<description>&lt;strong&gt;Phil&lt;/strong&gt;, thank you! You saved a lot of my time. I had the same problem but didn`t manage to cope with it. Your solution works great!</description>
		<content:encoded><![CDATA[<p><strong>Phil</strong>, thank you! You saved a lot of my time. I had the same problem but didn`t manage to cope with it. Your solution works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phil Leitch</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-50339</link>
		<dc:creator>Phil Leitch</dc:creator>
		<pubDate>Wed, 02 Jul 2008 00:32:49 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-50339</guid>
		<description>I thought hover would solve my problem but it doesn't seem to. I have an overlay that I want to display if I hover over the image. What happens is if I try anything other than hide/show the effect repeats.

Hover and slideUp gives me the overlay sliding up, sliding down, sliding up, and so on. This is what happened when using mouseover, mouseout and based on the description for hover would solve that.

my code
&lt;code&gt;
  $('#widescreen_box').hover(
     function () {
    $('#overlay').slideUp('slow');
    },
    function () {
    $('#overlay').slideDown('slow');
    }
);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I thought hover would solve my problem but it doesn&#8217;t seem to. I have an overlay that I want to display if I hover over the image. What happens is if I try anything other than hide/show the effect repeats.</p>
<p>Hover and slideUp gives me the overlay sliding up, sliding down, sliding up, and so on. This is what happened when using mouseover, mouseout and based on the description for hover would solve that.</p>
<p>my code<br />
<code><br />
  $('#widescreen_box').hover(<br />
     function () {<br />
    $('#overlay').slideUp('slow');<br />
    },<br />
    function () {<br />
    $('#overlay').slideDown('slow');<br />
    }<br />
);<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Robinson</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-49991</link>
		<dc:creator>Michael Robinson</dc:creator>
		<pubDate>Fri, 27 Jun 2008 15:07:40 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-49991</guid>
		<description>Great tutorial, thanks  a lot.

I've used Java a lot, and found it to be fairly straight-forward.  Javascript on the other hand....  Resources like your webpage have helped me create some pretty fun things that I wouldn't have bothered attempting otherwise.

Keep it up!</description>
		<content:encoded><![CDATA[<p>Great tutorial, thanks  a lot.</p>
<p>I&#8217;ve used Java a lot, and found it to be fairly straight-forward.  Javascript on the other hand&#8230;.  Resources like your webpage have helped me create some pretty fun things that I wouldn&#8217;t have bothered attempting otherwise.</p>
<p>Keep it up!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dan</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-43081</link>
		<dc:creator>dan</dc:creator>
		<pubDate>Thu, 24 Apr 2008 20:37:40 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-43081</guid>
		<description>awesome tutorial.  this is exactly what I was looking for to ensure that each paragraph on my wordpress site gets highlighted when the mouse hovers over. 

required adding the script tag to the header.php of my theme and thats it</description>
		<content:encoded><![CDATA[<p>awesome tutorial.  this is exactly what I was looking for to ensure that each paragraph on my wordpress site gets highlighted when the mouse hovers over. </p>
<p>required adding the script tag to the header.php of my theme and thats it</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Donna Vitan</title>
		<link>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-36364</link>
		<dc:creator>Donna Vitan</dc:creator>
		<pubDate>Wed, 02 Apr 2008 15:40:31 +0000</pubDate>
		<guid>http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for-anything#comment-36364</guid>
		<description>This tutorial was on point and I was able to successfully implement this after a bit of time. I'm not a programmer at all and I'm finding jQuery easier to handle with simple things like this. Thanks so much Karl.</description>
		<content:encoded><![CDATA[<p>This tutorial was on point and I was able to successfully implement this after a bit of time. I&#8217;m not a programmer at all and I&#8217;m finding jQuery easier to handle with simple things like this. Thanks so much Karl.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
