MyBB Community Forums

Full Version: JS code doesn't work in footer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys,

i wanted to run this code in my footer of page but it didnt work. 


  <div align="center" style="padding-top: 20px;"> 

 <script type="text/javascript" src="./js/hofmp3player.js"></script>
<div id="flashPlayer"><embed type="application/x-shockwave-flash" src="./swf/hofmp3player.swf" width="75" height="30" style="undefined" id="mymovie" name="mymovie" bgcolor="#FFFFFF" quality="high" flashvars="autoPlay=yes&amp;soundPath=./music/hofsong.mp3"></div>
<script type="text/javascript">
  var so = new SWFObject("./swf/hofmp3player.swf", "mymovie", "75", "30", "7", "#FFFFFF");
  so.addVariable("autoPlay", "yes");
  so.addVariable("soundPath", "./music/hofsong.mp3");
  so.write("flashPlayer");
</script>
</div>
  
Do you upload all the files mentioned in the code? Like:
  • ./js/hofmp3player.js
  • ./swf/hofmp3player.swf
  • ./music/hofsong.mp3
Yep i did
Can we have the link of the forum?
http://pogclan.net/hof.php (this is the custom page where i want to put it)

i removed the code at the moment.