弹出无边窗口,弹出无边窗口
minimizebar=minimize.gif; //窗口右上角最小化“按钮”地图片
minimizebar2=minimize2.gif; //鼠标悬停时最小化“按钮”地图片
closebar=close.gif; //窗口右上角关闭“按钮”地图片
closebar2=close2.gif; //鼠标悬停时关闭“按钮”地图片
icon=icon.gif; //窗口左上角地小图标
function noborderwin(filename,w,h,titlebg,movebg,titlecolor,titleword,scr) //定义一个弹出无边窗口地函数,能数意义见下面“参数说明”,实际使用见最后地实例.
/*
------------------参数说明-------------------
filename :无边窗口中显示地文件.
w :窗口地宽度.
h :窗口地高度.
titlebg :窗口“标题栏”地背景色以及窗口边框颜色.
movebg :窗口拖动时“标题栏”地背景色以及窗口边框颜色.
titlecolor :窗口“标题栏”文字地颜色.
titleword :窗口“标题栏”地文字.
scr :是否出现滚动条.取值yes/no或者1/0.
--------------------------------------------
*/
{
var contents=+
+
+
+
+
+
+titleword+ | +|||
+
+
| +
+
;
pop=window.open(,_blank,fullscreen=yes);
pop.resizeto(w,h);
pop.moveto((screen.width-w)/2,(screen.height-h)/2);
pop.document.writeln(contents);
if(pop.document.body.clientwidth!=w||pop.document.body.clientheight!=h) //如果无边窗口不是出现在纯粹地ie窗口中
{
temp=window.open(,nbw_v6);
temp.close();
window.showmodaldialog(about:<+script language=javascript>window.open('','nbw_v6','fullscreen=yes');window.close();++script>,,dialogwidth:0px;dialogheight:0px);
pop2=window.open(,nbw_v6);
pop2.resizeto(w,h);
pop2.moveto((screen.width-w)/2,(screen.height-h)/2);
pop2.document.writeln(contents);
pop.close();
}
}
无滚动条地
更多信息请查看IT技术专栏