日期:2014-05-16  浏览次数:20368 次

怎样判断今天星期几,并在选项卡上选中状态



<style>
                *{padding:0;margin:0;}
                ol, ul {list-style:none;}
                .fn-hide{display:none;}
                .wrap{width:1000px;margin:50px auto;}
                .time{width:680px;height:30px;line-height:30px;border:1px solid #ddd;overflow:hidden;}
                .time li{float:left;width:80px;text-align:center;border-left:1px solid #ddd;}
                .time li.title{float:left;width:100px;background:#ddd;border:none;}
                .time li.current{color:#f60;font-weight:700;position:relative;}
                .con{width:680px;height:300px;border:1px solid #ddd;border-top:none;overflow:hidden;}
        </style>
<div class="wrap">
        <div class="time">
                <ul>
                        <li class="title">时间表:</li>
                        <li id="week1" onmouseover="setTab('week',1,7)">星期一</li>
                        <li id="week2" onmouseover="setTab('week',2,7)">星期二</li>
                        <li id="week3" onmouseover="setTab('week',3,7)">星期三</li>
                        <li id="week4" onmouseover="setTab('week',4,7)">星期四</li>
                        <li id="week5" onmouseover="setTab('week',5,7)">星期五</li>
                        <li id="week6" onmouseover="setTab('week',6,7)" class="current">星期六</li>
                        <li id="week7" onmouseover="setTab('week',7,7)">星期日</li>
                </ul>
        </div>

        <div&n