Forum Moderators: open
I have the javascript set up to correctly use different code for browsers like IE. I'm not using player controls for this, it needs to be embedded. If there're other attributes I can add to the embed tag, or if there is a different tag I can be using, that should work on Firefox, I'd appreciate some sample code and if it still doesn't work on my friends' machines, then I'll just have to assume they haven't got their plugins installed properly or something?
Jason
<script>
<!--
var musicsrc="midi.mid"
if (navigator.appName=="Microsoft Internet Explorer")
document.write('<bgsound src='+'"'+musicsrc+'"'+' loop="1">')
else
document.write('<embed src=\"'+musicsrc+'\" hidden="true" border="0" width="0" height="2" autostart="true" loop="false">')
//-->
</script>