spinningman
Programmer
For some reason I can't fathom out, my second rollover image isn't recognised on my site. I just get the red X. I've FTP'd it and its there on the server but it is not being recognised. ?????
The site:
The script I am using:
<script language="JavaScript">
image1 = new Image();
image1.src = "images/opening1.gif";
image2 = new Image();
image2.src = "images/opening2.gif";
function movepic(img_name,img_src)
{ document
.src=img_src; }
</script>
'the body......'
<div align="center">
<a href="../index.html" onmouseover="movepic('button','Images/opening2.gif')"
onmouseout="movepic('button','Images/opening1.gif')">
<img name="button" src="Images/opening1.gif" width=77 height=33 border=0 alt="Home button"></a>
</div>
The site:
The script I am using:
<script language="JavaScript">
image1 = new Image();
image1.src = "images/opening1.gif";
image2 = new Image();
image2.src = "images/opening2.gif";
function movepic(img_name,img_src)
{ document
</script>
'the body......'
<div align="center">
<a href="../index.html" onmouseover="movepic('button','Images/opening2.gif')"
onmouseout="movepic('button','Images/opening1.gif')">
<img name="button" src="Images/opening1.gif" width=77 height=33 border=0 alt="Home button"></a>
</div>