I have buttons on my website. I want them to swap image and play sound on mouseover and mouseclick. Dreamweaver has a behavior for swap image, and it used to have a behavior for play sound but they took that away after cs5 and I have cs6, so does anyone know the code I can manually enter and where I'm supposed to enter it? I'm an idiot when it comes to computer languages so can you just give me the exact code that I can copy and tell me where to paste it. the sound file I want to play on mouseover is images/button a.wav, and the sound i want to play on mouseclick is images/button b.wav. thanks for any help
I also know the sounds can be annoying to some people so is there a way to aslo a make a mute button for just the button sounds(i have videos that have required sound that I need to play), if so could you tell me how
I loaded your sound into my browser by itself and it appears the file itself has a slight delay, you'll need to use an editing program to cut that "dead air" out.
Also, run your page through the validator here: http://validator.w3.org/
You have quite a few errors in your html that could cause you some grief further down the road.
I lied no it didn't work, it worked until I added the swap images.Here's the code with the swap image but the sound not working <td rowspan="2"><img src="images/index_r2_c2.jpg" width="185" height="95" id="Image1" onmousedown="MM_swapImage('Image1','','images/down_r2_c2.jpg',1)" onmouseup="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','images/roll_r2_c2.jpg',1)" onmouseout="MM_swapImgRestore()"<a href="#" onmouseover="playSound('images/button b.wav');"onmousedown="playSound('images/button a.wav');"></a></td>, what's wrong with it