basvdK
Terugkerende gebruiker
- Lid geworden
- 10 mei 2002
- Berichten
- 1.847
Hallo,
Ik heb een klok en datum op mijn website, maar ik krijg de kleur van de datum niet gewijzigd... (zie http://www.maximusonline.tk) Deze is nu groen, maar
moet blauw gaan worden.
De code van dit stukje is:
<tr>
<td> <p align="center">
<script language="JavaScript">
var Today=new Date();
var ThisDay=Today.getDay();
var ThisDate=Today.getDate();
var ThisMonth=Today.getMonth()+1;
var ThisYear=Today.getFullYear();
function DayTxt (DayNumber) {
var Day=new Array();
Day[0]="<font color=#254E89 size=-1 >"+"Zondag"+"</font>";
Day[1]="<font color=#254E89 size=-1 >"+"Maandag"+"</font>";
Day[2]="<font color=#254E89 size=-1 >"+"Dinsdag"+"</font>";
Day[3]="<font color=#254E89 size=-1 >"+"Woensdag"+"</font>";
Day[4]="<font color=#254E89 size=-1 >"+"Donderdag"+"</font>";
Day[5]="<font color=#254E89 size=-1 >"+"Vrijdag"+"</font>";
Day[6]="<font color=#254E89 size=-1 >"+"Zaterdag"+"</font>";
return Day[DayNumber];
}
var DayName=DayTxt(ThisDay);
function MonthTxt (MonthNumber) {
var Month=new Array();
Month[1]="<font color=254E89 size=-1 >"+"Januari"+"</font>";
Month[2]="<font color=254E89 size=-1 >"+"Februari"+"</font>";
Month[3]="<font color=254E89 size=-1 >"+"Maart"+"</font>";
Month[4]="<font color=254E89 size=-1 >"+"April"+"</font>";
Month[5]="<font color=254E89 size=-1 >"+"Mei"+"</font>";
Month[6]="<font color=254E89 size=-1 >"+"Juni"+"</font>";
Month[7]="<font color=254E89 size=-1 >"+"Juli"+"</font>";
Month[8]="<font color=254E89 size=-1 >"+"Augustus"+"</font>";
Month[9]="<font color=254E89 size=-1 >"+"September"+"</font>";
Month[10]="<font color=254E89 size=-1 >"+"Oktober"+"</font>";
Month[11]="<font color=254E89 size=-1 >"+"November"+"</font>";
Month[12]="<font color=254E89 size=-1 >"+"December"+"</font>";
return Month[MonthNumber];
}
var MonthName=MonthTxt(ThisMonth);
var d = new Date();
var h = d.getHours();
document.write("<TABLE BORDER=0 <br> <BGCOLOR=#99FF00 WIDTH=75 HEIGHT=55 align=center color=#254E89> </BR>"+"<TD>"+"<p align=center>"+"<font size=-1 >"+DayName+"<br>"+"<font color=CCFFCC=+3 >"+ThisDate+"</font>"+"<br>"+MonthName+"<br>"+"</b>"+"</font>"+"</p>"+"</TD>"+"</TR>"+"</TABLE>");
if (h <6) document.write("<P ALIGN=center>"+"<font color=#254E89 >"+"Goedenacht !"+"</font>"+"</P>");
else if (h < 12) document.write("<P ALIGN=center>"+"<font color=#254E89 >"+"Goedemorgen !"+"</font>"+"</P>");
else if (h < 18) document.write("<P ALIGN=center>"+"<font color=#254E89 >"+"Goedemiddag !"+"</font>"+"</P>");
else if (h < 24) document.write("<P ALIGN=center>"+"<font color=#254E89 >"+"Goedenavond !"+"</font>"+"</P>");
</script>
</td>
</tr>
Alvast bedankt voor de hulp!
Ik heb een klok en datum op mijn website, maar ik krijg de kleur van de datum niet gewijzigd... (zie http://www.maximusonline.tk) Deze is nu groen, maar
moet blauw gaan worden.
De code van dit stukje is:
<tr>
<td> <p align="center">
<script language="JavaScript">
var Today=new Date();
var ThisDay=Today.getDay();
var ThisDate=Today.getDate();
var ThisMonth=Today.getMonth()+1;
var ThisYear=Today.getFullYear();
function DayTxt (DayNumber) {
var Day=new Array();
Day[0]="<font color=#254E89 size=-1 >"+"Zondag"+"</font>";
Day[1]="<font color=#254E89 size=-1 >"+"Maandag"+"</font>";
Day[2]="<font color=#254E89 size=-1 >"+"Dinsdag"+"</font>";
Day[3]="<font color=#254E89 size=-1 >"+"Woensdag"+"</font>";
Day[4]="<font color=#254E89 size=-1 >"+"Donderdag"+"</font>";
Day[5]="<font color=#254E89 size=-1 >"+"Vrijdag"+"</font>";
Day[6]="<font color=#254E89 size=-1 >"+"Zaterdag"+"</font>";
return Day[DayNumber];
}
var DayName=DayTxt(ThisDay);
function MonthTxt (MonthNumber) {
var Month=new Array();
Month[1]="<font color=254E89 size=-1 >"+"Januari"+"</font>";
Month[2]="<font color=254E89 size=-1 >"+"Februari"+"</font>";
Month[3]="<font color=254E89 size=-1 >"+"Maart"+"</font>";
Month[4]="<font color=254E89 size=-1 >"+"April"+"</font>";
Month[5]="<font color=254E89 size=-1 >"+"Mei"+"</font>";
Month[6]="<font color=254E89 size=-1 >"+"Juni"+"</font>";
Month[7]="<font color=254E89 size=-1 >"+"Juli"+"</font>";
Month[8]="<font color=254E89 size=-1 >"+"Augustus"+"</font>";
Month[9]="<font color=254E89 size=-1 >"+"September"+"</font>";
Month[10]="<font color=254E89 size=-1 >"+"Oktober"+"</font>";
Month[11]="<font color=254E89 size=-1 >"+"November"+"</font>";
Month[12]="<font color=254E89 size=-1 >"+"December"+"</font>";
return Month[MonthNumber];
}
var MonthName=MonthTxt(ThisMonth);
var d = new Date();
var h = d.getHours();
document.write("<TABLE BORDER=0 <br> <BGCOLOR=#99FF00 WIDTH=75 HEIGHT=55 align=center color=#254E89> </BR>"+"<TD>"+"<p align=center>"+"<font size=-1 >"+DayName+"<br>"+"<font color=CCFFCC=+3 >"+ThisDate+"</font>"+"<br>"+MonthName+"<br>"+"</b>"+"</font>"+"</p>"+"</TD>"+"</TR>"+"</TABLE>");
if (h <6) document.write("<P ALIGN=center>"+"<font color=#254E89 >"+"Goedenacht !"+"</font>"+"</P>");
else if (h < 12) document.write("<P ALIGN=center>"+"<font color=#254E89 >"+"Goedemorgen !"+"</font>"+"</P>");
else if (h < 18) document.write("<P ALIGN=center>"+"<font color=#254E89 >"+"Goedemiddag !"+"</font>"+"</P>");
else if (h < 24) document.write("<P ALIGN=center>"+"<font color=#254E89 >"+"Goedenavond !"+"</font>"+"</P>");
</script>
</td>
</tr>
Alvast bedankt voor de hulp!