melA~16
06-02-2005, 06:38 AM
This is my script
<script>
var sound1="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/02 Track 2.mp3"
var sound2="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/286182.mp3"
var sound3="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/293141.mp3"
var sound4="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/296529.mp3"
var sound5="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/298035.mp3"
var sound6="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/298035.mp3"
var sound7="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/295801.mp3"
var sound8="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/297975.mp3"
var sound9="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/299198.mp3"
var sound10="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/307591.mp3"
var x=Math.round(Math.random()*9)
if (x==0) x=sound1
else if (x==1) x=sound2
else if (x==2) x=sound3
else if (x==3) x=sound4
else if (x==4) x=sound5
else if (x==5) x=sound6
else if (x==6) x=sound7
else if (x==7) x=sound8
else if (x==8) x=sound9
else x=sound10
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')
else
document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
</script>
All the sounds will play EXCEPT for the first one...the 02 Track 2 one... can somebody tell me what is wrong with this script?? Please...if anyone can assist me...that would be great
Thanks :D
<script>
var sound1="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/02 Track 2.mp3"
var sound2="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/286182.mp3"
var sound3="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/293141.mp3"
var sound4="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/296529.mp3"
var sound5="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/298035.mp3"
var sound6="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/298035.mp3"
var sound7="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/295801.mp3"
var sound8="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/297975.mp3"
var sound9="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/299198.mp3"
var sound10="file:///C|/Documents and Settings/Melissa/My Documents/school_05/vcd1/sac 3/sOngS~/307591.mp3"
var x=Math.round(Math.random()*9)
if (x==0) x=sound1
else if (x==1) x=sound2
else if (x==2) x=sound3
else if (x==3) x=sound4
else if (x==4) x=sound5
else if (x==5) x=sound6
else if (x==6) x=sound7
else if (x==7) x=sound8
else if (x==8) x=sound9
else x=sound10
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+x+'"'+' loop="infinite">')
else
document.write('<embed src='+'"'+x+'"'+'hidden="true" border="0" width="20" height="20" autostart="true" loop="true">')
</script>
All the sounds will play EXCEPT for the first one...the 02 Track 2 one... can somebody tell me what is wrong with this script?? Please...if anyone can assist me...that would be great
Thanks :D