鼠标滑过改变样式JS函数

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样式名

posted @ 2012-04-10 10:05  Sue_娜  阅读(3275)  评论(0编辑  收藏  举报