JavascriptÖÐShowModalDialog¹¦ÄÜ
ShowModalDialogº¯ÊýµÄ¹¦ÄÜ£º
´ò¿ªÒ»¸ö×Ó´°¿Ú£¬²¢ÇÒ¿ÉÓ븸´°¿ÚÏ໥´«µÝÊý¾Ý£¬ËüÓëwindow.openµÄ×î´óÇø±ð¾ÍÔÚÓÚÓÉShowModalDialog´ò¿ª×Ó´°¿Úºó£¬¸¸´°¿Ú½«²»ÄܲÙ×÷¡£
ʹÓ÷½·¨£º
vReturnValue = window.showModalDialog(sURL [, vArguments] [, sFeatures])
²ÎÊý˵Ã÷£º
sURL
±ØÑ¡²ÎÊý£¬ÀàÐÍ£º×Ö·û´®¡£ÓÃÀ´Ö¸¶¨¶Ô»°¿òÒªÏÔʾµÄÎĵµµÄURL¡£
vArguments
¿ÉÑ¡²ÎÊý£¬ÀàÐÍ£º±äÌå¡£ÓÃÀ´Ïò¶Ô»°¿ò´«µÝ²ÎÊý¡£´«µÝµÄ²ÎÊýÀàÐͲ»ÏÞ£¬°üÀ¨Êý×éµÈ¡£¶Ô»°¿òͨ¹ýwindow.dialogArgumentsÀ´È¡µÃ´«µÝ½øÀ´µÄ²ÎÊý¡£
sFeatures
¿ÉÑ¡²ÎÊý£¬ÀàÐÍ£º×Ö·û´®¡£ÓÃÀ´ÃèÊö¶Ô»°¿òµÄÍâ¹ÛµÈÐÅÏ¢£¬¿ÉÒÔʹÓÃÒÔϵÄÒ»¸ö»ò¼¸¸ö£¬Ó÷ֺœ;”¸ô¿ª¡£
dialogHeight ¶Ô»°¿ò¸ß¶È£¬²»Ð¡ÓÚ£±£°£°px£¬£É£Å£´ÖÐdialogHeight ºÍ dialogWidth ĬÈϵĵ¥Î»ÊÇem£¬¶ø£É£Å£µÖÐÊÇpx£¬Îª·½±ãÆä¼û£¬ÔÚ¶¨Òåmodal·½Ê½µÄ¶Ô»°¿òʱ£¬ÓÃpx×öµ¥Î»¡£
¡¡¡¡ dialogWidth: ¶Ô»°¿ò¿í¶È¡£
¡¡¡¡ dialogLeft: ¾àÀë×ÀÃæ×óµÄ¾àÀë¡£
¡¡¡¡ dialogTop: Àë×ÀÃæÉϵľàÀë¡£
¡¡¡¡ center: {yes | no | 1 | 0 }£º´°¿ÚÊÇ·ñ¾ÓÖУ¬Ä¬ÈÏyes£¬µ«ÈÔ¿ÉÒÔÖ¸¶¨¸ß¶ÈºÍ¿í¶È¡£
¡¡¡¡ help: {yes | no | 1 | 0 }£ºÊÇ·ñÏÔʾ°ïÖú°´Å¥£¬Ä¬ÈÏyes¡£
¡¡¡¡ resizable: {yes | no | 1 | 0 } £Û£É£Å£µ£«£Ý£ºÊÇ·ñ¿É±»¸Ä±ä´óС¡£Ä¬ÈÏno¡£
¡¡¡¡ status: {yes | no | 1 | 0 } £ÛIE5+£Ý£ºÊÇ·ñÏÔʾ״̬À¸¡£Ä¬ÈÏΪyes[ Modeless]»òno [Modal]¡£
scroll:{ yes | no | 1 | 0 | on | off }£ºÖ¸Ã÷¶Ô»°¿òÊÇ·ñÏÔʾ¹ö¶¯Ìõ¡£Ä¬ÈÏΪyes¡£
²ÎÊý´«µÝ·½·¨£º
¸¸´°¿ÚÏò×Ó´°¿Ú´«µÝ²ÎÊý²ÉÓÃShowModalDialogµÄµÚ2¸ö²ÎÊý¼´¿É£¬¸¸´°¿ÚÒª»ñÈ¡×Ó´°¿Ú´«»ØµÄ²ÎÊýÔò¿Éͨ¹ýShowModalDialogº¯ÊýµÄ·µ»ØÖµ»ñÈ¡¡£
×Ó´°¿Ú»ñÈ¡¸¸´°¿Ú²ÎÊýµÄ·½·¨Îª²ÉÓÃ×Ó´°¿Úwindow¶ÔÏódialogArgumentsÊôÐÔ»ñÈ¡£¬ÀýÈ磺
var a=window.dialogArguments;
×Ó´°¿ÚÏò¸¸´°¿Ú·µ»Ø²ÎÊý²ÉÓÃwindow.returnValueÊôÐÔ£¬È磺
window.returnValue=1;
window.close();
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/qunluo/archive/2005/11/21/533727.aspx
Ïà¹ØÎĵµ£º
withÓï¾ä
ÓÃÓÚÉèÖôúÂëÌض¨¶ÔÏóµÄ×÷ÓÃÓò¡£
Àý£º
var sMessage = "hello world";
with(sMessage)
{
&nbs ......
ÒýÓÃÀàÐÍͨ³£½Ð×öÀࣨclass£©£¬Óöµ½ÒýÓÃֵʱ£¬Ëù´¦ÀíµÄ¾ÍÊǶÔÏó¡£
¶ÔÏóµÄ´´½¨£º
var o = new Object();
Èç¹ûûÓвÎÊý¿ÉÒÔÊ¡ÂÔÀ¨ºÅ£¬È磺var o = new Object;
ObjectÀࣺ
&nb ......
ÎÒÃǶ¼ÖªµÀ£¬ajaxÄÜÌá¸ßÒ³ÃæÔØÈëµÄËٶȵÄÖ÷ÒªÔÒòÊÇͨ¹ýajax¼õÉÙÁËÖظ´Êý¾ÝµÄÔØÈ룬ÕæÕý×öµ½°´Ðè»ñÈ¡£¬¼ÈÈ»Èç´Ë£¬ÎÒÃÇÔÚдajax³ÌÐòµÄʱºò²»·ÁËÍ·ðË͵½Î÷£¬ÔÚ¿Í»§¶ËÔÙ×öÒ»´Î»º´æ,½øÒ»²½Ìá¸ßÊý¾ÝÔØÈëËٶȡ£ÄǾÍÊÇÔÚÔØÈëÊý¾ÝµÄͬʱ½«Êý¾Ý»º´æÔÚä¯ÀÀÆ÷ÄÚ´æÖУ¬Ò»µ©Êý¾Ý±»ÔØÈ룬ֻҪҳÃæδˢУ¬¸ÃÊý¾Ý¾ÍÓÀÔ¶µÄ»º´æÔÚÄÚ´æÖУ¬µ±Ó ......
<script language="javascript">
function ShowTableRow(id)
{
var _Row = document.getElementById(id) <!-- »ñÈ¡IDΪTableRowID µÄ¶ÔÏó -->
var _Img = document.getElementById("Img"+id)
&nb ......