当前位置: 代码迷 >> Web前端 >> window.showModalDialog与window.open全屏展示
  详细解决方案

window.showModalDialog与window.open全屏展示

热度:160   发布时间:2012-11-06 14:07:00.0
window.showModalDialog与window.open全屏显示
function winModalFullScreen(strURL)
{
var sheight = screen.height-70;
var swidth = screen.width-10;
var winoption ="dialogHeight:"+sheight+"px;dialogWidth:"+ swidth +"px;status:yes;scroll:yes;resizable:yes;center:yes";

var tmp=window.showModalDialog(strURL,window,winoption);
return tmp;
}

function winOpenFullScreen(strURL)
{
var sheight = screen.height-70;
var swidth = screen.width-10;
var winoption ="left=0,top=0,height="+sheight+",width="+swidth+",toolbar=yes,menubar=yes,location=yes,status=yes,scrollbars=yes,resizable=yes";

var tmp=window.open(strURL,'',winoption);
return tmp;
}

?

1 楼 6868686868 2011-01-14  
  相关解决方案