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

JavaScriptÒ³ÃæË¢ÐÂÓ뵯³ö´°¿ÚÎÊÌâ½â¾ö·½·¨

JavaScriptÒ³ÃæË¢ÐÂÓ뵯³ö´°¿ÚÎÊÌâ½â¾ö·½·¨
 
1.ÎÞÌáʾˢÐÂÍøÒ³
´ó¼ÒÓÐûÓз¢ÏÖ£¬ÓÐÐ©ÍøÒ³£¬Ë¢ÐµÄʱºò£¬»áµ¯³öÒ»¸öÌáʾ´°¿Ú£¬µã“È·¶¨”²Å»áˢС£
¶øÓеÄÒ³Ãæ²»»áÌáʾ£¬²»µ¯³öÌáʾ´°¿Ú£¬Ö±½Ó¾ÍË¢ÐÂÁË.
Èç¹ûÒ³ÃæÃ»ÓÐform£¬Ôò²»»áµ¯³öÌáʾ´°¿Ú¡£Èç¹ûÒ³ÃæÓÐform±íµ¥£¬
a)< form method="post" ...> »áµ¯³öÌáʾ´°¿Ú
b)< form method="get" ...> ²»»áµ¯³ö
2.javascriptË¢ÐÂÒ³ÃæµÄ·½·¨
window.location.reload();
ʹÓÃwindow.open()µ¯³öµÄµ¯³ö´°¿Ú£¬Ë¢Ð¸¸´°¿Ú
window.opener.location.reload()
ʹÓÃwindow.showDialogµ¯³öµÄģʽ´°¿Ú
window.dialogArguments.location.reload();
3.Javascriptµ¯³ö´°¿Ú´úÂë
ÏÂÃæ¸øÁ½¸öµ¯³öÆÁÄ»¾ÓÖд°¿ÚµÄÀý×Ó
window.open()·½Ê½
function ShowDialog(url) {
            var iWidth=300; //´°¿Ú¿í¶È
            var iHeight=200;//´°¿Ú¸ß¶È
            var iTop=(window.screen.height-iHeight)/2;
            var iLeft=(window.screen.width-iWidth)/2;
            window.open(
            url,"Detail","Scrollbars=no,Toolbar=no,Location=no,Direction=no,Resizeable=no,
            Width="+iWidth+" ,Height="+iHeight+",top="+iTop+",left="+iLeft
            );
           }
window.showModalDialog·½Ê½
function ShowDialog(url) {
            var iWidth=300; //´°¿Ú¿í¶È
            var iHeight=200;//´°¿Ú¸ß¶È
            var iTop=(window.screen.height-iHeight)/2;
         


Ïà¹ØÎĵµ£º

JavaScript »ñÈ¡¶ÔÏóµÄ¸ß¶ÈºÍ¿í¶ÈÏêϸ˵Ã÷

scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐĿǰ¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×î¶¥¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×î¶¥¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......

ÈÃJavaScript´úÂëÅŰæµÃ¸üºÃ¿´


ûÕÒµ½vs2008½«JavaScriptÅŰæµÃºÃ¿´Ð©µÄ°ì·¨£¬µ«ÓÐÕâ¸ö¹¤¾ß
http://jsbeautifier.org/
ÕâÊÇÀÏÍâµÄÒ»¸öÔÚÏßÅŰæJavaScriptµÄ·þÎñ¡£
ÎÒ²»Ï²»¶ÏÂÔØ°²×°Ò»Ð©²»Ì«”Õý“µÄÈí¼þ¹¤¾ß¡£
==
˳±ãÔÞÒ»ÏÂCSDN²©¿ÍµÄ"ÔÝ´æÏä"¹¦ÄÜ¡£
µ«ÔÚÎÒ·¢ÁË”ADSL80¶Ë¿Ú“Ò»ÎÄ£¬ÔÚ½ÓÏÂÀ´µÄÊ®À´·ÖÖÓÁË£¬Ð޸IJ»ÁË£¬Ò²²»ÄÜ ......

¡¾×ª¡¿javascript IEϵĹرÕie´°¿Ú³öÏÖÌáʾ¹Ø±ÕÎÊÌâ

ÔÚ¿ª·¢Öо­³£»áÓÐÖ±½Ó¹Ø±ÕÒ³Ãæ²»µ¯³öÈκÎÌáʾµÄÐèÇó£¬ÔÚIE6ÖпÉÒÔÖ±½ÓÏóÏÂÃæÕâÑùд¾Í¿ÉÒÔÁË
<mce:script language=javascript><!--
window.opener=null
window.close()
// --></mce:script>
Õâ¸öÎÊÌâÔÚIE7ÖÐÔòÓпÉÄÜÊdzöÓÚijÖÖ°²È«¿¼ÂÇ£¨ÒòΪÔÚMSä¯ÀÀÆ÷µÄ¾ºÕù¶ÔÊÖFFÖУ¬ÊDz»Äܹرշ ......

ËÄÖÖ²»Í¬·½Ê½marqueeµÄ¹ö¶¯·½Ê½ javascriptʵÏÖ

옃주
<div id=demo style="overflow:hidden; width:128px; height:300px;">
<div id=demo1>
<img src="/gfjs.gif"><br><img src="/bxtt.gif"><br><img src="/bzjd.gif"><br>
<img src="/gfjs.gif"><br><img src="/bxtt.gif"><br><img ......

JavaScriptµ÷ÊÔ¼¼ÇÉÖ®£º¶Ïµãµ÷ÊÔ


Ê×ÏÈ£¬ÔÚ¸÷¸öä¯ÀÀÆ÷ÖУ¬¶Ïµãµ÷ÊÔÖ§³ÖµÄ×îºÃµÄµ±È»ÊÇFirefox£¬Firefox²»½ö¿ÉÒÔʹÓÃFirebugµ÷ÊÔÒ³Ãæjs½Å±¾£¬»¹¿ÉÒÔÓø߼¶µ÷ÊÔ¹¤¾ßÀýÈçJavaScript Debugger (Venkman) À´µ÷ÊÔFirefoxÀ©Õ¹ÀïµÄjs¡£³ý´ËÖ®Í⣬Firefox»¹Ö§³ÖһЩ¸üΪ¸ß¼¶µÄ¶Ïµãµ÷ÊÔ¡¢±äÁ¿¼àÊÓ¹¦ÄÜ¡£
ÆäËûä¯ÀÀÆ÷ÀOpera¡¢ChromeºÍSafariµÄµ÷ÊÔ¹¦ÄÜÒ²±È½ÏºÃÓᣠ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ