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

javascriptÐÞ¸ÄIMG±êÇ©µÄSRCʵÏÖÑéÖ¤Âë»ðºü²»Õý³£

javascriptÐÞ¸ÄIMG±êÇ©µÄSRCʵÏÖÑéÖ¤Âëʱ,IEÕý³££¬»ðºüºÍgoogle³ö×´¿ö
1.µ±µã»÷ijһ°´Å¥µÄʱºò£¬°ÑͼƬÓòÖеÄͼƬ¸Ä±äÒ»ÏÂ
    <img id="randimg" src="/servlet/CreateValidateNum" width="60" height="20" />
    <span style="cursor:hand" onclick="reflush();return false;">¿´²»Çå</span>
    <script>
        function reflush()
        {
            document.getElementById(randimg).src="/servlet/CreateValidateNum";
        }
    </script>
2.˵Ã÷
    ”servlet/CreateValidateNum“ÊÇJAVAдµÄservlet¡£¸ÃservletÊÇ´òÓ¡³öͼƬ
3.³öÏÖµÄÎÊÌâ
    ÔÚIE6ÏÂÃæͼƬÐÞ¸ÄÕý³££¬µ«ÔÚIE7ºÍFirefoxÏÂÃæÈ´²»Ë¢ÐÂ
4.Çé¿ö·ÖÎö
    Èç¹ûеÄͼƬ¸ú¾ÉµÄͼƬµØÖ·²»Ò»Ñù£¬Ð§¹ûÊÇ»á³öÀ´µÄ¡£¼´£ºÍ¼Æ¬Óз¢Éú¸Ä±ä¡£
    µ«Ïñ”ÑéÖ¤Âë“ÕâÖÖ¹¦ÄÜ¡£Ð¾ÉͼƬµÄµØÖ·ÊÇÒ»ÑùµÄ¡£
    ¼øÓÚÉÏÊöÇé¿ö£¬»³ÒÉÓпÉÄÜÊÇÒòΪͼƬµØÖ·ÊÇÒ»ÑùµÄ£¬¶øµ¼ÖÂä¯ÀÀÆ÷×Ô¶¯¶Á»º´æ¡£
5.½â¾ö·½·¨
    °Ñjavascript¸Ä³ÉÕâÑù¼´¿É£º
    document.getElementById(randimg).src="/servlet/CreateValidateNum?"+Math.random();
    ¼´£ºÃ¿´ÎµÄ·ÃÎʵØÖ·¶¼²»Ò»Ñù£¬ÒòΪÓмÓËæ»úÊý¡£ËùÒÔÎÊÌâ½â¾ö


Ïà¹ØÎĵµ£º

[JavaScript]ÀàÖ®Èý


Ïê½âjavascriptÀà¼Ì³Ð»úÖƵÄÔ­Àí
Ä¿Ç° javascriptµÄʵÏּ̳з½Ê½²¢²»ÊÇͨ¹ý“extend”¹Ø¼ü×ÖÀ´ÊµÏֵģ¬¶øÊÇͨ¹ýconstructor functionºÍprototypeÊôÐÔÀ´ÊµÏּ̳С£Ê×ÏÈÎÒÃÇ´´½¨Ò»¸öanimalÀà
js ´úÂë
 
 var animal = function(){  //Õâ¾ÍÊÇconstructor function ÁË&nbs ......

javascriptÊý×é½éÉÜ

1          JavaScriptÊý×é¼ò½é
JavaScriptÊý×éÊÇÒ»ÖÖ°üº¬ÒѱàÂëµÄÖµµÄ¸´ºÏÊý¾Ý¡£Êý×éÇø±ðÓÚ¹ØÁªÊý×飬¹ØÁªÊý×éÊǽ«ÖµºÍ×Ö·û´®¹ØÁªÔÚÒ»Æ𣬶øÊý×éÊǽ«ÖµºÍ·Ç¸ºÕûÊý¹ØÁªÔÚÒ»Æð¡£
Êý×éÊǶÔÏó(¿ÉÀûÓÃtypeofÔËËã·û)¡£
2          ......

¡¾PB.NET±à³ÌϵÁÐ6¡¿ÀûÓÃJavaScript½øÐпͻ§¶Ë±à³Ì

¡¾PB.NET±à³ÌϵÁÐ6¡¿ÀûÓÃJavaScript½øÐпͻ§¶Ë±à³Ì
ÆÕͨWEB³ÌÐòÊÇÓÉä¯ÀÀÆ÷·¢³öÇëÇ󣬷þÎñÆ÷ÒÔHTMLÐÎʽ·µ»Ø½á¹û¡£Ò»°ãÇé¿öÏÂÎÒÃÇÔÚPBµÄʼþÀï±àдµÄÈκζԿͻ§¶ËʼþµÄÏìÓ¦´úÂ붼»á²úÉúÒ»´ÎÓë·þÎñÆ÷µÄ½»»¥¹ý³Ì£ºµ±Ò»¸ö¿Í»§¶Ëʼþ±»´¥·¢Ê±£¬JavaScriptÖÐÓÐÒ»¸ö¶ÔÓ¦µÄʼþÈ¥Ïò·þÎñÆ÷·¢ÆðÇëÇ󣬷þÎñÆ÷¶Ë»áµ÷ÓöÔӦʼþµÄ´úÂë² ......

javascript ÉèÖÃcookie×¢ÒâÊÂÏî

javascript ÉèÖÃcookie×¢ÒâÊÂÏî
javascript ÉèÖÃcookie×¢ÒâÊÂÏî
ÔÚJavascript ÖУ¬cookie ¿ÉÒÔͨ¹ý document.cookie½øÐÐÉèÖ㬵±ÉèÖöà¸öcookieʱä¯ÀÀÆ÷»á×Ô¶¯°Ñ
ËüÃÇÓ÷ֺŸô¿ª¡£ÈçÏ£º
document.cookie = 'cookie1';
document.cookie ='cookie2';
alert (document.cookie) ;//Êä³ö cookie1 ; cookie2
µ«ÊÇÈç¹û°ÑµÚ ......

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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ