jgbarber65
12-15-2005, 03:25 AM
I have rollover images that also change and additional image:
if (document.images) {
image1on = new Image();
image1on.src = "myimage1on.gif";
image1off = new Image();
image1off.src = "myimage1off.gif";
otherImageDefault = new Image();
otherImageDefault.src = "default.gif";
otherImage1 = new Image();
otherImage1.src = "myimagebanner1.gif";
}
<td width=393 bgcolor="#0000A8"><a href="mylink.html" onMouseOver="changeImages('image1', 'image1on', 'otherImage', 'otherImage1')" onMouseOut="changeImages('image1', 'image1off', 'otherImage', 'otherImageDefault')"><img name="image1" src="myimage1on.gif" alt="myAltTag" width=81 height=16 border=0></a>
I would like to add sound to this onMouseOver with the following:
<embed name="wav01" src="audio.wav" autostart="false" mastersound hidden="true" loop="true" volume=100 width=0 height=0>
and
;javascript:jsPlay('wav01');return true;
and
;javascript:jsStop('wav01');return true;
I tried this below, but it gives me an error. What is the correct way to do this?
<td width=393 bgcolor="#0000A8"><a href="mylink.html" onMouseOver="changeImages('image1', 'image1on', 'otherImage', 'otherImage1');javascript:jsPlay('wav01');return true;" onMouseOut="changeImages('image1', 'image1off', 'otherImage', 'otherImageDefault');javascript:jsStop('wav01');return true;"><img name="image1" src="myimage1on.gif" alt="myAltTag" width=81 height=16 border=0></a>
Thank you
:)
if (document.images) {
image1on = new Image();
image1on.src = "myimage1on.gif";
image1off = new Image();
image1off.src = "myimage1off.gif";
otherImageDefault = new Image();
otherImageDefault.src = "default.gif";
otherImage1 = new Image();
otherImage1.src = "myimagebanner1.gif";
}
<td width=393 bgcolor="#0000A8"><a href="mylink.html" onMouseOver="changeImages('image1', 'image1on', 'otherImage', 'otherImage1')" onMouseOut="changeImages('image1', 'image1off', 'otherImage', 'otherImageDefault')"><img name="image1" src="myimage1on.gif" alt="myAltTag" width=81 height=16 border=0></a>
I would like to add sound to this onMouseOver with the following:
<embed name="wav01" src="audio.wav" autostart="false" mastersound hidden="true" loop="true" volume=100 width=0 height=0>
and
;javascript:jsPlay('wav01');return true;
and
;javascript:jsStop('wav01');return true;
I tried this below, but it gives me an error. What is the correct way to do this?
<td width=393 bgcolor="#0000A8"><a href="mylink.html" onMouseOver="changeImages('image1', 'image1on', 'otherImage', 'otherImage1');javascript:jsPlay('wav01');return true;" onMouseOut="changeImages('image1', 'image1off', 'otherImage', 'otherImageDefault');javascript:jsStop('wav01');return true;"><img name="image1" src="myimage1on.gif" alt="myAltTag" width=81 height=16 border=0></a>
Thank you
:)