欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

javascript的對(duì)話框詳解與參數(shù)

 更新時(shí)間:2007年03月08日 00:00:00   作者:  
對(duì)話框可以分為模式對(duì)話框和無模式對(duì)話框兩種,兩者區(qū)別是在對(duì)話框被關(guān)閉之前用戶能否在同一應(yīng)用程序的其他地方進(jìn)行工作。舉例說明:打開文件對(duì)話框便是典型的模式對(duì)話框,在你選擇好要打開的文件按下確定后,或者取消打開文件操作后,才可以在同一應(yīng)用程序進(jìn)行其他操作。而常見的查找和替換對(duì)話框便是無模式對(duì)話框的典型,在該對(duì)話框打開的同時(shí),我們還可以進(jìn)行其他工作。模式對(duì)話框會(huì)始終保持焦點(diǎn)。除非關(guān)閉對(duì)話框,否則無法切換窗口。 無模式對(duì)話框不會(huì)始終保持焦點(diǎn),但始終保持顯示在最前端。

彈出網(wǎng)頁窗口全攻略(html/hta)
1.彈啟一個(gè)全屏窗口 
<html>
<body onload="window.open( http://www.3lian.com, example01 , fullscreen );">;
<b>www.3lian.com</b>
</body>
</html>

  2.彈啟一個(gè)被F11化后的窗口

<html>
<body onload="window.open( http://www.3lian.com, example02 , channelmode );">;
<b>www.3lian.com</b>
</body>
</html>

  3.彈啟一個(gè)帶有收藏鏈接工具欄的窗口

<html>
<body onload="window.open( http://www.3lian.com, example03 , width=400,height=300,directories );">
<b>www.3lian.com</b>
</body>
</html>

  4.網(wǎng)頁對(duì)話框

<html>
<SCRIPT LANGUAGE="javascript">
<!--
showModalDialog( http://www.3lian.com, example04 , dialogWidth:400px;dialogHeight:300px;
dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes )
//-->
</SCRIPT>
<b>www.3lian.com</b>
</body>
</html>

<html>
<SCRIPT LANGUAGE="javascript">
<!--
showModelessDialog( http://www.pconline.com.cn , example05 , dialogWidth:400px;dialogHeight:300px;
dialogLeft:200px;dialogTop:150px;center:yes;help:yes;resizable:yes;status:yes )
//-->
</SCRIPT>
<b>http://www.3lian.com</b>
</body>
</html>

  showModalDialog()或是showModelessDialog() 來調(diào)用網(wǎng)頁對(duì)話框,至于showModalDialog()與showModelessDialog()的區(qū)別,在于showModalDialog()打開的窗口(簡稱模式窗口),置在父窗口上,必須關(guān)閉才能訪問父窗口(建議盡量少用,以免招人反感);showModelessDialog()(簡稱無模式窗口),打開后不必關(guān)閉也可訪問父窗口打開的窗口。 

dialogHeight: iHeight 設(shè)置對(duì)話框窗口的高度。 
dialogWidth: iWidth 設(shè)置對(duì)話框窗口的寬度。   
dialogLeft: iXPos 設(shè)置對(duì)話框窗口相對(duì)于桌面左上角的left位置。 
dialogTop: iYPos 設(shè)置對(duì)話框窗口相對(duì)于桌面左上角的top位置。 
center: {yes | no | 1 | 0 } 指定是否將對(duì)話框在桌面上居中,默認(rèn)值是“yes”。
help: {yes | no | 1 | 0 } 指定對(duì)話框窗口中是否顯示上下文敏感的幫助圖標(biāo)。默認(rèn)值是“yes”。   
resizable: {yes | no | 1 | 0 } 指定是否對(duì)話框窗口大小可變。默認(rèn)值是“no”。 
status: {yes | no | 1 | 0 } 指定對(duì)話框窗口是否顯示狀態(tài)欄。對(duì)于非模式對(duì)話框窗口,默認(rèn)值是“yes”;對(duì)于模式對(duì)話框窗口,默認(rèn)值是 “no”。

相關(guān)文章

最新評(píng)論