topical media & game development

talk show tell print

basic-javascript-05-ch05-q3.htm / htm



  <html>
  <head>
  <script language="JavaScript" type="text/javascript">
  
  function mouseOver()
  {
     document.images["myImage"].src = "Img2.jpg";
  }
  
  function mouseOut()
  {
     document.images["myImage"].src = "Img1.jpg";
  }
  </script>
  </head>
  <body>
  
        <img src="Img1.jpg" 
            name="myImage" 
            onmouseover="mouseOver()" 
            onmouseout="mouseOut()">
  
  </body>
  </html>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.