467,907 Members | 1,419 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,907 developers. It's quick & easy.

Hover vs. Rollovers?

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
  • viewed: 4152
Share:
2 Replies
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 v„o. O resto ť imperfeito.
- Renato Russo -

Jul 20 '05 #2
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.

Similar topics

2 posts views Thread by Frances Del Rio | last post: by
3 posts views Thread by Shahid Juma | last post: by
3 posts views Thread by Norman Swartz | last post: by
7 posts views Thread by FAQ server | last post: by
reply views Thread by david.hunter | last post: by
12 posts views Thread by FAQ server | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.