English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Ok I know how to create a button from an image using the "span id" "a href"and "img src" setup, but how do I make the button change to a different image when the mouse is placed over it??

2006-11-26 08:47:51 · 3 answers · asked by crafty1980 1 in Computers & Internet Programming & Design

3 answers

Please, no nasty javascript ;)

Saw my answer to your other question? Same method, but set background attributes to link to an image instead of color.

.button {
background: url(image1.png) no-repeat top left;
}
.button:hover {
background: url(image2.png) no-repeat top left;
}

You'll love CSS, believe me ;)

2006-11-26 09:22:28 · answer #1 · answered by Cedric 2 · 1 1

The answer box here won't allow enough room for the code without breaking it, so I've placed a link here:

http://webcert.anissat.com/yahoo-answers.html#htmlbuttons

CSS is the better route, but both CSS and Javascript have their drawbacks...

2006-11-26 09:13:49 · answer #2 · answered by Anissa T 2 · 1 0

http://www.pcanswers.co.uk/downloads/default.asp?pagetypeid=2&articleid=28861&subsectionid=599&subsubsectionid=356
- mouse over button wizard

Its javascript.

2006-11-26 20:48:03 · answer #3 · answered by sarah c 7 · 0 0

fedest.com, questions and answers