代码如下:
JavaScript版TAB选项卡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";
}
}
}
script>
本日热门 本周热门 本月热门 内容1
内容2
内容3
本日推荐 本周推荐 本月推荐 内容1
内容2
内容3