6月 23, 2011

運用mouseOver與mouseOut動態換圖


<html>
<head><script type="text/javascript">
function mouseOver()
{
document.getElementById("c1").src="dataf1.gif";
}

function mouseOut()
{
document.getElementById("c1").src="dataf.gif";
}

</script></head>

<body>
<a href="http://tobala.net" target="_blank">
<img id="c1" border="0" width="80%" alt="Chart!!" src="dataf.gif" onmouseover="mouseOver()" onmouseout="mouseOut()" />
</a>

</body>
</html>

沒有留言:

張貼留言