Example of Changing image with js:

In the following program images will be changed using OnMouseOver and OnMouseOut in JavaScrip...,

<!DOCTYPE html >
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Creative Mission</title>
</head>
<script type="text/javascript">
<!?
Script.js 
 function changeImage(){
    document.imgGGL.src="thank_you.jpg";
 }
 function backImage(){
    document.imgGGL.src="ggl.gif";
 }
-->
</script>
<body>
<img border="0" id="imgGGL" src="ggl.gif" width="198" height="202" onmouseover="changeImage()" onmouseout="backImage()">
</body>
</html>


All Tutorial => 12345678910111213





Write Comment