62,046
社区成员
发帖
与我相关
我的任务
分享
// JScript 文件
function OpenDivWindow2(url,title,width,height,scrolling,top,left) {
var divWindow = document.getElementById("divShowDivWindow");
divWindow.style.top =top+"px";
divWindow.style.left =left+"px";
divWindow.style.visibility="visible";
divWindow.style.zIndex = 999;
divWindow.style.width=(width+0)+"px";
divWindow.style.height=(height+30)+"px";
var divTitle=document.getElementById("divShowDivWindowTitle");
divTitle.innerText=title;
var divIframe=document.getElementById("divShowDivWindowIframe");
divIframe.src=url;
divIframe.width=width;
divIframe.height=height;
if(scrolling)
{
divIframe.scrolling=scrolling;
}
}
function OpenDivWindow(url,title,width,height,top,left,scrolling)
{
var divWindow = document.getElementById("divShowDivWindow");
if(!top) top= document.documentElement.scrollTop + document.body.scrollTop;
top=top+10;
if(!left) left=document.body.clientWidth/2-divWindow.clientWidth/2;
if(!width) width==document.documentElement.clientWidth-20;
if(!height) height=document.documentElement.clientHeight-50;
var scrolling="on";
OpenDivWindow2(url,title,width,height,scrolling,top,left);
}
function CloseDivWindow()
{
var divWindow = document.getElementById("divShowDivWindow");
divWindow.style.top ="-9999px";
divWindow.style.visibility="hidden";
}