1.

Solve : Need Help - music in webpage?

Answer»

Hello;

I tried a SNIPPET from a CODE site, to PLAY a small mp3 file on a webpage, but the music will not repeat, EVEN though the code says it should...

Here's the code they told me to use:

<script language=JavaScript>
<!--
if (navigator.appName == "Netscape") {
document.writeln("<embed SRC=song.mp3' volume=-700 repeat=true loop=true repeat=true autostart=true hidden=true>")
}
if (navigator.appName == "Microsoft Internet Explorer") {
document.writeln("<bgsound src='song.mp3' volume=-700 loop=true repeat=true autostart=true hidden=true>")
}
//--
</script>

It autostarts fine, and is hidden - but that's all... no repeat / no loopinstead of using "true" as a value, try "1" as a value (1 equals true, 0 equals FALSE).



Discussion

No Comment Found