PDA

View Full Version : HELP adding sound to interactive button



delantian
08-30-2005, 04:34 PM
ok im trying to use this script "JavaScript Sound effect"
i have put the head tag in place and im trying to link it to my interactive button using frontpage. code is this for the interactive button:

<img border="0" id="img1" src="button9.jpg" height="20" width="100" alt="Home" fp-style="fp-btn: Border Bottom 3" fp-title="Home" onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'buttonA.jpg')" onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'button9.jpg')" onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'buttonB.jpg')" onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'buttonA.jpg')">

where exactly do i put this tag?

<a href="#" onMouseover="playsound(soundfile)">Example 1</a>

idependently it works fine as it should but i know i have to re-write that tag and insert it to the interactive button code but im not sure how. and can you have more than one onmouseover event? anyhelp?

delantian
08-30-2005, 05:29 PM
I have figured this problem out thanks anyway..!