By.KaBuS weB MaSteR
Mesaj Sayısı : 223 Kayıt tarihi : 13/06/09 Yaş : 31 Nerden : Notalar İcinden Lakap : By.KaBuS
| Konu: DİNAMİK SAAT Ptsi Haz. 15, 2009 10:36 pm | |
| - Kod:
-
<BODY> <BODY onLoad="loadclock()" topmargin="6" leftmargin="0" bgcolor="#800000" text="#FFFF00" link="#FFFFFF" vlink="#C0C0C0" alink="#FF0000">
<script> <!-- // HAZIRLAYAN VE SUNAN \/ | R |_| 5 function show2(){ var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn="AM" if (hours>12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds var ctime="<b><font face='Verdana' color='red'>"+hours+":"+minutes+":"+seconds+" "+dn+"</font></b>" if (!document.all) document.write(ctime) else tick2.innerHTML=ctime } function loadclock(){ if (document.all) setInterval("show2()",1000) } if (!document.all) show2() //--> </script>
<!-- Bu satirinn konumu, saatin de konumunu belirler center ortaya left sola right saga hizalar --> <p align="center"><span id=tick2></span></p> </BODY>
| |
|