Programalama > JAVA SCRIPT

Etiketler: digital, saat......

Ort. 0
Puan ver:
<html>
<head>
<title>Image Clock</title>


<script language="JavaScript">

Pics=new Array()
Load=new Array()
for(i=0; i < 11; i++){
Pics[i]=i+".gif";
}              
for(i=0; i < Pics.length; i++){
 Load[i]=new Image();
 Load[i].src="greendigital/"+Pics[i];
}
function imageclock(){
now=new Date();
seconds=now.getSeconds();
minutes=now.getMinutes();
hours=now.getHours();
var tme=((hours < 10)?"0"+hours:hours)+''+((minutes < 10)?"0"+minutes:minutes)+''+((seconds < 10)?"0"+seconds:seconds);
for (i=0; i < tme.length; i++){
document.images["t"+i].src="greendigital/"+tme.charAt(i)+".gif";
}
setTimeout('imageclock()',100);
}
window.onload=imageclock;
//-->
</script>


</head>
<body bgcolor="#000000">

<center>
<table border="0" cellpadding="2" cellspacing="0">
<tr align="center" valign="middle">
<td><img name="t0" src="greendigital/10.gif" height="23" width="13"></td>
<td><img name="t1" src="greendigital/10.gif" height="23" width="13"></td>
<td><img src="greendigital/11.gif" height="23" width="3"></td>
<td><img name="t2" src="greendigital/10.gif" height="23" width="13"></td>
<td><img name="t3" src="greendigital/10.gif" height="23" width="13"></td>
<td><img src="greendigital/11.gif" height="23" width="3"></td>
<td><img name="t4" src="greendigital/10.gif" height="23" width="13"></td>
<td><img name="t5" src="greendigital/10.gif" height="23" width="13"></td>
</tr>
</table>
</center>



</BODY>
</HTML>


Yorumlar                 Yorum Yaz
Bu hazır kod'a ilk yorumu siz yapın!
KATEGORİLER
ASP - 240
ASP.NET - 24
C# - 75
C++ - 174
CGI - 8
DELPHI - 247
FLASH - 49
HTML - 536
PASCAL - 246
PERL - 11
PHP - 160
WML - 9
XML - 2
Copyright © 2002 - 2024 Hazır Kod - Tüm Hakları Saklıdır.
Siteden yararlanırken gizlilik ilkelerini okumanızı tavsiye ederiz.
hazirkod.com bir İSOBİL projesidir.