Help
-
Search
-
Members
-
Calendar
Full Version:
redirect code
Forums
>
Resource Center
>
Support Center
>
Xanga Support
>
Xanga Resolved Topics
protos
Feb 3 2007, 10:49 AM
what is the redirect code for xangas. I couldn't find it in the scripts
talcumpowder
Feb 3 2007, 12:18 PM
CODE
<script LANGUAGE="JavaScript">
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>
Replace "REDIRECT" with whatever URL you're redirecting to. I
believe
this still works.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here
.