CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Graphics and Multimedia discussions (http://www.codingforums.com/forumdisplay.php?f=32)
-   -   MP3 rollover and loop play (http://www.codingforums.com/showthread.php?t=174524)

wtposs 08-14-2009 08:42 AM

MP3 rollover and loop play
 
Hi,
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"}
</script>
</head>
<body>
<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()"
/>
</a>


All times are GMT +1. The time now is 11:19 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.