Obviously then, you cannot have the red part:
Code:
<a href="bigpic.jpg"
ONMOUSEOVER="OnImage('pic1');javascript:jsPlay('thewav');return true;"
ONMOUSEOUT="OffImage('pic1');javascript:jsStop('thewav');return true;"><img src="thumbnail.jpg" name="pic1" border="0" id="pic1"></a>
I think that you would also need to set something to let the page know that the thing was playing, so it could be stopped if, and only if it is already playing, and OH! - you really don't need javascript: in this type of syntax (addition green):
Code:
<a href="pic.jpg"
onmouseover="OnImage('pic1');jsPlay('thewav');this.onmouseover.on=true;return true;"
onmouseout="OffImage('pic1');return true;"><img src="thumbnail.jpg" name="pic1" border="0" id="pic1"></a>
Now we are ready to cancel play of 'thewav' onmouseover of any other image:
Code:
<a href="anotherpic.jpg"
onmouseover="if(document.images.pic1.parentNode.onmouseover.on){document.images.pic1.parentNode.onmouseover.on=false;jsStop('thewav')};OnImage('pic2');jsPlay('theotherwav');this.onmouseover.on=true;return true;"
onmouseout="OffImage('pic2');return true;"><img src="thumbnail.jpg" name="pic2" border="0" id="pic2"></a>
Bookmarks