万年历查询代码

发布时间 2009-02-17

<SCRIPT>
function showLocale(objD)
{
 var dn, str;
 var hh = objD.getHours();
 var mm = objD.getMinutes();
 var ss = objD.getSeconds();
 str = (objD.getMonth() + 1) + "月" + objD.getDate() +"日";
 
 if(hh<10) hh = '0' + hh;
 if(mm<10) mm = '0' + mm;
 if(ss<10) ss = '0' + ss;
 str += " " + hh + ":" + mm + ":" + ss;
 return(str);
}
function tick()
{
 var today;
 today = new Date();
 document.getElementById("localtime").innerHTML = showLocale(today);
 window.setTimeout("tick()", 1000);
}
tick();
function JSAddFavorite()
{
        if ( window.sidebar && "object" == typeof( window.sidebar ) && "function" == typeof( window.sidebar.addPanel ) )
        {
                //  firefox
                window.sidebar.addPanel( '114', 'http://114.vnet.cn/', '' );
        }
        else if ( document.all && "object" == typeof( window.external ) )
        {
                //  ie
                window.external.addFavorite( 'http://114.vnet.cn/', '114' );
        }
}
</SCRIPT>
 

[ 点击数:] [打印本网页] [关闭本窗口]
 

相关内容
查无记录

 

                                                                          

网站管理