By.KaBuS weB MaSteR
Mesaj Sayısı : 223 Kayıt tarihi : 13/06/09 Yaş : 31 Nerden : Notalar İcinden Lakap : By.KaBuS
| Konu: Dinamik Saat kodları Ptsi Haz. 15, 2009 10:51 pm | |
| - Kod:
-
[color=#000080]<BODY>[/color] [color=#000080]<BODY onLoad=[color=#0000ff]"loadclock()"[/color] topmargin=[color=#0000ff]"6"[/color] leftmargin=[color=#0000ff]"0"[/color] bgcolor=[color=#0000ff]"#800000"[/color] text=[color=#0000ff]"#FFFF00"[/color] link=[color=#0000ff]"#FFFFFF"[/color] vlink=[color=#0000ff]"#C0C0C0"[/color] alink=[color=#0000ff]"#FF0000"[/color]>[/color]
[color=#800000]<script>[/color] [i][color=#000080]<!-- // HAZIRLAYAN VE SUNAN ımkansızım function show2(){ var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn=[color=#0000ff]"AM"[/color] if (hours>[/color]12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (minutes[color=#000080]<=9) minutes=[color=#0000ff]"0"[/color]+minutes if (seconds<=9) seconds=[color=#0000ff]"0"[/color]+seconds var ctime=[color=#0000ff]"<b><font face='Verdana' color='red'>"[/color]+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() //-->[/color][/i] [color=#800000]</script>[/color]
[i][color=#000080]<!-- Bu satirinn konumu, saatin de konumunu belirler center ortaya left sola right saga hizalar -->[/color][/i] [color=#000080]<p align=[color=#0000ff]"center"[/color]>[/color][color=#000080]<span id=tick2>[/color][color=#000080]</span>[/color][color=#000080]</p>[/color] [color=#000080]</BODY>[/color] | |
|