嗨,我的波纹管代码可在IE上使用,但不适用于最新版本的FireFox。 我的IE版本是:11.483.15063,而我的Firefox版本是64。 我认为这是我的问题,因为使用了FireFox不支持的parseInt
function setTabPage() {
if (trvpnlState == 2) return;
if (trvpnlState == 1)
{ HidePnl1(); return }
var cntElm = document.all['frmContent'];
var top = document.all['GroupTab1_0'].offsetTop;
var left = document.all['GroupTab1_0'].offsetLeft;
var tp1 = document.all['TabPage1'];
tp1.style.width = 0;
tp1.style.left = event.clientX - parseInt(tp1.style.width.split('px')) - event.offsetX + 170;
var prnHlt = parseInt(document.all['GroupTab1_0'].parentElement.parentElement.style.height.split('px')[0]);
tp1.style.top = 30;
tp1.style.height = 700;
tp1.style.display = "";
if (trvpnlState == 0)
ShowPnl1();
}
function ShowPnl1() {
if (oInterval != '') window.clearInterval(oInterval);
oInterval = window.setInterval("ShowHide(1)", 1);
document.all['TabPage1'].focus();
trvpnlState = 2;
}
function HidePnl() {
if ((trvpnlState != 1) && (event.srcElement.id == 'TabPage1')) return
var divTabPage = document.all['TabPage1'];
if (event.clientX > parseInt(divTabPage.style.left.split("px")[0]))
return;
HidePnl1();
}