Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jun 17th, 2011  |  syntax: None  |  size: 1.29 KB  |  views: 1,299  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!-- START SOUND CODE V3.15  -->
  2. <center>
  3. <script language="JavaScript" type="text/javascript">
  4. <!--
  5. // PLAYER VARIABLES
  6.  
  7. var mp3snd = "/TehSteve/bgmusic1.mp3";
  8. var bkcolor = "000000";
  9.  
  10. if ( navigator.userAgent.toLowerCase().indexOf( "msie" ) != -1 ) {
  11. document.write('<bgsound src="'+mp3snd+'" loop="1">');
  12. }
  13. else if ( navigator.userAgent.toLowerCase().indexOf( "firefox" ) != -1 ) {
  14. document.write('<object data="'+mp3snd+'" type="application/x-mplayer2" width="0" height="0">');
  15. document.write('<param name="filename" value="'+mp3snd+'">');
  16. document.write('<param name="autostart" value="1">');
  17. document.write('</object>');
  18. }
  19. else {
  20. document.write('<audio src="'+mp3snd+'" autoplay="autoplay">');
  21. document.write('<object data="'+mp3snd+'" type="application/x-mplayer2" width="0" height="0">');
  22. document.write('<param name="filename" value="'+mp3snd+'">');
  23. document.write('<param name="autostart" value="1">');
  24. 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>');
  25. document.write('</embed></object>');
  26. document.write('</audio>');
  27. }
  28. //-->
  29. </script>
  30. <br>
  31. </center>
  32. <!-- END SOUND CODE V3.15 -->
clone this paste RAW Paste Data