把生成的JS改一下就更理想了.
function setTabMenu(obj,i){
this.menu = obj.parentNode.parentNode.parentNode;//document.getElementById("tabsCj");
var links = this.menu.getElementsByTagName("a");
for (var k = 0; k < links.length; k++) {
links[k].className = "";}
obj.className="selected";
selectTabMenu(i,links.length,obj.parentNode.parentNode.parentNode.id);
}
function selectTabMenu(i,ii,name){
for(var l=1; l<=ii;l++)
{
if(i==l){document.getElementById(name+"_"+l).style.display="block";}
else{document.getElementById(name+"_"+l).style.display="none";}
}
}