[b]Bonjour,
Le script ci-dessous me permet
de programmer sur une semaine
le remplacement automatique
d'une page de mon site.
Mais sur une semaine seulement.
Quelles modifications pourrais-je
apporter à ce script pour pouvoir
obtenir un remplacement automatique
sur une durée beaucoup plus importante ?
Merci d'avance pour vos suggestions.
ALAIN
---------------------------------------
/b
<html>
<head>
<script language="JavaScript">
function GetTodaysURL()
{
var locationlist = new URLList
(
"
http://www.votresitelundi.com", // lundi
"
http://www.votresitemardi.com", // mardi
"
http://www.votresitemercredi.com", // mercredi
"
http://www.votresitejeudi.com", // jeudi
"
http://www.votresitevendredi.com", // vendredi
"
http://www.votresitesamedi.com", // samedi
"
http://www.votresitedimanche.com" // dimanche
);
now = new Date();
num = now.getDay();
if (num
0) num 7;
location.href = locationlist.list[num-1];
}
function URLList ()
{
var argv = URLList.arguments;
var argc = argv.length;
this.list = new Object();
for (var i = 0; i < argc; i++)
this.list[i] = argv[i];
this.count = argc;
return this;
}
</script>
</head>
[javascript:GetTodaysURL() Visitez le lien du jour]
</html>