<address id="xtbrn"></address><span id="xtbrn"></span>

      <span id="xtbrn"><dfn id="xtbrn"><listing id="xtbrn"></listing></dfn></span><p id="xtbrn"></p>

      <nobr id="xtbrn"><cite id="xtbrn"><delect id="xtbrn"></delect></cite></nobr>

        建站知識

        JS一周值表(分上下午)
        發布時間:2011-04-06 點擊次數:12410

        <script type=text/javascript>
        function jinrizhiban(){
        //把需要排班的姓名按照排班順序寫在下面一行里面就可以
        var pers=new Array('<font color=ff0000>上午值班:</font>徐峻&nbsp;&nbsp;張解忠','<font color=ff0000>下午值班:</font>吳志兵','<font color=ff0000>值班:</font>查敦傳&nbsp;徐峻&nbsp;吳志兵&nbsp;許剛','<font color=ff0000>下午值班:</font>張解忠&nbsp;許剛','<font color=ff0000>上午值班:</font>徐峻&nbsp;&nbsp;許剛','<font color=ff0000>下午值班:</font>吳志兵&nbsp;&nbsp;許剛','<font color=ff0000>上午值班:</font>徐峻&nbsp;&nbsp;許剛','<font color=ff0000>下午值班:</font>張解忠&nbsp;&nbsp;許剛','<font color=ff0000>上午值班:</font>吳志兵&nbsp;徐峻&nbsp;許剛','<font color=ff0000>下午值班:</font>徐峻&nbsp;&nbsp;許剛','<font color=ff0000>上午值班:</font>吳志兵&nbsp;&nbsp;許剛','<font color=ff0000>下午值班:</font>徐峻&nbsp;&nbsp;許剛','<font color=ff0000>上午值班:</font>吳志兵&nbsp;徐峻&nbsp;許剛','<font color=ff0000>下午值班:</font>許剛');
        //調整下面的調整因子,能控制啟用程序的那天由誰值班,以后都能自動更新顯示
        var ctrl_param=6;
        var now=new Date();
        var days=parseInt(now.getTime()/12/3600/1000);
        return pers[(days+ctrl_param) % pers.length];
        }
        document.write(jinrizhiban());
        </script>

        如果不想區分上下午,需將var days=parseInt(now.getTime()/12/3600/1000); 中的12改成24,然后在var pers=new Array中將數組由現在的14個(一天兩個)改成7個(一天一個)

      1. 上一條信息:ASP顯示當前日期和星期的超簡單代碼
      2. 下一條信息:香港PCCW機房主機上線
      3. 大伊香蕉在线精品视频75

        <address id="xtbrn"></address><span id="xtbrn"></span>

            <span id="xtbrn"><dfn id="xtbrn"><listing id="xtbrn"></listing></dfn></span><p id="xtbrn"></p>

            <nobr id="xtbrn"><cite id="xtbrn"><delect id="xtbrn"></delect></cite></nobr>