JavaScript 按钮动画【每日一段代码70】

<html>
<head>
<script type="text/javascript">
function mouseOver()
{
document.b1.src="321.jpg";
}
function mouseOut()
{
document.b1.src="123.jpg";
}
</script>
</head>
<body>
<a href="http://cui.li/" target="_blanK">
<img border="0" alt="邪恶漫画" src="123.jpg" name="b1" onmouseover="mouseOver()" onmouseout="mouseOut()" />
</a>
</body>
</html>

posted on 2012-04-06 22:02  Cosimo  阅读(206)  评论(0编辑  收藏  举报

导航