请问下这段js代码在firefox下应该怎么改?

来源:百度知道 编辑:UC知道 时间:2024/04/29 08:29:17
这段代码在ie下显示正常,可以在firefox好像没什么作用,请高手赐教,谢谢!

var debug = false ;
function switchTab (tab)
{ event.returnValue = false ;
var tabName = getTabGroupName (tab.id) ;
if (tabName == '')
{ alert ("No tabName for tab [" + tab.id + "]") ;
return ;
}
var index = 1 ;
while (true)
{ var tabTitle = eval ("document.all ('" + tabName + '_' + index + "')") ;
if (tabTitle == undefined)
break ;
deactiveTabTitle (tabTitle , tabName) ;
var tabContent = eval ("document.all ('" + tabName + '_' + index + '_content' + "')") ;
if (tabContent != undefined)
tabContent.style.display = "NONE" ;
index ++ ;
}
if (debug)
alert ("Find " + (index - 1) + " tab title(s) for TabName [" + tabName + "]") ;
activeTabTitle (tab , tabName) ;
va

高手如云,都不在这里.
楼主还是去it论坛上问问比较靠谱。
http://softbbs.it168.com/
http://bbs.chinaitlab.com/
希望对你有所帮助

我也不知道啊!!!