HTML Yapraklı Takvim KODU Reviewed by Momizat on .   Yapraklı Takvim -------------------------------------------------------------------------------------------- <head></head> <BODY> <S   Yapraklı Takvim -------------------------------------------------------------------------------------------- <head></head> <BODY> <S Rating:
You Are Here: Home » TEKNOLOJİ » DERSLER » HTML Yapraklı Takvim KODU

HTML Yapraklı Takvim KODU

 

Yapraklı Takvim
——————————————————————————————–
<head></head>
<BODY>

<SCRIPT LANGUAGE=”JavaScript”>
<!– Begin
var Today=new Date();
var ThisDay=Today.getDay();
var ThisDate=Today.getDate();
var ThisMonth=Today.getMonth()+1;
var ThisYear=Today.getFullYear(); //included if you wish to insert the year
function DayTxt (DayNumber) {
var Day=new Array();
Day[0]=”Pazar”;
Day[1]=”Pazartesi”;
Day[2]=”Salı”;
Day[3]=”Çarşamba”;
Day[4]=”Perşembe”;
Day[5]=”Cuma”;
Day[6]=”Cumartesi”;
return Day[DayNumber];
}
var DayName=DayTxt(ThisDay);
function MonthTxt (MonthNumber) {
var Month=new Array();
Month[1]=”Ocak”;
Month[2]=”Şubat”;
Month[3]=”Mart”;
Month[4]=”Nisan”;
Month[5]=”Mayıs”;
Month[6]=”Haziran”;
Month[7]=”Temmuz”;
Month[8]=”Ağustos”;
Month[9]=”Eylül”;
Month[10]=”Ekim”;
Month[11]=”Kasım”;
Month[12]=”Aralık”;
return Month[MonthNumber];
}
var MonthName=MonthTxt(ThisMonth);
var d = new Date();
var h = d.getHours();
document.write(“<TABLE BORDER=3 BGCOLOR=WHITE WIDTH=75 HEIGHT=85 align=left>”+”<TD>”+”<p align=center>”+”<font size=-2 >”+DayName+”<br>”+”<font color=orangered size=+3 >”+ThisDate+”</font>”+”<br>”+MonthName+”<br>”+”</b>”+”</font>”+”</p>”+”</TD>”+”</TR>”+”</TABLE>”);
if (h < 2) document.write(“<P ALIGN=center>”+”<b>”+”Günaydin!.:Pp Yes, it’s way past midnight.”+”</b>”+”</P>”);
else if (h < 3) document.write(“<P ALIGN=center>”+”<b>”+”Günaydin! Up early or working late?”+”</b>”+”</P>”);
else if (h < 7) document.write(“<P ALIGN=center>”+”<b>”+”Günaydin! Up bright and early!”+”</b>”+”</P>”);
else if (h < 12) document.write(“<P ALIGN=center>”+”<b>”+”Tünaydin!”+”</b>”+”</P>”);
else if (h < 17) document.write(“<P ALIGN=center>”+”<b>”+”Tünaydin!”+”</b>”+”</P>”);
else if (h < 23) document.write(“<P ALIGN=center>”+”<b>”+”iyi akşamlar!”+”</b>”+”</P>”);
else document.write(“<P ALIGN=center>”+”<b>”+”A late good evening! Not much left of it now.”+”</b>”+”</P>”);
// End –>
</script>

About The Author

Number of Entries : 235

Leave a Comment

LÜTFEN GEREKLİ ALANI DOLDURUNUZ *

© 2011 Powered By FSM FSM Team

Scroll to top