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

JavascriptʵÀý½Ì³Ì(6) ÀûÓÃJavascript½øÐÐÃÜÂë±£»¤

Ëæ×Å»¥ÁªÍøµÄ·ÉËÙ·¢Õ¹£¬µØÇò±äµÃÔ½À´Ô½Ð¡£¬ÈËÃÇ¿ÉÒÔ¿çԽʱ¼äºÍ¿Õ¼äµÃ½çÏÞ½øÐн»Á÷ÓÚºÏ×÷¡£µ«ÊÇËæÖ®Ò²²úÉúÁËһЩËÁÒâ¸ãÆÆ»µµÄºÚ¿Í£¬Õâ¾ÍʹµÃ³ÌÐòÉè¼ÆÈËÔ±ÔÚ±àÖÆÓ¦ÓóÌÐòÖÐÒª¿¼Âǵ½ºÚ¿ÍÏ®»÷Õâ¸öÎÊÌ⣬ËùÒÔ×ÔÈ»¶øÈ»µØ¾Í»áÏëµ½±£»¤¡£±¾½Ú½Ì³Ì½«½ÌÄãÔõÑùÀûÓÃjavascript½øÐÐÃÜÂë±£»¤¡£ÀûÓà JavaScriptÀ´¶ÔÍøÒ³½øÐÐÃÜÂë±£»¤Óм¸ÖÖ·½·¨¡£×îÔçµÄÒ»ÖÖ·½·¨ÊÇÒÀÄÍÓÚÓû§¶ø²»ÖªµÀÄ¿±êÎļþÃû£¬´úÂëÈçÏ£º
ÔÚÍøÒ³ÖÐʹÓÃÕâ¶ÎJavaScript½Å±¾µÄ·½·¨Îª£º
Enter Password:
ʹÓÃÕâ¶ÎJavaScript½Å±¾µÄÒ»¸öȱµãÊÇÓû§¿ÉÒÔ¼ì²éÔ´´úÂë²¢·¢ÏÖÎļþĿ¼µÄλÖá£ÎªÁËÑ°Çó¸üºÃµÄ°²È«´ëÊ©£¬ÄãÓ¦¸Ãͨ¹ý·ÅÖÃÒ»¸öȱʡµÄÎļþ£¨index.html£©µ½JavaScript½Å±¾ÀïÃæÀ´±£»¤ÄãµÄÎļþĿ¼£¬ÕâÑùµ±Ä¿Â¼±»ÇëÇóµÄʱºòÄãµÄ·þÎñÆ÷×ÜÊÇ·¢Ë͹ýÈ¥¡£Èç¹ûÄãûÓаüÀ¨Ò»¸öȱʡµÄÎļþÔÚÄãµÄÎļþĿ¼ £¬ÍøÂç·þÎñÆ÷¾Í·¢ËÍËùÓаüº¬ÔÚÄãÎļþĿ¼µÄËùÓÐÎļþ£¬ÕâÕýÊDz»°²È«µÄÒþ»¼¡£
ÕâÀïÒªÖ¸³öµÄÊÇ£¬Ê¹ÓÃJavaScriptÀ´¶ÔÒ»¸öÎļþ½øÐÐÃÜÂë±£»¤Ò²²»ÊÇÒ»¸ö·Ç³£°²È«µÄ·½·¨¡£ÎªÁË´ïµ½½Ï¸ßµÄ°²È«ÏµÊý£¬ÕâÀïÍƼöʹÓÃCGI»òÕß·þÎñÆ÷º¯Êý£¬±ÈÈç.htaccess¡£


Ïà¹ØÎĵµ£º

javascript ´°¿Ú

//¹Ø±Õ,¸¸´°¿Úµ¯³ö¶Ô»°¿ò,×Ó´°¿ÚÖ±½Ó¹Ø±Õ
this.Response.Write("<script language=javascript>window.close();");
//¹Ø±Õ,¸¸´°¿ÚºÍ×Ó´°¿Ú¶¼²»µ¯³ö¶Ô»°¿ò,Ö±½Ó¹Ø±Õ
this.Response.Write("");
this.Response.Write("{top.opener =null;top.close();}");
this.Response.Write("");
//µ¯³ö´°¿Úˢе±Ç°Ò³Ãæwidth=20 ......

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

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

a href=#Óë a href=javascript:void(0)µÄÇø±ð£¿

      Ç°Ìì×öµÄÒ³ÃæÊÇÒ»¸öiframeµ¯³ö´°¿Ú£¨ËµÃ÷һϣºÍ¬ÊÂÓÃjs½Å±¾¿ª·¢³öÀ´µÄ£©Àï´¥·¢Ò»¸ö<a>Á´½ÓµÄ°´Å¥¿ÉÔڸô°¿ÚÉϵ¯³öÒ»¸ödivÐü¸¡²ã¡£µ«ÊÇÿ´Îµã»÷£¬divÐü¸¡²ã¾Í×Ô¶¯Î»ÓÚIE´°¿ÚµÄ¶¥¶Ë£¬ÏÂÃæµÄiframe´°¿Ú°üº¬µÄÒ³Ãæ»á×Ô¶¯ÉÏÒÆ£¬Î»ÖôíÂÒÁË¡£
      ͬÊÂ˵Ö÷ÒªÊ ......

javascript»ñÈ¡ä¯ÀÀÆ÷µÄ¿í¶ÈºÍ¸ß¶È

<script language="JavaScript" type="text/JavaScript">
<!--
        function displayScreenSize()
        {
            var bodyWidth      ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ