1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| <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>
<body>
<a href="javascript:GetTodaysURL()">Visitez le lien du jour</a>
</body>
</html> |
Partager