|
22、打开一个没有最大化、最小化,只有关闭按钮的窗口
◆复制代码到head中
<script>
function modelesswin(url,mwidth,mheight){ if (document.all&&window.print) //if ie5 eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px"') else eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1"') }
//configure URL and window dimensions (width/height) modelesswin("http://google.com",600,600)
//To load via link, use something like below: //<a href="javascript:modelesswin('http://yahoo.com',600,400)">Click here</a> </script>
23、直接点击链接关闭窗口
举个例子比较方便理解````
◆<SCRIPT language=JavaScript> function shutwin(){ window.close(); return;} </SCRIPT>
<P align=center><A href="javascript:shutwin();">关闭本窗口</A></P></BODY></HTML> 24、弹启一个全屏窗口 ◆window.open('http://www.hxsd.com','example01','fullscreen')
<html> <body onload="window.open(' http://www.hxsd.com','example01','fullscreen');"> <b>www.hxsd.com</b> </body> </html>
hoho~~~好像触摸屏
25、弹启一个被F11化后的窗口 ◆window.open('http://www.hxsd.com','example02','channelmode')
<html> <body onload="window.open(' http://www.hxsd.com','example02','channelmode');"> <b>www.hxsd.com</b> </body> </html>
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |