[PageOfWeekday]

..: kein Beispiel verfügbar :..

Besucher wird auf eine auf den Wochentag abgestimmte Webseite umgeleitet.
Dieses Script ist das Ergebnis einer Frage aus dem Forum.

[Code]

[zwischen <HEAD> und </HEAD>]

<script language="JavaScript">
<!-- Original by N8i (http://www.nightfire.ch/java/) -->
var now = new Date();

function seite() {
if (now.getDay() == 1) window.location.href="montag.html";
if (now.getDay() == 2) window.location.href="dienstag.html";
if (now.getDay() == 3) window.location.href="mittwoch.html";
if (now.getDay() == 4) window.location.href="donnerstag.html";
if (now.getDay() == 5) window.location.href="freitag.html";
if (now.getDay() == 6) window.location.href="samstag.html";
if (now.getDay() == 0) window.location.href="sonntag.html";
}
</script>

[IN den <BODY> Tag]

onload="seite();"

[Autor]

Nightfire

[Download]

Kopieren Sie bitte den Code

Copyright © 1998- Nightfire Webworker Archiv Script No: 537