adrianvincent
07-10-2003, 01:24 AM
ive been trying to look around the web for a good background music jukebox that would go through my songs, which are in .wma.
ive been trying to change around this code so i can use the 'next' button but i cant seem to get it to work.
<script language="JavaScript"><!--
var soundFile = "love.wma, realove.wma";if (soundFile.indexOf(",") > 0) {var sounds = soundFile.split(",");soundFile = sounds[Math.floor(Math.random()*sounds.length)];}if(navigator.plugins.length>0){
if (navigator.mimeTypes["wma"] && navigator.mimeTypes["wma"].enabledPlugin) document.write('<embed src="'+soundFile+'" autostart="true" loop="true" controls="LargeConsole" width=145 height=35></embed>');}
else {
document.write('<embed src="'+soundFile+'" autostart="true" loop="true" width=285 height=25></embed>');}
//-->
</script>
<noscript><embed src="love.wma" autostart="true" loop="true"></embed></noscript>
<noembed><bgsound src="love.wma" loop=true></noembed>
is there another script out there that can help me?
ive been trying to change around this code so i can use the 'next' button but i cant seem to get it to work.
<script language="JavaScript"><!--
var soundFile = "love.wma, realove.wma";if (soundFile.indexOf(",") > 0) {var sounds = soundFile.split(",");soundFile = sounds[Math.floor(Math.random()*sounds.length)];}if(navigator.plugins.length>0){
if (navigator.mimeTypes["wma"] && navigator.mimeTypes["wma"].enabledPlugin) document.write('<embed src="'+soundFile+'" autostart="true" loop="true" controls="LargeConsole" width=145 height=35></embed>');}
else {
document.write('<embed src="'+soundFile+'" autostart="true" loop="true" width=285 height=25></embed>');}
//-->
</script>
<noscript><embed src="love.wma" autostart="true" loop="true"></embed></noscript>
<noembed><bgsound src="love.wma" loop=true></noembed>
is there another script out there that can help me?