Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javascript ģʽ¶Ô»°¿òʹÓ㨼Ǽ±¸²é£©

JavascriptÀïÃæ·Öģʽ¶Ô»°¿òºÍ·Çģʽ¶Ô»°¿ò£¬ÆäʵÁ½ÕßÇø±ð¾ÍÊÇÔÚ¶Ô»°¿ò±»¹Ø±Õ֮ǰÓû§ÄÜ·ñÔÚͬһҳÃæµÄÆäËûµØ·½½øÐй¤×÷¡£±ÈÈç“´ò¿ªÎļþ”¶Ô»°¿ò±ãÊǵäÐ͵Äģʽ¶Ô»°¿ò£¬ÔÚÄã¶ÔÕâ¸ö¶Ô»°¿ò×ö³ö¶¯×÷²ÅÄܶԴò¿ª¸Ã¶Ô»°¿òµÄ³ÌÐò½øÐÐÆäËû²Ù×÷£¬¶ø·Çģʽ¶Ô»°¿òÔò²»±Ø¡£
ģʽ¶Ô»°¿ò£ºshowModalDialog
·Çģʽ¶Ô»°¿ò£ºshowModelessDialog
vReturnValue = window.showModalDialog(sURL [, vArguments] [,sFeatures])
vReturnValue = window.showModelessDialog(sURL [, vArguments] [,sFeatures])
·µ»ØÖµ£ºvReturnValue£¬ÓɶԻ°¿ò·µ»Øµ±È»¾ÍÊÇ·µ»ØÖµÁË£»
sURL£º±ØÑ¡£¬ÎªÄãÒª´ò¿ªµÄÒ³Ã棻
vArguments£º¿ÉÑ¡£¬ÓÃÀ´Ïò¶Ô»°¿ò´«µÝ²ÎÊý£»
sFeatures£º¿ÉÑ¡£¬´ò¿ª¶Ô»°¿òµÄÊôÐÔ£¬¸÷¸öÊôÐÔÖ±½ÓÓ÷ֺÅ(;)¸ô¿ª£¬°üÀ¨ÒÔÏÂһЩ²ÎÊý£¬¹©²Î¿¼£º
1.   dialogHeight:   ¶Ô»°¿ò¸ß¶È
2.   dialogWidth:   ¶Ô»°¿ò¿í¶È
3.   dialogLeft:      ÀëÆÁÄ»×ó±ßµÄ¾àÀë
4.   dialogTop:      ÀëÆÁÄ»ÉϱߵľàÀë
5.   center:           { yes | no | 1 | 0 }
£º              ¿ÚÊÇ·ñ¾ÓÖУ¬Ä¬ÈÏyes£¬µ«ÈÔ¿ÉÒÔÖ¸¶¨¸ß¶ÈºÍ¿í¶È
6.   help:              {yes | no | 1 | 0 }
£º               ÊÇ·ñÏÔʾ°ïÖú°´Å¥£¬Ä¬ÈÏyes
7.   resizable:        {yes | no | 1 | 0 } [IE5+]£º    ÊÇ·ñ¿É±»¸Ä±ä´óС,ĬÈÏno
8.   status:           {yes | no | 1 | 0 } [IE5+]£º     ÊÇ·ñÏÔʾ״̬À¸¡£Ä¬ÈÏΪyes[ Modeless]»òno[Modal]
9.   scroll:             { yes | no | 1 | 0 | on | off }£ºÖ¸Ã÷¶Ô»°¿òÊÇ·ñÏÔʾ¹ö¶¯Ìõ¡£Ä¬ÈÏΪyes
10.   dialogHide:    { yes | no | 1 | 0 | on | off }£ºÔÚ´òÓ¡»òÕß´òÓ¡Ô¤ÀÀʱ¶


Ïà¹ØÎĵµ£º

kangax µÄjavascriptÃÕÌâ

µÚÒ»Ìâ
(function(){
return typeof arguments;
})();
//ÎÊ×Ô¶¯Ö´Ðк¯Êý»á·µ»Øʲôֵ

// ¾ÍÊÇ¿¼Arguments¶ÔÏóµÄtypeof
// ¿´Æ½Ê±ÓÃfirebug¶à²»¶àÁË¡­¡­
µÚ¶þÌâ
var f = function g(){ return 23; };
typeof g();
//ÎÊ×îºóÒ»ÐеÄÖ´Ðнá¹û

//¸ù¾Ý±ê×¼£¬ÃüÃûº¯Êý±í´ïʽµÄº¯ÊýÃûÖ»¶Ôº¯Êý ......

JavaScriptʵÏÖˮƽѡÏЧ¹û

Ê×ÏÈÔÚbodyÖмÓÈëÒÔÏÂHTMLÄÚÈÝ£º
<div id="panel">
 <div id="top">
        <ul id="menu">
            <li id="1">Home</li>
 &nbs ......

javascript¿ª·¢ÏµÁÐ(DOM²Ù×÷)

Ñ¡ÔñÔªËØ£ºdocument.getElementsByTagName£¬document.getElementsById,document.getElementsByName¡£
               firstChild,lastChild,nextSibling£¬previousSibling
´´½¨ÔªËØ£ºdocument.createElement(),appendChild();
ɾ³ýÔªËØ£ºremoveC ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ