时间:2021-07-01 10:21:17 帮助过:23人阅读
#site-nav .menu-hd { PADDING:0px; DISPLAY: block; Z-INDEX: 10002; CURSOR: pointer; POSITION: absolute; HEIGHT:50px; line-height:40px; width:76px; margin:0;}#site-nav .menu-c { PADDING:0px; DISPLAY: block; Z-INDEX: 10002; CURSOR: pointer; POSITION: absolute; HEIGHT:50px; line-height:40px; width:90px; background:url(img/catalog.png) no-repeat center top; margin:0;}#site-nav .menu:hover .menu-hd { height:50px; width:90px; background:url(img/catalog.png) no-repeat center top;}
function catalogClick(logType,pageCode,id) { var obj = document.getElementsByTagName("a"); for(var i=0;i
eval(id)==> thisObj
把
eval(id).class sName="menu-c";
改成
thisObj.className="menu-c";
className你多写了个s
多谢,我还以为是语法上不支持这样的操作呢