Hi,
Why wont the following code work? I want to change the image when the mouse is moved it.
<script language="JavaScript" type="text/javascript">
function changeImage(imgName, newSrc) {
imgName.src = newSrc;
}
</script>
<a href="/../fund/fund.html" onmouseover="changeImage('getquote','../images/getquoteR.gif');" onmouseout="changeImage('getquote','../images/getquote.gif');"><img src="../images/getquote.gif" name="getquote" width="142" height="36" border="0" ></a>
The image is appearing but wont change when I move the mouse over. The changeImage function is being called and the parameters are being passed correctly, but the image wont change.
There has to be an easy answer, any help appreciated
Thanks
jlawler
Why wont the following code work? I want to change the image when the mouse is moved it.
<script language="JavaScript" type="text/javascript">
function changeImage(imgName, newSrc) {
imgName.src = newSrc;
}
</script>
<a href="/../fund/fund.html" onmouseover="changeImage('getquote','../images/getquoteR.gif');" onmouseout="changeImage('getquote','../images/getquote.gif');"><img src="../images/getquote.gif" name="getquote" width="142" height="36" border="0" ></a>
The image is appearing but wont change when I move the mouse over. The changeImage function is being called and the parameters are being passed correctly, but the image wont change.
There has to be an easy answer, any help appreciated
Thanks
jlawler