<html> <body> <script> function function1() { document.all.myImage.alt = 'alt text'; } </script> <img id="myImage" onmouseover="function1();" src="yourimage.jpg"> </body> <html>