[jQuery] Re: IE hover effect

2007-08-24 Thread Karl Swedberg
sure thing. you can also see the examples here: http://www.learningjquery.com/2007/02/quick-tip-set-hover-class-for- anything --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Aug 24, 2007, at 4:05 PM, Eridius wrote: Ok, i though .hover on a div in i

[jQuery] Re: IE hover effect

2007-08-24 Thread Eridius
Ok, i though .hover on a div in ie with jQuery would not work. I will try it our when i get home a hopefully it will work. Karl Swedberg-2 wrote: > > eridius, > > In IE6 ... > > The CSS :hover pseudo-class in stylesheets does not work on anything > except links > The jQuery .hover() metho

[jQuery] Re: IE hover effect

2007-08-24 Thread Karl Swedberg
eridius, In IE6 ... The CSS :hover pseudo-class in stylesheets does not work on anything except links The jQuery .hover() method works on everything So, among other things, you can dynamically add and remove a class through jQuery when you mouseover and mouseout any element, including a

[jQuery] Re: IE hover effect

2007-08-24 Thread Brandon Aaron
This is correct. That is why you need to create an actual class like this. div.hover { color: #000; } Then just add the JS that adds the actual hover class. Sorry for this being delivered in bits and pieces. :) -- Brandon Aaron On 8/24/07, Eridius <[EMAIL PROTECTED]> wrote: > > > > but if hover

[jQuery] Re: IE hover effect

2007-08-24 Thread Eridius
but if hover on div does not work in IE that classes will not be applied correctly. Brandon Aaron wrote: > > Just use the hover method to add a hover class and remove it. > > $('.myElements').hover(function() { > $(this).addClass('hover'); > }, function() { > $(this).removeClass('hove

[jQuery] Re: IE hover effect

2007-08-24 Thread Brandon Aaron
Just use the hover method to add a hover class and remove it. $('.myElements').hover(function() { $(this).addClass('hover'); }, function() { $(this).removeClass('hover'); }); -- Brandon Aaron On 8/24/07, Eridius <[EMAIL PROTECTED]> wrote: > > > > I don't see how that shows me how to make

[jQuery] Re: IE hover effect

2007-08-24 Thread Eridius
I don't see how that shows me how to make .hover work in IE on a div Brandon Aaron wrote: > > It doesn't but you can use the jQuery hover helper method to make IE bend > to > your will. > http://jquery.bassistance.de/api-browser/#hoverFunctionFunction > > -- > Brandon Aaron > > On 8/24/07, E

[jQuery] Re: IE hover effect

2007-08-24 Thread Klaus Hartl
Eridius wrote: Does anyone know if IE support hover effects on divs? Starting with IE 7. For IE 6 I wrote an easy to use snippet a while ago: http://www.stilbuero.de/2005/07/19/whateverhover-fast-and-easy/ --Klaus

[jQuery] Re: IE hover effect

2007-08-24 Thread Brandon Aaron
It doesn't but you can use the jQuery hover helper method to make IE bend to your will. http://jquery.bassistance.de/api-browser/#hoverFunctionFunction -- Brandon Aaron On 8/24/07, Eridius <[EMAIL PROTECTED]> wrote: > > > > Does anyone know if IE support hover effects on divs? > -- > View this me