解决方法:
示例模板下载地址:http://download.csdn.net/detail/u010205757/5295455
示例模板中js代码如下:
function selectLayer1(obj)
{
var tabs = document.getElementById("tagtab");
for(var i=0;i
if(obj.abbr==tabs.children[i].id){
tabs.children[i].className="new_mulu";
}else{
tabs.children[i].className="new_mulu1";
}
}
document.getElementById("tagtitle").innerText = obj.innerText;
}
function showztxxsubs(){
var obj = document.getElementById("ztxxsubs");
if(obj.style.display=="none"){
event.srcElement.parentElement.children[0].children[0].width="7";
event.srcElement.parentElement.children[0].children[0].height="7";
event.srcElement.parentElement.children[0].children[0].src="/jcms/jcms_files/jcms1/web1/site/picture/1/110411105951811.jpg";
obj.style.display="";
}else{
event.srcElement.parentElement.children[0].children[0].width="7";
event.srcElement.parentElement.children[0].children[0].height="7";
event.srcElement.parentElement.children[0].children[0].src="/jcms/jcms_files/jcms1/web1/site/picture/1/110411105951811.jpg";
obj.style.display="none";
}
}
设参代码如下:
父栏目:
οnclick="showjgszsubs()" width="95%" height="31" border="0" align="center" cellpadding="0" cellspacing="0" style=" cursor:pointer" >
子栏目: