Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript [Solved] Affecting non-hovered items Re: [Solved] Affecting non-hovered items

#73605
Chris Coyier
Keymaster
Code:
$(function() {

$(“ul”).delegate(“li”, “mouseover mouseout”, function(e) {

$(“ul li”).not(this).css(“opacity”, e.type == ‘mouseover’ ? 0.5 : 1);

});

});