2014年4月28日 星期一

Lab 16 Change an image by moving the mouse

<!DOCTYPE html>

<html>
 <head>  
  <title>lab16</title>
  
  <script>
    
   function mOver(obj){
    obj.setAttribute("src","http://4.blog.xuite.net/4/0/3/1/15236299/blog_369324/txt/24443066/11.jpg");
    }
   function mOut(obj){
    obj.setAttribute("src","http://www.spirit-of-metal.com/les%20goupes/X/X%20Japan/pics/1.jpg");
   }
  </script>
 </head>

 <body>
 <img border="0" src="http://4.blog.xuite.net/4/0/3/1/15236299/blog_369324/txt/24443066/11.jpg" width="500" height="500" onmouseover="mOver(this)" onmouseout="mOut(this)"> 
 </body>
</html>
lab16

沒有留言:

張貼留言