加入收藏-方便您以后查找网页特效哦
你的位置:
主页
>>
时间日期
现在时间
:
:
:
把如下代码加入<body>区域中
<div id="Layer1" style="position:absolute; width:240px; height:157px; z-index:1; left: 247px; top: 99px;"> <style>body,td,div,a,input{font:menu}</style> <script> function timer() { var scale=2; d=new Date() d.setDate(d.getDate()-1) a=d.toLocaleString(); s=a.substr(17,2); m=a.substr(14,2); h=a.substr(11,2); x=a.substr(18,1); ss=new Date().getTime().toLocaleString(); sss=ss.substr(10,2); document.all("is").height=s*scale; document.all("im").height=m*scale; document.all("ih").height=h*scale; document.all("ii").height=sss*scale*0.6; stxt.innerText=s; mtxt.innerText=m; htxt.innerText=h; otxt.innerText=sss; setTimeout("timer()",10); } window.onload=timer; </script> 现在时间: <div class=dtime style="position: absolute;width:130;top:150;left:100"> <div class=dtime title="秒" style="position: absolute;bottom:0;left:60" align="center"><img style="background-color: #00FF00" id="is" height="100" width="10" ><br><span id=stxt>:</span></div> <div class=dtime title="分钟" style="position: absolute;bottom:0;left:30" align="center"><img style="background-color: green" id="im" height="100" width="10" ><br><span id=mtxt></span>:</div> <div class=dtime title="小时" style="position: absolute;bottom:0;left:0" align="center"><img style="background-color: FF0000" id="ih" height="100" width="10" ><br><span id=htxt></span>:</div> <div class=dtime title="00" style="position: absolute;bottom:0;left:90" align="center"><img style="background-color: yellow" id="ii" height="100" width="10" ><br><span id=otxt></span></div> </div> </div>
COPYRIGHT © 2003-2005 ALL RIGHTS RESERVED
业务联系
|
广告服务
|
网站建设
|
关于我们
|
免责声明
月光宝盒工作室
800*600