View Full Version : display image on mouse over?
dawilster
Dec 30th 2008, 8:44 am
Im really interested in how templatemonster.com did it, you know when you rollover a template and an image appears or a preview what code did they use to get that affect?
thanks alot
manjifera
Jan 3rd 2009, 1:51 am
<html>
<head>
<script language="javascript" type="text/javascript">
function show()
{
document.getElementById("img1").innerHTML = "<img src=\"https://www.google.com/adsense/static/en_GB/images/google_sm.gif\" border=\"0\">";
}
function hide()
{
document.getElementById("img1").innerHTML = "Hidden";
}
</script>
<title>works gr8</title>
</head>
<body>
<a onMouseOver="show()" onMouseOut="hide();"><div id="img1">Hello</div></a>
</body>
</html>
working nice i guess you need this!
dawilster
Jan 3rd 2009, 3:56 am
thanks alot i really appreciate the effort.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.