Javascript - Html kodları

Aşağıdaki kodları <body> kodundan sonra istediğiniz bir yere yapıştırın.

{codecitation class="brush: xml; gutter: false;" width="500px"}

<center>
<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function day_title(day_name){
document.write("<TD ALIGN=center WIDTH=35>"+day_name+"</TD>")
}
function fill_table(month,month_length) {
day=1
document.write("<TABLE BORDER=3 CELLSPACING=3 CELLPADDING=%3><TR>")
document.write("<TD COLSPAN=7 ALIGN=center><B>"+month+" "+year+"</B><TR>")
day_title("Pzr")
day_title("Ptesi")
day_title("Salı")
day_title("Çarş")
day_title("Perş")
day_title("Cum")
day_title("Crtesi")
document.write("</TR><TR>")
for (var i=1;i<start_day;i++) {
document.write("<TD>")
}
for (var i=start_day;i<8;i++) {
document.write("<TD ALIGN=center>"+day+"</TD>")
day++}
document.write("<TR>")
while (day <= month_length) {
for (var i=1;i<=7 && day<=month_length;i++) {
document.write("<TD ALIGN=center>"+day+"</TD>")
day++
}
document.write("</TR><TR>")
start_day=i
}
document.write("</TR></TABLE><BR>")
}
// End -->
</script>




<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
today = new Date();
year = today.getYear();
if (year < 2000) // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
today= new Date("January 1, "+year)
start_day = today.getDay() + 1
fill_table("Ocak",31)

if (((year % 4)==0) && ((year % 100)!=0) || ((year % 400)==0))
{ fill_table("Şubat", 29); }
else { fill_table("Şubat", 28); }

fill_table("Mart",31)
fill_table("Nisan",30)
fill_table("Mayıs",31)
fill_table("Haziran",30)
fill_table("Temmuz",31)
fill_table("Ağustos",31)
fill_table("Eylül",30)
fill_table("Ekim",31)
fill_table("Kasım",30)
fill_table("Aralık",31)
</SCRIPT></center>
{/codecitation}



Örnek demo için tıklayın >>