function changeTab(id, minId, topCount)
{
for(var i=minId; i < minId+topCount; i++)
{
if( id == i)
{
document.getElementById("li_" + i).className = "on";
document.getElementById("html_" + i).style.display = "block";
}
else
{
document.getElementById("li_" + i).className = "";
document.getElementById("html_" + i).style.display = "none";
}
}
}
.none{display:none;}
ul,li{list-style:none; margin:0; padding:0; font-size:12px;}
.tab{margin:100px;}
.tabTitle ul{overflow:hidden; zoom:1; border-left:1px solid #D5D3D4;}
.tabTitle li{width:82px; height:30px; line-height:30px; float:left; text-align:center; background:url(/2010/07/tab1.jpg) no-repeat;}
.tabTitle li.on{background:url(/uploads/2010/07/tab2.jpg) no-repeat;}
#html_1,#html_2,#html_3,#html_4,#html_5,#html_6{border:1px solid #D5D3D4; border-top:none; width:245px; height:100px;}
- 本日热门
- 本周热门
- 本月热门
内容1
内容2
内容3
- 本日推荐
- 本周推荐
- 本月推荐
内容1
内容2
内容3