View Full Version : Menu on hover
iEthan
09-21-2008, 10:13 PM
I would like to have a menu which has two images--one that is the default-the other is the image when it is mouseovered.
So, how would I code this?
~iE
The way to go would be javascript:
<img src="http://content.mobango.com/media/picture/gif/00000012/thumbnail/size_125x90/159183.gif_125x90.gif" onmouseover="this.src='http://upload.wikimedia.org/wikipedia/commons/thumb/b/b0/Smiley_head_happy.png/50px-Smiley_head_happy.png'" onmouseout="this.src='http://content.mobango.com/media/picture/gif/00000012/thumbnail/size_125x90/159183.gif_125x90.gif'" />
There maybe a way though, can you send me your menu?
Medyman
09-22-2008, 03:49 PM
The way to go would be javascript.
Actually, you can do this with CSS. The technique is called CSS sprites (http://alistapart.com/articles/sprites/) and it's usually a smoother and more accessible option.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.