View Full Version : Mouseover with sound


Emaleth
07-04-2003, 01:19 AM
I was wondering if there's any way to add sound to the mouseover nav-bar I've made for my site. I have little images that when you mouseover them, another image appears...and I wanted to add a sound as well...when I tried it myself, I got the sound, but then the image wouldn't switch. Do you get my meaning? Is there a way to combine both? This isn't a plug for my site, I swear, but it might help to look at what I've done so far.

Don't post this URL again please, VERY adult content on it and absolutely inappropriate for kids!!!!!

Alcy
07-04-2003, 01:58 AM
If you use this script (http://www.bravenet.com/reviews/archives/tips.php?view=67)....

<a href="http://www.bravenet.com"
onMouseOver="javascript: jsPlay('thewav'); return true; document.NAME.src='IMAGE2.GIF'"
onMouseOut="javascript: jsStop('thewav'); return true; document.NAME.src='IMAGE1.GIF'">
<img src="IMAGE1.GIF" border="0" name="NAME">
</a>

Remove the space in javascript....

Emaleth
07-04-2003, 03:38 AM
Thank you very much for your quick response. I'll give that code a try right away. And I"m very very sorry for posting an innapropriate link, I feel terrible about that. I love kids...I just didn't think

Emaleth
07-04-2003, 04:19 AM
Okay I tried it...and I'm not sure what to put where it says NAME.

Any thoughts?

Alcy
07-05-2003, 01:40 AM
Each link has to have a unique name. You can use anything :)