- This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- The forum ‘JavaScript’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › JavaScript › [Solved] Affecting non-hovered items
I want to only affect non-hovered items in a list. For example:
I want all items full opacity but when I hover over an items the other drop to .5 opacity. I know how to affect one’s I’m currently hovered over. However, I want the opposite effect.
$(“ul”).delegate(“li”, “mouseover mouseout”, function(e) {
$(“ul li”).not(this).css(“opacity”, e.type == ‘mouseover’ ? 0.5 : 1);
});
});
Awesome! Thanks Chris. I could have sworn you covered this in an article once but I couldn’t find it.
Chris,
I used:
and
both work great, however, IE freaks the text out and changes their alignment and size. The text even gets choppy.
http://www.chattahoocheetech.edu/sandbox/newctc/sports/crosscountry/
any ideas?
Wouldn’t something like this work? Tested it quickly using Firebug in Firefox 3.5.5 on Win XP.