random page




JavaScript Source Code 3000: Navigation: Random Page





























Random Page








An easy way to instantly send the visitor to a random HTML page. Just enter the random pages you want to use, and you're done!

















JavaScript Source Code 3000: Navigation: Random Page:
Simply click inside the window below, use your cursor to highlight the
script, and copy (type Control-c or Apple-c) the script into a new file in
your text editor (such as Note Pad or Simple Text) and save (Control-s or
Apple-s). The script is yours!!!




    





<!-- ONE STEP TO INSTALL RANDOM PAGE:

1. Copy the coding into the HEAD of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE="JavaScript">

<! >
<! >

<!-- Begin
var howMany = 2; // max number of items listed below
var page = new Array(howMany+1);

page[0]="first-random-page.html";
page[1]="second-random-page.html";
page[2]="third-random-page.html";

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);
// End -->
</SCRIPT>
</HEAD>



<!-- Script Size: 0.89 KB -->










Wyszukiwarka

Podobne podstrony:
page$
page&
install product page
page36
page 1
page 8
page3
les09 page handling tm
page2
page&7
new page
page 1
page?2

więcej podobnych podstron