1 reply [Last post]
rossmurphy
rossmurphy's picture
User offline. Last seen 1 year 32 weeks ago. Offline
newbie
Timezone: GMT-4
Joined: 2009-07-03
Posts: 5
Points: 2

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 1 day 15 hours ago. Offline
rank Guru
Guru
Timezone: GMT-6
Joined: 2005-11-20
Posts: 4416
Points: 1835

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