View Full Version : HTML5 Mouseover/Click sound effect

01-06-2012, 08:52 PM
Hi people !
I went to this page:


and I applied that script to my website, everything work perfectly.
I only have a question about it:

* What should I add to the code to avoid the sound activate even when I'm hovering over the margin of the image?

* Would it be possible that the sound activate only when the mouse is hovered over the image and not the margin as well ?

* Is the only solution; to insert every image in their own div and then letting the div handle the margin?

this is the site www.blackbandanamovement.com (http://www.blackbandanamovement.com)
the images I'm talking about are in the footer.
thanks in advance

01-07-2012, 04:35 PM
On line 160

<img id="img1" alt="DOWNLOAD IT NOW !!" height="40" onmousedown="clicksound.playclip(); FP_swapImg(1,0,/*id*/'img1',/*url*/'button97.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'button95.jpg')" onmouseover="mouseoversound.playclip(); FP_swapImg(1,0,/*id*/'img1',/*url*/'button96.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'button96.jpg')" src="button95.jpg" style="border: 0" width="200" /><!-- MSComment="ibutton" fp-style="fp-btn: Glass Capsule 4; fp-font: Square721 BT; fp-font-style: Bold; fp-font-size: 12; fp-font-color-hover: #C0C0C0; fp-font-color-press: #FFFFFF; fp-bgcolor: #333333" fp-title="DOWNLOAD IT NOW !!" --></a></div>



And to get rid of that jump out of your skin when clicked sound remove


03-20-2012, 11:05 AM
Hi guys & forum,

I also have a question regarding the sound hover example at

I think that there is a small error on that page: If you open the page, then CLICK on any of the hover sound links, and then hit the back button in your browser (actually only in Opera), the hover sound file is played once again (on going back to said page).

I'd be more than happy if somebody could point me to a way how to avoid this additional playing of the hover sound file on hitting the "back" button of the browser.

Thanks heaps already,