View Full Version : MP3 rollover and loop play

08-14-2009, 09:42 AM
I'm really naive about coding but need to do a project for my class and need to add mp3 files to a quiz site. I found some code, but I want the mp3 to play in a loop when I rollover the button. As it is, I need to click to open the mp3 in a new window. Can anybody show me the problem here? If you can tell me exactly where to put in new code, that would help since I'm pretty lost. Thanks. ^here's the file I have: U loaded the mp3 and buttons on the quiz site "Quia".

<script type="text/javascript">
function mouseOver()
{document.b1.src ="http://www.quia.com/files/quia/users/MYNAME/button_1.jpg"}
function mouseOut()
{document.b1.src ="http://www.quia.com/files/quia/users/MYNAME/button_0.jpg"}
<a href="http://www.quia.com/files/quia/users/MYNAME/1/ENGLISH-PRONUNCIATION/En-us-rack.mp3" target="_blank">
<img border="0" alt="YOUR TEXT HERE!" src="http://www.quia.com/files/quia/users/MYNAME/button_0.jpg" name="b1"
width="60" height="25" onmouseover="mouseOver()" onmouseout="mouseOut()"

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum