Forum moderator: bigblog |
uCoz Community For Webmasters Custom Solutions How to create simple HTML mouseover menu (Tutorial) |
How to create simple HTML mouseover menu |
here is sample code:
Quote <a href="SITE_URL" title="BUTTON_TITLE"><img src="IMG1" onmouseover="this.src='IMG2'" onmouseout="this.src='IMG1'" border="0"></a> SITE_URL- site url Post edited by Jan - Saturday, 2011-04-09, 2:41 PM
|
while the embedded JavaScript is efficient it drags a lot i think the best option is using CSS
|
there should be a background for the buttons but it doesnt appear ( http://test222.ucoz.com )
If i helped you + My Reputation and Give me an Award.
|
Blazer, you need to make the background image appear by coding your own with CSS for example. because Jan's code doesn't give a backlground for the buttons it just shows you how to create a hovering button
To busy building a passive income online ;)
|
Design : #982
Code <a href="http://test222.ucoz.com/" title="Home"><img src="http://test222.ucoz.com/img.png" onmouseover="this.src='http://test222.ucoz.com/img3.png'" onmouseout="this.src='http://test222.ucoz.com/img2.png'" border="0"></a> If i helped you + My Reputation and Give me an Award.
|
Blazer, here is a code for you:
Quote <table style="text-align: left; background: url('/image.jpg') #000000 ; width: 100%;"border="0" cellpadding="0" cellspacing="0"> <tbody> <tr> <td><a href="http://test222.ucoz.com/" title="Home"><img src="http://test222.ucoz.com/img.png" onmouseover="this.src='http://test222.ucoz.com/img3.png'" onmouseout="this.src='http://test222.ucoz.com/img2.png'" border="0"></a></td> </tr> </tbody> </table> marked in red: background image (be sure that background image is same height as your menu button!) Post edited by Jan - Sunday, 2011-04-17, 10:23 AM
|
| |||