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() 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 div.
>
> Hoep that helps to clarify, though probably the other explanations
> sufficed.
>
> --Karl
> _________________
> Karl Swedberg
> www.englishrules.com
> www.learningjquery.com
>
>
>
> On Aug 24, 2007, at 12:30 PM, Brandon Aaron wrote:
>
>> 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 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('hover');
>> > });
>> >
>> > --
>> > Brandon Aaron
>> >
>> > On 8/24/07, Eridius < [EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >>
>> >> 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, Eridius < [EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >>
>> >> >>
>> >> >> Does anyone know if IE support hover effects on divs?
>> >> >> --
>> >> >> View this message in context:
>> >> >> http://www.nabble.com/IE-hover-effect-
>> tf4324220s15494.html#a12314607
>> >> >> Sent from the JQuery mailing list archive at Nabble.com.
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>> >> --
>> >> View this message in context:
>> >> http://www.nabble.com/IE-hover-effect-
>> tf4324220s15494.html#a12314908
>> >> Sent from the JQuery mailing list archive at Nabble.com.
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context: http://www.nabble.com/IE-hover-effect-
>> tf4324220s15494.html#a12315617
>> Sent from the JQuery mailing list archive at Nabble.com.
>>
>>
>
>
>
--
View this message in context:
http://www.nabble.com/IE-hover-effect-tf4324220s15494.html#a12318956
Sent from the JQuery mailing list archive at Nabble.com.