different song on refresh |
![]() ![]() |
different song on refresh |
Feb 5 2004, 09:08 PM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 5 Joined: Feb 2004 Member No: 3,026 |
i used the different song on refresh script in the script section and the songs dont play?? can someone help me?
my aim = littoazianmunkee help please |
|
|
|
Feb 5 2004, 10:44 PM
Post
#2
|
|
|
I am NOT a noob. ![]() ![]() ![]() Group: Member Posts: 58 Joined: Jan 2004 Member No: 1,364 |
CODE <!-- begin code provided by createblog.com --> script language="JavaScript"><!-- // //Creates a music player that plays different songs upon page refresh //edited by http://www.xanga.com/sbert4225 //Fixed Undefined problem with older script // var x; ctips = new Array(4); ctips[1]="name"; ctips[2]="name"; ctips[3]="name"; ctips[4]="name"; tips = new Array(4); tips[1]="url"; tips[2]="url"; tips[3]="url"; tips[4]="url"; var x = 1 + Math.floor(Math.random() * 4); document.write("<center><embed src="+tips[x]+" width=0 height=0 align=top autostart=true loop=true controls=false type=audio/x-pn-realaudio-plugin exts=ra,ram Init fn=load-types mime-types=mime.types></embed></center>") document.write("<center><font color=#0099ff>Song: <Marquee width=100 height=10 scrollamount=2>"+ctips[x]+"</marquee>Press F5 to change the song.</center>") //--> </script> <!-- end code provided by createblog.com --> hope that helps |
|
|
|
Feb 6 2004, 02:03 AM
Post
#3
|
|
|
Newbie ![]() Group: Member Posts: 5 Joined: Feb 2004 Member No: 3,026 |
i see a part about the marquee how would i take that off and just have a regular display
edit the code isnt working what are the var x what do i change that to |
|
|
|
![]() ![]() |