精品国产制服丝袜高跟_久久久久久久性_欧美v亚洲v国产v_国产亚洲国产bv网站在线

行業動態
JS一周值表(分上下午)
發布日期:2011-04-06 閱讀次數:3475 字體大小:
<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個(一天一個)