• Loading Screen Music
    2 replies, posted
Hey. I cant seem to figure out why my loading screen music isn't working. It works in my browser. [url]http://cube2.site.nfoservers.com/loading/example-background-color.html[/url] [html] <script type="text/javascript"> var numberOfSongs = 42 var sound = new Array(numberOfSongs+1) sound[0]= "http://mysite.com/loading/music/1.mp3" sound[1]= "http://mysite.com/loading/music/2.mp3" sound[2]= "http://mysite.com/loading/music/3.mp3" sound[3]= "http://mysite.com/loading/music/4.mp3" sound[4]= "http://mysite.com/loading/music/5.mp3" sound[5]= "http://mysite.com/loading/music/6.mp3" sound[6]= "http://mysite.com/loading/music/7.mp3" sound[7]= "http://mysite.com/loading/music/8.mp3" sound[8]= "http://mysite.com/loading/music/9.mp3" sound[9]= "http://mysite.com/loading/music/10.mp3" sound[10]= "http://mysite.com/loading/music/11.mp3" sound[11]= "http://mysite.com/loading/music/12.mp3" sound[12]= "http://mysite.com/loading/music/13.mp3" sound[13]= "http://mysite.com/loading/music/14.mp3" sound[14]= "http://mysite.com/loading/music/15.mp3" sound[15]= "http://mysite.com/loading/music/16.mp3" sound[16]= "http://mysite.com/loading/music/17.mp3" sound[17]= "http://mysite.com/loading/music/18.mp3" sound[18]= "http://mysite.com/loading/music/19.mp3" sound[19]= "http://mysite.com/loading/music/20.mp3" sound[20]= "http://mysite.com/loading/music/21.mp3" sound[21]= "http://mysite.com/loading/music/22.mp3" sound[22]= "http://mysite.com/loading/music/23.mp3" sound[23]= "http://mysite.com/loading/music/24.mp3" sound[24]= "http://mysite.com/loading/music/25.mp3" sound[25]= "http://mysite.com/loading/music/26.mp3" sound[26]= "http://mysite.com/loading/music/27.mp3" sound[27]= "http://mysite.com/loading/music/28.mp3" sound[28]= "http://mysite.com/loading/music/29.mp3" sound[29]= "http://mysite.com/loading/music/30.mp3" sound[30]= "http://mysite.com/loading/music/31.mp3" sound[31]= "http://mysite.com/loading/music/32.mp3" sound[32]= "http://mysite.com/loading/music/33.mp3" sound[33]= "http://mysite.com/loading/music/34.mp3" sound[34]= "http://mysite.com/loading/music/35.mp3" sound[35]= "http://mysite.com/loading/music/36.mp3" sound[36]= "http://mysite.com/loading/music/37.mp3" sound[37]= "http://mysite.com/loading/music/38.mp3" sound[38]= "http://mysite.com/loading/music/39.mp3" sound[39]= "http://mysite.com/loading/music/40.mp3" sound[40]= "http://mysite.com/loading/music/41.mp3" sound[41]= "http://mysite.com/loading/music/42.mp3" sound[42]= "http://mysite.com/loading/music/39.mp3" function randomNumber() { var randomLooper = -1 while (randomLooper < 0 || randomLooper > numberOfSongs || isNaN(randomLooper)){ randomLooper = parseInt(Math.random()*(numberOfSongs+1)) } return randomLooper } var soundFile = sound[randomNumber ()] document.writeln ('<EMBED SRC= "' + soundFile + '" loop=50 volume=5 PLAYCOUNT=3 hidden=true autostart=true><P>'); </script> [/html]
Just remove it, people don't like it anyway.
[QUOTE=samm5506;45555880]Just remove it, people don't like it anyway.[/QUOTE] Not my question. [editline]31st July 2014[/editline] [html] <script type="text/javascript"> var numberOfSongs = 42 var sound = new Array(numberOfSongs+1) function randomNumber() { var randomLooper = -1 while (randomLooper < 0 || randomLooper > numberOfSongs || isNaN(randomLooper)){ randomLooper = parseInt(Math.random()*(numberOfSongs+1)) } return randomLooper } var songnum = randomNumber () document.writeln ('<embed src="player.swf" id="radioplayer" name="radioplayer" quality="medium" allowScriptAccess="always" width="1" height="1" type="application/x-shockwave-flash" FlashVars="file=music/'+ songnum +'.mp3&volume=20&repeat=single&start=0&duration=0&autostart=true&controlbar=none&dock=false&icons=false"><P>'); </script> [/html] I tried changing it to my own player, and it still dosent work.
Sorry, you need to Log In to post a reply to this thread.