redirect code, can't find it |
redirect code, can't find it |
Feb 3 2007, 10:49 AM
Post
#1
|
|
![]() I listen to bands that don't even exist yet... ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 330 Joined: Sep 2005 Member No: 249,189 |
what is the redirect code for xangas. I couldn't find it in the scripts
|
|
|
|
![]() |
Feb 3 2007, 12:18 PM
Post
#2
|
|
![]() You'll find me in your dreams. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Member Posts: 8,536 Joined: Mar 2005 Member No: 114,010 |
CODE <script LANGUAGE="JavaScript"> Replace "REDIRECT" with whatever URL you're redirecting to. I believe this still works.
var howMany = 1; var page = new Array(howMany+1); page[0]="REDIRECT"; function rndnumber(){ var randscript = -1; while (randscript < 0 || randscript > howMany || isNaN(randscript)){ randscript = parseInt(Math.random()*(howMany+1)); } return randscript; } quo = rndnumber(); quox = page[quo]; window.location=(quox); </SCRIPT> |
|
|
|
![]() ![]() |