首页 新闻 会员 周边

后台用的是frameset,怎么实现 弹窗(弹页面)+ 锁屏 的效果?在线等

0
悬赏园豆:100 [已关闭问题]

RT。

后台用的是frameset,怎么实现 弹窗(弹页面)+ 锁屏 的效果,然后操作完了 刷新父页面? 大家都用什么办法啊。试了下 lhgstudio  效果不是很好。

sealzrt的主页 sealzrt | 初学一级 | 园豆:2
提问于:2009-07-21 17:06
< >
分享
其他回答(2)
0

<html>
<head>
<title>222222</title>
<style>
body { background-color:#FFFFFF; margin:0;}
li,td,div,body {font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #333333; }
</style>

 

                  <a  href="javascript:Open()"> <font color="#FF0000">点击这里选择执业机构</font></a>
           

      <input name="workID" type="text" class="input" id="workID" value="" size="22" maxlength="12"    />
        <span id="textfield"></span>
 

<script type="text/javascript">//必须body中引用
var width=700;
var height=550;
var bgcolor="#EEEEEE";//半透明窗口背景色DivMid
var trans=90;
var body = document.body;
var bodyWidth = parseInt((body.scrollWidth<body.clientWidth)?body.clientWidth:body.scrollWidth);
var bodyHeight = parseInt((body.scrollHeight<body.clientHeight)?body.clientHeight:body.scrollHeight);
var clientWidth=body.clientWidth;
var clientHeight=body.clientHeight;
//开始创建DivTop 最上信息层
var DivTop = document.createElement("div");
with(DivTop.style)
{
display = "none";
zIndex = 3;
position = "absolute";
border = "0px";
}
DivTop.id = "Div3"; body.appendChild(DivTop);
DivTop.innerHTML = "<table cellspacing=\"0\" cellpadding=\"0\" style=\"width:"+width+"px;border:#0051E5 1px solid;background:#FFFFFF;\"><tr><td style=\"background:#0051E5;color:#FFFFFF;font-size:13px;height:18px;\"><span style=\"float:right\"><a href=\"javascript:Close();\" style=\"color:#FFFFFF;text-decoration:none;background:#CC4332;display:block;padding:1px;height:14px;width:14px;font-size:12px;overflow:hidden;\">×</a></span> 信 息 提 示</td></tr><tr><td style=\"line-height:180%;padding:2px;\"> <iframe src=\"souask/upimg.asp\" width=\"700px\" height=\"550px\"></iframe><br /> </td></tr></table>";

//开始创建DivMid 中间半透明层
var DivMid = document.createElement("div");
with(DivMid.style)
{
display = "none";
zIndex = 2;
position = "absolute";
height = "100%";
width = "100%";
top = 0;
left = 0;
border = "0px";
backgroundColor = bgcolor;
}
DivMid.id = "Div2";
body.appendChild(DivMid);

function $(Id) { return document.getElementById(Id); }
function isIE()
{
return (document.all && window.ActiveXObject && !window.opera) ? true : false;
}

function center(win)//将主窗口置于网页正中
{
var s = parseInt(body.scrollTop + clientHeight/2 - height/2);
win.style.top = (s<body.scrollHeight-height)?s:body.scrollHeight;
var s = parseInt(body.scrollLeft + clientWidth/2 - width/2);
win.style.left = (s<body.scrollWidth-width)?s:body.scrollWidth;
}

function Open(){

with(body.style)//完全锁定背景层
{
width = clientWidth;
height = clientHeight;
overflow = "auto";
}
with($('Div2').style)
{
width = bodyWidth;
height = bodyHeight;
overflow = "hidden";
display = "";
if (isIE()){
filter = " Alpha(Opacity="+trans+")";
}else{
opacity = trans/100;
}

}
with($('Div3').style)
{
display = "";
}
center($('Div3'));

}

function Close(){
with(body.style)
{
width = bodyWidth;
height = bodyHeight;
overflow = "auto";
}
with($('Div2').style)
{
display = "none";
}
with($('Div3').style)
{
display = "none";
}

}
Open();
</script>
  
  <script>
  
 function FinNot(txt,txt2)
 {
 document.getElementById("workID").value=txt;
 document.getElementById("textfield").innerHTML=txt2;
 
 }
</script>
</body>
</html>

nana1212 | 园豆:155 (初学一级) | 2009-07-21 17:24
0

下面这个类别,其中有一个刷新父窗口的方法:

http://www.cnblogs.com/insus/articles/1341703.html

Insus.NET | 园豆:932 (小虾三级) | 2009-07-21 18:03
0

关注这个问题。

winzheng | 园豆:8797 (大侠五级) | 2009-07-21 21:39
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册