程序要做的效果就是点页面一个内容,然后显示一个大的层。一台服务器是层在下拉框的上面,即层在最上层。(这是我想要的效果)
另一台服务器下拉框在层的上面,不知道什么原因。程序片段:function popup_go_source(evt,source)
{
//event firfox
var e = window.event?window.event:evt;
var ele =window.event ? window.event : evt.target;
var obj=window.document.getElementById("line_window");
obj.innerHTML='<center><b>LOADING...........................</b></center>';
obj.style.position='absolute';
if(isIE)
{
obj.style.top=window.document.body.scrollTop+ele.clientY+75;
obj.style.light=ele.clientY;
}
else
{
obj.style.top=window.document.body.scrollTop+Math.abs(evt.pageY)+75; obj.style.light=evt.pageY;
}
obj.style.visibility='visible';
window.document.getElementById("showdata").src=source+"&$time";
obj.focus();
//window.document.body.scrollTop=obj.offsetTop;//add jun 7/8/2010 
}
<iframe id=showdata name=showdata scrolling='no' width="00" height='00' src='' style='display:none'></iframe>
<div id="line_window" name="line_window" style="position: absolute;z-index:100;left:2; visibility: hidden;width:1100;height:250;background-color:#FFFFFF;border-style:outset;border-width:2pt; border-color:$TABLE_BORDER_COLOR;"></div><a class='blue'  onmouseover=\"this.style.cursor='pointer'\" onClick=\"popup_go_source(event,'./popup_plan_setting.php?id=$id')\">[点击弹出层]</a>