1 reply [Last post]
rossmurphy
rossmurphy's picture
User offline. Last seen 29 weeks 5 days ago. Offline
newbie
Joined: 2009-07-03
Posts: 4
Points: 0

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?

Deuce
Deuce's picture
User offline. Last seen 4 hours 17 min ago. Offline
rank Guru
Guru
Timezone: GMT-7
Joined: 2005-11-20
Posts: 3213
Points: 462

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"})
);

all ยป http://dictionary.reference.com/browse/all

Google isn't a bunch of guys reading and grading web sites, it's more like a bunch of monkeys sniffing food and putting the good bananas at the top. -Triumph