程式碼
<<!DOCTYPE html>
<html>
<head>
<title>lab16</title>
<script>
function mOver(obj){
obj.setAttribute("src","http://flipermag.com/wp-content/uploads/2012/12/Jordan-logo.jpg");
}
function mOut(obj){
obj.setAttribute("src","http://pingshoops.com/wp-content/uploads/2013/01/Michael-Jordan-wallpaper1.jpg");
}
</script>
</head>
<body>
<img border="0" src="http://imgur.com/kP9t1au.jpg" width="500" height="500" onmouseover="mOver(this)" onmouseout="mOut(this)">
</body>
</html>
沒有留言:
張貼留言