I have the following:-
<p align="center"><a href="#" onMouseOver="document.soundfile2.play()"><img src="ship11.gif" width="497" height="125" border="0"></a></p>
This plays a gunshot sound when the mouse is positioned over the ship image.
However, a small problem is that an unspecified JavaScript error is reported if when the page loads the mouse happens to be positioned at a place on the screen where the ship image will appear. That is, on_mouse_already_over. This does not
affect the working, but I would like to tidy it up.
Suggestions would be welcome, please. Changing the order of loading scripts etc. does not help.
Is there any way of shifting the mouse coordinates to somewhere else on the screen?
<p align="center"><a href="#" onMouseOver="document.soundfile2.play()"><img src="ship11.gif" width="497" height="125" border="0"></a></p>
This plays a gunshot sound when the mouse is positioned over the ship image.
However, a small problem is that an unspecified JavaScript error is reported if when the page loads the mouse happens to be positioned at a place on the screen where the ship image will appear. That is, on_mouse_already_over. This does not
affect the working, but I would like to tidy it up.
Suggestions would be welcome, please. Changing the order of loading scripts etc. does not help.
Is there any way of shifting the mouse coordinates to somewhere else on the screen?
Comment