Try: a.img:link, a.img:visited, a.img:active{background-image: url(path/to/image.png);} a.img:hover{background-image: url(path/to/image_hover.png);} Code (markup):
why not try adobe flash .....set a time for the image as soon as the time is out another image should be displayed......................OR else try with adobe dreamweaver ...you have a option called navigation the code is immediately generated ....as soon as u click ....
I hope you r looking for this <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>jQuery Hover Effect</title> <script type='text/javascript' src='http://yoursite.com/jquery.js'></script> <script type='text/javascript'> $(document).ready(function(){ $(".button").hover(function() { $(this).attr("src","button-hover.png"); }, function() { $(this).attr("src","button.png"); }); }); </script> </head> <body> <img src="button.png" alt="My button" class="button" /> </body> </html>
Check out Dynamic Drive! it is loaded with variety of Scripts that can hopefully meet your requirements with no more hassles
No need for dynamicdrive for something so easy; he's gotten at least two correct different ways to do this, one with javascript, another with CSS.