![]() |
Füge das folgende Script in den body-Bereich deiner HTML-Seite ein:
<script>
<!-- Activate Cloaking Device
//*******************************************************************************************
//
// Today's Date Example
//
// Developed by Timothy Wallace , timothy@essex1.com
//
//******************************************************************************************
var now = new Date();
var yr = now.getYear();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = ((now.getDate()<10) ? "0" : "")+ now.getDate();
if(dName==1) Day = "Sonntag";
if(dName==2) Day = "Montag";
if(dName==3) Day = "Dienstag";
if(dName==4) Day = "Mittwoch";
if(dName==5) Day = "Donnerstag";
if(dName==6) Day = "Freitag";
if(dName==7) Day = "Samstag";
if(mName==1) Month="Januar";
if(mName==2) Month="Februar";
if(mName==3) Month="März";
if(mName==4) Month="April";
if(mName==5) Month="Mai";
if(mName==6) Month="Juni";
if(mName==7) Month="Juli";
if(mName==8) Month="August";
if(mName==9) Month="September";
if(mName==10) Month="Oktober";
if(mName==11) Month="November";
if(mName==12) Month="Dezember";
// String to display current date.
var todaysDate =(" "
+ Day
+ ", "
+ dayNr
+ ". "
+ Month
+ " "
+ yr
+ "<BR>");
// Write date to page.
document.open();
document.write("<CENTER><STRONG><FONT FACE=ARIAL COLOR=660000 SIZE=3>"+todaysDate+"</FONT></STRONG></CENTER>");
// Deactivate Cloaking -->
</script>
Hinweis:
Wenn du dir hier die Quelltexte kopierst, dann füge sie am besten mit einen
Texteditor in dein HTML-Dokument ein, da die meisten Webeditoren es als normalen
Text interpretieren.