SHREK NAPTÁRASÓRA
DEMÓ:
KÓD:
<center>
<div align="center">
<center>
<table bgcolor="" border="1" bordercolor="#000000" cellpadding="5" cellspacing="5" height="70" style="border-collapse: collapse" summary="" width="111">
<tbody>
<tr>
<td align="center" height="100" width="100">
<p align="center">
<script language="JavaScript">var months=new Array(13);months[1]="01";months[2]="02";months[3]
="03";months[4]="04";months[5]="05";months[6]
="06";months[7]="07";months[8]="08";months[9]
="09";months[10]="10";months[11]
="11";months[12]="12";var time=new Date();
var lmonth=months[time.getMonth() + 1];var date=time.getDate();
var year=time.getYear();if (year < 2000) year = year
+ 1900;document.write(year + "." + lmonth + ".");
document.write("" + date + ".");
</script><a href="//jegvirag2.gportal.hu"> <img border="0" height="120" src="https://jegvirag.gportal.hu/portal/jegvirag/image/gallery/1647952771.png" width="120" /></a><br />
<script>document.write("<FONT color='#000000' face='Tahoma' style='font-size : 13px;'>");var clockid=new Array()
var clockidoutside=new Array()
var i_clock=-1
var thistime=new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if(eval(hours)<10){hours="0"+hours}if(eval(minutes)<10){minutes="0"+minutes}if(seconds<10){seconds="0"+seconds}var thistime=hours+":"+minutes+":"+seconds
function writeclock(){i_clock++
if(document.all||document.getElementById||document.layers){clockid[i_clock]="clock"+i_clock
document.write("<span id='"+clockid[i_clock]+"' style='position:relative'>"+thistime+"</span>")}}function clockon(){thistime=new Date()
hours=thistime.getHours()
minutes=thistime.getMinutes()
seconds=thistime.getSeconds()
if(eval(hours)<10){hours="0"+hours}if(eval(minutes)<10){minutes="0"+minutes}if(seconds<10){seconds="0"+seconds}thistime=hours+":"+minutes+":"+seconds
if(document.all){for(i=0;i<=clockid.length-1;i++){var thisclock=eval(clockid[i])
thisclock.innerHTML=thistime}}if(document.getElementById){for(i=0;i<=clockid.length-1;i++){document.getElementById(clockid[i]).innerHTML=thistime}}var timer=setTimeout("clockon()",1000)}window.onload=clockon
</script><script>writeclock()</script></p>
</td>
</tr>
</tbody>
</table>
</center>
</div>
</center>