网页弹出框

  1. 1.弹启一个全屏窗口   
  2.     
  3. <html>   
  4. <body onload="window.open('http://www.pconline.com.cn','example01','fullscreen');">;   
  5. <b>www.e3i5.com</b>   
  6. </body>   
  7. </html>   
  8.   
  9.   2.弹启一个被F11化后的窗口   
  10.   
  11. <html>   
  12. <body onload="window.open(''http://www.pconline.com.cn','example02','channelmode');">;   
  13. <b>www.e3i5.com</b>   
  14. </body>   
  15. </html>   
  16.   
  17.   3.弹启一个带有收藏链接工具栏的窗口   
  18.   
  19. <html>   
  20. <body onload="window.open('http://www.pconline.com.cn','example03','width=400,height=300,directories');">   
  21. <b>www.e3i5.com</b>   
  22. </body>   
  23. </html>   
  24.   
  25.   4.网页对话框   
  26.   
  27. <html>   
  28. <SCRIPT LANGUAGE="javascript">   
  29. <!--   
  30. showModalDialog('http://www.pconline.com.cn','example04','dialogWidth:400px;dialogHeight:300px;   
  31. dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes')   
  32. //-->   
  33. </SCRIPT>   
  34. <b>www.e3i5.com</b>   
  35. </body>   
  36. </html>   
  37.   
  38. <html>   
  39. <SCRIPT LANGUAGE="javascript">   
  40. <!--   
  41. showModelessDialog('http://www.pconline.com.cn','example05','dialogWidth:400px;dialogHeight:300px;   
  42. dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes')   
  43. //-->   
  44. </SCRIPT>   
  45. <b>http://www.pconline.com.cn</b>   
  46. </body>   
  47. </html>   
  48.   
  49. showModalDialog()或是showModelessDialog() 来调用网页对话框,至于showModalDialog()与showModelessDialog()的区别,在于showModalDialog()打开的窗口(简称模式窗口),置在父窗口上,必须关闭才能访问父窗口(建议尽量少用,以免招人反感);showModelessDialog()(简称无模式窗口),打开后不必关闭也可访问父窗口打开的窗口。    
  50.   
  51. dialogHeight: iHeight 设置对话框窗口的高度。    
  52. dialogWidth: iWidth 设置对话框窗口的宽度。      
  53. dialogLeft: iXPos 设置对话框窗口相对于桌面左上角的left位置。    
  54. dialogTop: iYPos 设置对话框窗口相对于桌面左上角的top位置。    
  55. center: {yes | no | 1 | 0 } 指定是否将对话框在桌面上居中,默认值是“yes”。   
  56. help: {yes | no | 1 | 0 } 指定对话框窗口中是否显示上下文敏感的帮助图标。默认值是“yes”。      
  57. resizable: {yes | no | 1 | 0 } 指定是否对话框窗口大小可变。默认值是“no”。    
  58. status: {yes | no | 1 | 0 } 指定对话框窗口是否显示状态栏。对于非模式对话框窗口,默认值是“yes”;对于模式对话框窗口,默认值是 “no”。  
posted @ 2009-01-14 10:13  专心专注专一  阅读(587)  评论(0编辑  收藏  举报