The below script, I have been using for many years, stopped working in IE 7.0 all of a sudden.
It works using NS and Firefox.
Anyone know why this is? Did something change in IE 7.0 that may be causing this?
Thanks
Larry
<script language="javas cript" type="text/javascript">
<!--
//By George Chiang (http://www.wsabstract.com) More JavaScripts here!
var sound1="MSymca. mid"
var sound2="MSdisco inferno2.mid"
var sound3="MSfunky town.mid"
var sound4="MSthehu stle.mid"
var sound5="MSboomb oom.mid"
var sound6="MSladyi nred.mid"
var sound7="MSstrok in.mid"
var sound8="MSmambo 5.mid"
var sound9="MSoyoco mova.mid"
var sound10="MSswee thomechicago.mi d"
var sound11="MSlove intheair.mid"
var sound12="MSilov enightlife2.mid "
var sound13="MScele bration.mid"
var sound14="MSkiss uallover.mid"
var x=Math.round(Ma th.random()*13)
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 if (x==9) x=sound10
else if (x==10) x=sound11
else if (x==11) x=sound12
else if (x==12) x=sound13
else if (x==13) x=sound14
else x=sound15
if (navigator.appN ame=="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>
It works using NS and Firefox.
Anyone know why this is? Did something change in IE 7.0 that may be causing this?
Thanks
Larry
<script language="javas cript" type="text/javascript">
<!--
//By George Chiang (http://www.wsabstract.com) More JavaScripts here!
var sound1="MSymca. mid"
var sound2="MSdisco inferno2.mid"
var sound3="MSfunky town.mid"
var sound4="MSthehu stle.mid"
var sound5="MSboomb oom.mid"
var sound6="MSladyi nred.mid"
var sound7="MSstrok in.mid"
var sound8="MSmambo 5.mid"
var sound9="MSoyoco mova.mid"
var sound10="MSswee thomechicago.mi d"
var sound11="MSlove intheair.mid"
var sound12="MSilov enightlife2.mid "
var sound13="MScele bration.mid"
var sound14="MSkiss uallover.mid"
var x=Math.round(Ma th.random()*13)
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 if (x==9) x=sound10
else if (x==10) x=sound11
else if (x==11) x=sound12
else if (x==12) x=sound13
else if (x==13) x=sound14
else x=sound15
if (navigator.appN ame=="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>
Comment