By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,396 Members | 1,882 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,396 IT Pros & Developers. It's quick & easy.

Hover vs. Rollovers?

P: n/a
The website I'm working on is using a graphic image for the left navigation
scheme.

Say I've got a button called "home" and one called "home_rollover" where
it's a lighter shade

Is there a way to use css to call the switch between the two? Would hover
work for this? I know very little about it. If so, what would the code be?

Thanks! :)

Susan
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Els
Susan Addams wrote:
The website I'm working on is using a graphic image for the left navigation
scheme.

Say I've got a button called "home" and one called "home_rollover" where
it's a lighter shade

Is there a way to use css to call the switch between the two? Would hover
work for this? I know very little about it. If so, what would the code be?


Put the image in the background, instead of using
<img src="">.
Then use
a:link, a:visited {background-image:url(home.gif);}
a:hover {background-image:url(home_rollover.gif);}

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vo. O resto imperfeito.
- Renato Russo -

Jul 20 '05 #2

P: n/a
Els <el*********@tiscali.nl> wrote in news:2i************@uni-berlin.de:
Then use
a:link, a:visited {background-image:url(home.gif);}
a:hover {background-image:url(home_rollover.gif);}


http://wellstyled.com/css-nopreload-rollovers.html goes into more depth
regarding this technique.

--
'You can watch an actor absolutely sabotage a good script and then read
reviews like "Unfortunately, even the impressive talents of Cheech Marin
could not salvage Anton Chekhov's trite and meandering script."
- Chet Ramey
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.