Here is my code:
<html>
<head>
<script>
var button1= new Image();
button1.src="AdminButton1.gif";
var button2=new Image();
button2.src="AdminButton1.gif";
</script>
</head>
<a href="#" onMouseOver="document.images[button2].src=button2.src"
onMouseOut="document.images[button1].src=button1.src"
><img src="AdminButton1.gif"/></a>
</body>
</html>
When i start the page, I get the error message:
Line: 12
Char: 1
Error: 'document.images[...]'is null or not an object.
Code: 0
I don't know what's going on, but I need this to be working really soon. Thanx in advance for all your help.
<html>
<head>
<script>
var button1= new Image();
button1.src="AdminButton1.gif";
var button2=new Image();
button2.src="AdminButton1.gif";
</script>
</head>
<a href="#" onMouseOver="document.images[button2].src=button2.src"
onMouseOut="document.images[button1].src=button1.src"
><img src="AdminButton1.gif"/></a>
</body>
</html>
When i start the page, I get the error message:
Line: 12
Char: 1
Error: 'document.images[...]'is null or not an object.
Code: 0
I don't know what's going on, but I need this to be working really soon. Thanx in advance for all your help.