Fri, 2009-07-03 14:10
Hi all,
So i have this code:
div#rating-field a:hover
And i want an element other than this to do something when you hover over THIS element...
div#rating-field a:hover -> someother element{color:black;}
Something like that..
is this possible? are there advanced selectors or something?
Fri, 2009-07-03 17:04
#1
you'll need javascript
you'll need javascript.
jquery can do it pretty easily though.
$("a.someClass").hover( function(){$("div#someID").css({backgroundColor:"#f00"}), function(){$("div#someID").css({backgroundColor:"#00f"}) );
