PDA

View Full Version : sound on mouse over problem..



silent1643
06-12-2007, 07:59 PM
having an issue trying to get sound to work on my mouse over menu..

i am using this menu (http://www.dynamicdrive.com/dynamicindex1/switchmenu.htm) and need an mp3 (or wav, prefer mp3) to play on mouse over.. so how come this doesn't work? I have also tried the java script sound tut on this site and cannot get it to work



<img src="img/apparelBtn.jpg" onMouseOver="playSound(chimes.wav)" onMouseOut="stopSound(chimes.wav)" onclick="SwitchMenu('sub1')"><br />
<span class="submenu" id="sub1">
- <a href="new.htm">What's New</a><br>
- <a href="hot.htm">What's hot</a><br>
- <a href="revised.htm">Revised Scripts</a><br>
- <a href="morezone/">More Zone</a>
</span>

boogyman
06-12-2007, 08:12 PM
you need to create the function playSound and stopSound, and I would discourage from playing a mp3 as it is a very large format and even the simplest of sound bites will take some time to load.

silent1643
06-13-2007, 02:07 AM
you need to create the function playSound and stopSound, and I would discourage from playing a mp3 as it is a very large format and even the simplest of sound bites will take some time to load.

hmm i have tried this example, im still somewhat lost can you point me in the right direction for the head code? one (http://www.hypergurl.com/mouseoversound.html)

silent1643
06-13-2007, 11:42 AM
i finally got this to work using dream weaver based on this tut (http://www.maagraphics.com/tutorials/playing-sound-on-mouse-over-or-mouse-click-effect-in-dreamweavermx.htm), but how do i stop the sound on mouse out?