1. ±ê×¼µÄ·½·¨
<mce:script type="text/javascript"><!--
function openWin(src, width, height, showScroll){
window.showModalDialog (src,"","location:No;status:No;help:No;dialogWidth:"+width+";dialogHeight:"+height+";scroll:"+showScroll+";");
}
// --></mce:script>
Àý£º<span style="CURSOR: pointer" onclick="openWin
(’http://www.deepteach.com’, ’500px’, ’400px’, ’no’)">µã»÷</span>
2. ҪעÒâµÄÊÇ£¬Firefox²¢²»Ö§³Ö¸Ã¹¦ÄÜ£¬ËüÖ§³ÖµÄÓï·¨ÊÇ
window.open
(’openwin.html’,'newWin’, 'modal=yes, width=200,height=200,resizable=no, scrollbars=no’ );
3. ÈçºÎ×Ô¶¯ÅжÏä¯ÀÀÆ÷
<input type="button" value="´ò¿ª¶Ô»°¿ò" onclick="showDialog('#')"/>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showDialog(url)
{
if( document.all ) //IE
{
feature="dialogWidth:300px;dialogHeight:200px;status:no;help:no";
window.showModalDialog(url,null,feature);
}
else
{
//modelessDialog¿ÉÒÔ½«modal»»³Édialog=yes
feature ="width=300,height=200,menubar=no,toolbar=no,location=no,";
feature+="scrollbars=no,status=no,modal=yes";
window.open(url,null,feature);
}
}
//-->
</SCRIPT>
4. ÈçºÎÔÚÒ³ÃæÖ®¼ä´«µÝÊýÖµ
(Ò»)showModalDialogʹÓÃÀý×Ó,¸¸´°¿ÚÏò×Ó´°¿Ú´«µÝÖµ,×Ó´°¿ÚÉèÖø¸´°¿ÚµÄÖµ,×Ó´°¿Ú¹Ø±ÕµÄʱºò·µ»ØÖµµ½¸¸´°¿Ú.
farther.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>New Document </TITLE>
<META content="EditPlus" name="Generator">
<META content="" name="Author">
<META content="" name="Keywords">
<META content="" name="Description">
<mce:script language="javascript"><!--
function openChild(){
var k = window.showModalDialog("child.html",window,"dialogWidth:335px;status:no;dialogHeight:300px");
if(k