eliteitsolutions.ie Posted November 28, 2014 Share Posted November 28, 2014 Hi There,I have done a little research of playing a bit of a clip for christmas, "ho ho ho"I found some code for not having to put a player built in. But it doesn't seem to be working. Link to comment Share on other sites More sharing options...
eliteitsolutions.ie Posted November 28, 2014 Author Share Posted November 28, 2014 <!-- START SOUND CODE V3.15 --> <center> <script language="JavaScript" type="text/javascript"> <!-- // PLAYER VARIABLES var mp3snd = "bgmusic1.mp3"; var bkcolor = "000000"; if ( navigator.userAgent.toLowerCase().indexOf( "msie" ) != -1 ) { document.write('<bgsound src="'+mp3snd+'" loop="1">'); } else if ( navigator.userAgent.toLowerCase().indexOf( "firefox" ) != -1 ) { document.write('<object data="'+mp3snd+'" type="application/x-mplayer2" width="0" height="0">'); document.write('<param name="filename" value="'+mp3snd+'">'); document.write('<param name="autostart" value="1">'); document.write('</object>'); } else { document.write('<audio src="'+mp3snd+'" autoplay="autoplay">'); document.write('<object data="'+mp3snd+'" type="application/x-mplayer2" width="0" height="0">'); document.write('<param name="filename" value="'+mp3snd+'">'); document.write('<param name="autostart" value="1">'); document.write('<embed height="2" width="2" src="'+mp3snd+'" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" controller="false" controls="false" autoplay="true" autostart="true" loop="false" bgcolor="#'+bkcolor+'"><br>'); document.write('</embed></object>'); document.write('</audio>'); } //--> </script> <br> </center> <!-- END SOUND CODE V3.15 --> I had to split the code as it wouldn't fit. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now