首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

模式窗口解决方案

2012-05-23 
模式窗口请给一个模式窗口的例子给我,我自己弄的达不到我想要的效果效果很简单:就是没有工具栏、地址栏、滚

模式窗口
请给一个模式窗口的例子给我,我自己弄的达不到我想要的效果
效果很简单:就是没有工具栏、地址栏、滚动条、状态栏以及
顶部的title(就跟本页面最上边的Windows Internet Explorer)
一样的。最终效果就跟一个div一样。

[解决办法]

探讨
就跟本页面最上边的Windows Internet Explorer)
一样的。

[解决办法]
把以下代碼加到一個事件中,例如click(自己在Request.ApplicationPath后面修改一下跳轉的地址)
string tt = " qminoa = window.open('" + Request.ApplicationPath + "/Template/Report/Default.aspx" + "'"
+ ",'','toolbar=no,menubar=no,titlebar=yes,directories=no,resizable=yes, status=yes,fullscreen=no,top=0;left=0,width=900,height=700');";
Response.Write("<script language=javascript>");
Response.Write(tt);
Response.Write("qminoa.moveTo(0,0);");
Response.Write("qminoa.resizeTo(screen.availWidth,screen.availHeight);");
Response.Write("window.opener=null;");
Response.Write("window.close();");
Response.Write("</script>");
[解决办法]
探讨
把以下代碼加到一個事件中,例如click(自己在Request.ApplicationPath后面修改一下跳轉的地址)
string tt = " qminoa = window.open('" + Request.ApplicationPath + "/Template/Report/Default.aspx" + "'"
                    + ",'','toolbar=no,menubar=no,titlebar=yes,directories=no,resizable=yes, status=yes,fullscreen=no,top=0;left=0,width=900,height=700');";
                    Response.Write(" <script language=javascript>");
                    Response.Write(tt);
                    Response.Write("qminoa.moveTo(0,0);");
                    Response.Write("qminoa.resizeTo(screen.availWidth,screen.availHeight);");
                    Response.Write("window.opener=null;");
                    Response.Write("window.close();");
                    Response.Write(" </script>");

[解决办法]
关注中
[解决办法]
div隐藏或jwindow弹出
function divShow(){
document.getElementById('id1').style.display='block';
document.getElementById('id2').style.display='block'; 
document.getElementById('id1').style.height = document.body.clientHeight + document.body.scrollTop;
}


<div id="id2">
</div>
<div id="id1"></div>



[解决办法]
window.showModalDialog('a.html','title','scrollbars=no;resizable=no;help=no;status=no;dialogTop=25; dialogLeft=0;dialogHeight=350px;dialogwidth=410px;');这只是一个例子..
[解决办法]
探讨
div隐藏或jwindow弹出
function divShow(){
  document.getElementById('id1').style.display='block';
  document.getElementById('id2').style.display='block';
  document.getElementById('id1').style.height = document.body.clientHeight + document.body.scrollTop;


}


<div id="id2">                             
</div>
<div id="id1"> </div>



热点排行