WEB开发网
开发学院WEB开发Jsp java 有影子的数字时钟程序 阅读

java 有影子的数字时钟程序

 2008-01-05 09:17:55 来源:WEB开发网   
核心提示:有影子的数字时钟程序:<div id="bgclockshade" style="position:absolute;visibility:visible;font-family:´Arial black´;color:#cccccc;font-size:20

  有影子的数字时钟程序:

<div id="bgclockshade" style="position:absolute;visibility:visible;font-family:´Arial black´;color:#cccccc;font-size:20px;top:50px;left:173px"></div>
<div id="bgclocknoshade" style="position:absolute;visibility:visible;font-family:´Arial black´;color:#000000;font-size:20px;top:48px;left:170px"></div>
<div id="mainbody" style="position:absolute; visibility:visible">
</div>
<script language=javascript>
<!--
function www_helpor_net() {
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}
thistime = hours+":"+minutes+":"+seconds

if(document.all) {
bgclocknoshade.innerHtml=thistime
bgclockshade.innerHTML=thistime
}

if(document.layers) {
document.bgclockshade.document.write(´<div id="bgclockshade" style="position:absolute;visibility:visible;font-family:Verdana;color:FFAAAAA;font-size:20px;top:10px;left:152px">´+thistime+´</div>´)
document.bgclocknoshade.document.write(´<div id="bgclocknoshade" style="position:absolute;visibility:visible;font-family:Verdana;color:DDDDDD;font-size:20px;top:8px;left:150px">´+thistime+´</div>´)
document.close()
}
var timer=setTimeout("www_helpor_net()",200)
}
www_helpor_net();
//-->
</script>

Tags:java 影子 数字

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接