Music: New Song on Refresh |
Music: New Song on Refresh |
*krnxswat* |
![]()
Post
#1
|
Guest ![]() |
DESCRIPTION: You can use this script to have a different song play everytime a person views your site or clicks the refresh button. You can add more songs if you want, just simply follow the pattern. COPY AND PASTE INTO WEBSITE STATS OR CUSTOM HEADER (Required 1 of 1): |
|
|
![]() |
![]()
Post
#2
|
|
![]() cb's #1 fan! =) ![]() ![]() ![]() ![]() ![]() ![]() Group: Advisor Posts: 2,342 Joined: Nov 2003 Member No: 1 ![]() |
Hi,
Found the culprit, array index started with 1 instead of 0. Try this: CODE <!-- begin code provided by createblog.com -->
<script language="JavaScript"><!-- ctips = new Array(8); ctips[0]="Dj Wiz - Wahdani"; ctips[1]="Red Rat - Tight Up Skirt"; ctips[2]="Sukhshinder Shinda - Sohni Lagdi"; ctips[3]="Sukhshinder Shinda - Gal Sunja"; ctips[4]="Rishi Rich Ft Jay Sean - Dance With You"; ctips[5]="RDB - Shera Vargi Jaan"; ctips[6]="Party Time"; ctips[7]="Ginuwine - That's How I Get Down"; tips = new Array(8); tips[0]="http://x0o.net/jasmine/newnewnew/DJWiz-WahdaniRemix.wav"; tips[1]="http://x0o.net/jasmine/newnewnew/Red%20Rat%20-%20Tight%20Up%20Skirt.wav"; tips[2]="http://x0o.net/jasmine/newnewnew/Sukshinder%20Shinda%20Feat.%20H%20MC%20-%20Sohni%20Lagdi%20(Gal%20Sunja).wav"; tips[3]="http://x0o.net/jasmine/newnewnew/Sukhshinder%20Shinda%20-%20Gal%20Sunja.wav"; tips[4]="http://x0o.net/jasmine/newnewnew/Rishi_Rich_Ft_Jay_Sean_Juggy_D_&_Wayne_Wonder_-_Dance_With_Y.wav"; tips[5]="http://x0o.net/jasmine/newnewnew/HeavyBhangra.com_-_RDB_-_Rhythm_Dhol_Bass_-_10_-_Shera_Vargi.wav"; tips[6]="http://x0o.net/jasmine/newnewnew/Danny%20English%20feat.%20Eggnog%20-%20Party%20Time%20(Diwali%20Riddim).wav"; tips[7]="http://x0o.net/jasmine/xangacrap/Genuwine%20feat%20ludacris-%20thats%20the%20way.WAV"; index=Math.floor(Math.random() * tips.length); document.write("<center><embed src="+tips[index]+" width=0 height=0 align=top autostart=true loop=true controls=hidden type=audio/x-pn-realaudio-plugin exts=ra,ram Init fn=load-types mime-types=mime.types></embed></center>") document.write("<center><font color=#FF6699>"+ctips[index]+"</center>") //--> </script> <!-- end code provided by createblog.com --> |
|
|
![]() ![]() |