Tugas Untuk Penjelasan Kalender saya

Topik sebelumnya Topik selanjutnya Go down

Tugas Untuk Penjelasan Kalender saya

Post  luqman noviantoro on Wed Dec 19, 2012 2:35 am

NAMA :: LUQMAN NOVIANTORO
NIM :: 09016021
PRODI :: SISTEM INFORMASI

asalamualaikum..ini tugas web saya? maaf baru mengumpulkan..tadi siang di lab tidak dapet tmpat??
saya menaruh kalender ini pada tempat pembukaan. agar sewaktu membuka web.. sudah tampil di hlman pembuka..

bisa diliat di www[dot]luqman[dot]byethost7[dot]com

<html>
<head>
<style type="text/css">
body
{
background-color:pink;
background-image: url("luqman.jpg");
}
}
p.normal{font-weight:normal}
p.tebal{font-weight:bold}
p.teballl{font-weight:900}
p.lengkap{font:italic small-caps 900 12px arial}
h2
}
p.depan
{
text-transform: capitalize;
font-variant: small-caps
}


</style>
</head>
<body>
<p class="besar"><font color="white">
<h1 align="center">Welcome to my web</h1>
<h2 align="center">
Nama:LUQMAN NOVIANTORO<br>
NIM : 09016021<br>
Fakultas: MIPA<br>
Prodi: Sistem Informasi<br>
Angkatan : 2009<br></h2>
<h3 align="center">TINGKATKAN IMAJINASIMU</h3>
</p>

<p class="depan">


<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>My Calender</title>
</head>

<body onLoad="loadclock()" topmargin="0" leftmargin="0">

<table border="5px solid #808080;" cellpadding="0" width="120" height="150" cellspacing="0">
<tr>
<td bgcolor="#333333"><p align="center">
<script language="JavaScript">
monthnames = new Array(
"January",
"February",
"March",
"April",
"May",
"June",
"July",
"August",
"September",
"October",
"November",
"Decembr");
var linkcount=0;
function addlink(month, day, href) {
var entry = new Array(3);
entry[0] = month;
entry[1] = day;
entry[2] = href;
this[linkcount++] = entry;
}
Array.prototype.addlink = addlink;
linkdays = new Array();
monthdays = new Array(12);
monthdays[0]=31;
monthdays[1]=28;
monthdays[2]=31;
monthdays[3]=30;
monthdays[4]=31;
monthdays[5]=30;
monthdays[6]=31;
monthdays[7]=31;
monthdays[8]=30;
monthdays[9]=31;
monthdays[10]=30;
monthdays[11]=31;
todayDate=new Date();
thisday=todayDate.getDay();
thismonth=todayDate.getMonth();
thisdate=todayDate.getDate();
thisyear=todayDate.getYear();
thisyear = thisyear % 100;
thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear));
if (((thisyear % 4 == 0)
&& !(thisyear % 100 == 0))
||(thisyear % 400 == 0)) monthdays[1]++;
startspaces=thisdate;
while (startspaces > 7) startspaces-=7;
startspaces = thisday - startspaces + 1;
if (startspaces < 0) startspaces+=7;
document.write("");
document.write("<table style='padding-left:3px; font-color:#ffffff' size='1' font-family:tahoma;" );
document.write(" cellpadding=0 cellspacing=0>");

document.write("<tr><td colspan=7><center><font color='#ffffff' size='1' face='Verdana'>"
+ monthnames[thismonth] + " " + thisyear
+ "</font></center></td></tr>");
document.write("<tr>");
document.write("<td><b><font color='#FF0000' size='1' face='tahoma'>S</font></td>");
document.write("<td><b><font color='#C0C0C0' size='1' face='tahoma'>M</font></td>");
document.write("<td><b><font color='#C0C0C0' size='1' face='tahoma'>T</font></td>");
document.write("<td><b><font color='#C0C0C0' size='1' face='tahoma'>W</font></td>");
document.write("<td><b><font color='#C0C0C0' size='1' face='tahoma'>T</font></td>");
document.write("<td><b><font color='#C0C0C0' size='1' face='tahoma'>F</font></td>");
document.write("<td><b><font color='#C0C0C0' size='1' face='tahoma'>S</font></td>");
document.write("</tr>");
document.write("<tr>");
for (s=0;s<startspaces;s++) {
document.write("<td><font color='#ffffff' size='1' face='tahoma'>-</font></td>");
}
count=1;
while (count <= monthdays[thismonth]) {
for (b = startspaces;b<7;b++) {
linktrue=false;
document.write("<td><font color='#ffffff' size='1' face='tahoma'>");
for (c=0;c<linkdays.length;c++) {
if (linkdays[c] != null) {
if ((linkdays[c][0]==thismonth + 1) && (linkdays[c][1]==count)) {
document.write("<a href=\"" + linkdays[c][2] + "\">");
linktrue=true;
}
}
}
if (count==thisdate) {
document.write("<font color='#ff0000' size='1' face='tahoma'>");
}
if (count <= monthdays[thismonth]) {
document.write(count);
}
else {
document.write("-");
}
if (count==thisdate) {
document.write("</font>");
}
if (linktrue)
document.write("</a>");
document.write("</td>");
count++;
}
document.write("</tr>");
document.write("<tr>");
startspaces=0;
}
document.write("</table>");
document.write("</font>");
</script>




</tr>
</table>

</body>
</html>
avatar
luqman noviantoro

Jumlah posting : 13
Join date : 05.10.12
Age : 26
Lokasi : PURWOREJO JAWATENGAH

Lihat profil user http://www.luqman.byethost7.com

Kembali Ke Atas Go down

Topik sebelumnya Topik selanjutnya Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik