zoukankan      html  css  js  c++  java
  • 有影子的时钟

    概述:

        有影子的时钟。

    代码:          

    <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>
       

          

  • 相关阅读:
    redis 高级
    redis连接
    redis脚本
    Redis事务
    redis发布订阅
    加一
    C语言从代码中加载动态链接库
    GCC编译器
    Vim编辑器基础
    Linux用户的创建与授权及修改密码
  • 原文地址:https://www.cnblogs.com/abcdwxc/p/1298175.html
Copyright © 2011-2022 走看看