var agent=window.navigator.userAgent;
var agentType=(agent.indexOf('MSIE')<1)?'FF':'IE';function showOpenWindow(url,objId,wTop,wLeft,wWidth,wHeight,isResize,isScroll,isReturn)
{
var wFeatures;
var wId=objId;
if(agentType=='IE')
{
wFeatures=""
+"dialogTop:"+wTop+"px;"
+"dialogLeft:"+wLeft+"px;"
+"dialogWidth:"+wWidth+"px;"
+"dialogHeight:"+wHeight+"px;"
+"resizable:"+isResize+";scroll:"+isScroll+";status:no;help:no";
}
else
{
wFeatures=""
+"top="+wTop+","
+"left="+wLeft+","
+"width="+wWidth+","
+"height="+(wHeight-30)+","
+"dialog=yes,modal=yes,resizable="+isResize+",scrollbars="+isScroll+",status=no";
} if(agentType=='IE')
{
var getReturnValue=window.showModalDialog(url,wId,wFeatures);
if(isReturn==1)
{
$(objId).value=getReturnValue;
}
}
else
{
window.open(url,wId,wFeatures);
}
}
var agentType=(agent.indexOf('MSIE')<1)?'FF':'IE';function showOpenWindow(url,objId,wTop,wLeft,wWidth,wHeight,isResize,isScroll,isReturn)
{
var wFeatures;
var wId=objId;
if(agentType=='IE')
{
wFeatures=""
+"dialogTop:"+wTop+"px;"
+"dialogLeft:"+wLeft+"px;"
+"dialogWidth:"+wWidth+"px;"
+"dialogHeight:"+wHeight+"px;"
+"resizable:"+isResize+";scroll:"+isScroll+";status:no;help:no";
}
else
{
wFeatures=""
+"top="+wTop+","
+"left="+wLeft+","
+"width="+wWidth+","
+"height="+(wHeight-30)+","
+"dialog=yes,modal=yes,resizable="+isResize+",scrollbars="+isScroll+",status=no";
} if(agentType=='IE')
{
var getReturnValue=window.showModalDialog(url,wId,wFeatures);
if(isReturn==1)
{
$(objId).value=getReturnValue;
}
}
else
{
window.open(url,wId,wFeatures);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货