function Show_BlkBlackTab(BlkBlackTabid_num,BlkBlackTabnum){
for(var i=0;i<5;i++)
{
document.getElementById("BlkBlackTabcontent_"+BlkBlackTabid_num+i).style.display="none";
}
for(var i=0;i<5;i++)
{
document.getElementById("BlkBlackTabmenu_"+BlkBlackTabid_num+i).className="BlackColor"+i;
}
document.getElementById("BlkBlackTabmenu_"+BlkBlackTabid_num+BlkBlackTabnum).className="BlackOn";
document.getElementById("BlkBlackTabcontent_"+BlkBlackTabid_num+BlkBlackTabnum).style.display="block";
}
参数说明下:
BlkBlackTabid_num:菜单ID
BlkBlackTabnum:显示内容ID
i:菜单个数
BlackOn:css样式名
for(var i=0;i<5;i++)
{
document.getElementById("BlkBlackTabcontent_"+BlkBlackTabid_num+i).style.display="none";
}
for(var i=0;i<5;i++)
{
document.getElementById("BlkBlackTabmenu_"+BlkBlackTabid_num+i).className="BlackColor"+i;
}
document.getElementById("BlkBlackTabmenu_"+BlkBlackTabid_num+BlkBlackTabnum).className="BlackOn";
document.getElementById("BlkBlackTabcontent_"+BlkBlackTabid_num+BlkBlackTabnum).style.display="block";
}
参数说明下:
BlkBlackTabid_num:菜单ID
BlkBlackTabnum:显示内容ID
i:菜单个数
BlackOn:css样式名