i found this free script on the web that allows me to load a different webpage each time i refresh the tab , i have edited it but i don't know how to avoid repetition of the same site multiple time until every site is visited once . can you help me , thanks . ( in the snippet you have 3 websites but i have more than 100 in my version ).
<!-- ONE STEP TO INSTALL RANDOM PAGE:
<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>
Aucun commentaire:
Enregistrer un commentaire