SpiritualStorms
06-27-2004, 04:40 PM
I need help detecting the error in this:
function imageFlips(paramOne, paramTwo)
{
if(document.images)
{
document.image.paramOne.src=paramTwo;
}
else
{
alert("There's no image by the name of "+paramOne);
}
}
I call the above with the following code:
<br>
<a href="javascript:onMouseOver="imageFlips('flower','triangle.bmp');">
<img id="flower" src="flower.bmp">
</a>
<br>
I do not know why the onMouseOver event-handler does not call the function.
function imageFlips(paramOne, paramTwo)
{
if(document.images)
{
document.image.paramOne.src=paramTwo;
}
else
{
alert("There's no image by the name of "+paramOne);
}
}
I call the above with the following code:
<br>
<a href="javascript:onMouseOver="imageFlips('flower','triangle.bmp');">
<img id="flower" src="flower.bmp">
</a>
<br>
I do not know why the onMouseOver event-handler does not call the function.