zoukankan      html  css  js  c++  java
  • 显示走动的数字时间和显示星期,年,月,日

    <script src='http://www.yiluda.net/counter/counter.php?uid=15268&style=17&length=6'></script>
    <br>
    <span id="liveclock" style"= 109px; height: 15px"></span>
    <SCRIPT language=javascript>
    function www_helpor_net()
    {
    var Digital=new Date()
    var hours=Digital.getHours()
    var minutes=Digital.getMinutes()
    var seconds=Digital.getSeconds()

    if(minutes<=9)
    minutes
    ="0"+minutes
    if(seconds<=9)
    seconds
    ="0"+seconds
    myclock
    ="现在时刻:<font size='5' face='Arial black'>"+hours+":"+minutes+":"+seconds+"</font>"
    if(document.layers){document.layers.liveclock.document.write(myclock)
    document.layers.liveclock.document.close()
    }
    else if(document.all)
    liveclock.innerHTML
    =myclock
    setTimeout(
    "www_helpor_net()",1000)
    }
    www_helpor_net();
    </SCRIPT>
    <SCRIPT language="javascript">
    <!--
    function initArray()
     {
      
    for(i=0;i<initArray.arguments.length;i++)
      
    this[i]=initArray.arguments[i];
     }
     
    var isnMonths=new initArray("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
     
    var isnDays=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日");
     today
    =new Date();
     hrs
    =today.getHours();
     min
    =today.getMinutes();
     sec
    =today.getSeconds();
     clckh
    =""+((hrs>12)?hrs-12:hrs);
     clckm
    =((min<10)?"0":"")+min;clcks=((sec<10)?"0":"")+sec;
     clck
    =(hrs>=12)?"下午":"上午";
     
    var stnr="";
     
    var ns="0123456789";
     
    var a="";

    function getFullYear(d)
    {
      yr
    =d.getYear();if(yr<1000)
      yr
    +=1900;return yr;}
      document.write(
    "<table>");
      document.write(
    "<TR><TD>"+isnDays[today.getDay()]+","+isnMonths[today.getMonth()]+""+today.getDate()
    +"日,"+getFullYear(today)+"");
      document.write(
    "</table>");
    //-->
    </SCRIPT>
  • 相关阅读:
    python,生产环境安装
    neo4j 图数据库
    RNN系列
    机器学习关于AUC的理解整理
    fensorflow 安装报错 DEPENDENCY ERROR
    dubbo Failed to check the status of the service com.user.service.UserService. No provider available for the service
    使用hbase遇到的问题
    MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
    gradle 安装
    jenkins 安装遇到的坑
  • 原文地址:https://www.cnblogs.com/xh831213/p/336948.html
Copyright © 2011-2022 走看看