<html> <head> <title>Hover Button</title> <script language="JavaScript"> <!-- Hides code happy = new Image(53, 53) //sets the variable happy as an image with the width and height happy.src = "images/happy.gif" //sets the path of the picture evil = new Image(53, 53) //sets the Image variable of the second image evil.src = "images/evil.gif" //sets the path of the second picture function changeHappy() { /* document.[image name].src */ document.imgHappy.src = happy.src; return true; }