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

javascript ½ûÖ¹Êó±êÓÒ¼ü...

<body oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" onmouseup=document.selection.empty() oncopy=document.selection.empty() onselect=document.selection.empty()></body>
½²ÉÏÃæºìÉ«ÏÔʾµÄ²åÈëµ½ÍøÒ³ÖоͿÉÒÔʵÏÖÊó±êÓÒ»÷ÎÞЧ
onselectstart="return false" ½ûֹѡÔñ£¬ondragstart="return false"½ûÖ¹ÍÏ·Å£¬oncopy=document.selection.empty() ½ûÖ¹¿½±´¡£
½ûÖ¹±£´æ£º<noscript><iframe src="*.htm"></iframe></noscript>£¬·ÅÔÚheadÀïÃæ¡£
½ûÖ¹Õ³Ìù£º<input type=text onpaste="return false">
¹Ø±ÕÊäÈë·¨£º<input style="ime-mode:disabled">
ÆÁ±ÎÊó±êÓÒ¼ü£º
function document.oncontextmenu(){event.returnValue=false;}
ÆÁ±ÎF1°ïÖú£º
function window.onhelp(){return false}
ÆÁ±ÎÆäËû¼ü
function document.onkeydown()
{
   if ((window.event.altKey)&&
   ((window.event.keyCode==37)|| //ÆÁ±Î Alt+ ·½Ïò¼ü ←
   (window.event.keyCode==39))) //ÆÁ±Î Alt+ ·½Ïò¼ü →
   {
    alert("²»×¼ÄãʹÓÃALT+·½Ïò¼üǰ½ø»òºóÍËÍøÒ³£¡");
    event.returnValue=false;
   }
    /* ×¢£ºÕ⻹²»ÊÇÕæÕýµØÆÁ±Î Alt+ ·½Ïò¼ü£¬
    ÒòΪ Alt+ ·½Ïò¼üµ¯³ö¾¯¸æ¿òʱ£¬°´×¡ Alt ¼ü²»·Å£¬
    ÓÃÊó±êµãµô¾¯¸æ¿ò£¬ÕâÖÖÆÁ±Î·½·¨¾ÍʧЧÁË¡£ÒÔºóÈô
    ÓÐÄÄλ¸ßÊÖÓÐÕæÕýÆÁ±Î Alt ¼üµÄ·½·¨£¬Çë¸æÖª¡£*/
   if ((event.keyCode==8)   ||                 //ÆÁ±ÎÍ˸ñɾ³ý¼ü
   (event.keyCode==116)||                 //ÆÁ±Î F5 ˢмü
   (event.ctrlKey && event.keyCode==82)){ //Ctrl + R
    event.keyCode=0;
    event.returnValue=false;
    }
   if (event.keyCode==122){event.keyCode=0;event.returnValue=false;}   //ÆÁ±ÎF11
   if (event.ctrlKey


Ïà¹ØÎĵµ£º

JavaScript³£ÓÃÑéÖ¤º¯Êý

JavaScript³£ÓÃÑéÖ¤º¯Êý
Òý×Ô:http://www.webdeveloping.cn/blog/?action=show&id=209
 //УÑéÊÇ·ñÈ«ÓÉÊý×Ö×é³É      
 function isDigit(s) {      
  var patrn=/^[0-9]{1,20}$/;      
  i ......

JavaScriptÖÐÄäÃûº¯Êý£¬º¯ÊýÖ±½ÓÁ¿ºÍ±Õ°ü(ת)

Ô­Îijö´¦: http://www.dnew.cn/post/196.htm
ÏÈ¿´ÏÂÏÂÃæ¼¸ÖÖд·¨
1.function f(x){return x*x;};f(x);
2.(function(x){return x*x;})(x);
3.(function(x){return x*x;}(x));
µÚÒ»ÖÖÎÒÃÇÓ¦¸Ã¶¼ºÜÊìϤÁË£¬ÕâÊÇÎÒÃǾ­³£Ê¹ÓõÄд·¨¡£µÚ¶þµÚÈýÖÖ¶¼ÊÇÄäÃûº¯ÊýµÄд·¨¡£
------------------------------------------------ ......

JavaScriptÎļþ²Ù×÷

Ò»¡¢¹¦ÄÜʵÏÖºËÐÄ£ºFileSystemObject ¶ÔÏó
    ÒªÔÚjavascriptÖÐʵÏÖÎļþ²Ù×÷¹¦ÄÜ£¬Ö÷Òª¾ÍÊÇÒÀ¿¿FileSystemobject¶ÔÏó¡£
¶þ¡¢FileSystemObject±à³Ì
ʹÓÃFileSystemObject ¶ÔÏó½øÐбà³ÌºÜ¼òµ¥£¬Ò»°ãÒª¾­¹ýÈçϵIJ½Ö裺 ´´½¨FileSystemObject¶ÔÏó¡¢Ó¦ÓÃÏà¹Ø·½·¨¡¢·ÃÎʶÔÏóÏà¹ØÊôÐÔ ¡£
£¨Ò»£©´´½¨FileSy ......

javascript ÿÈÕ´òÕкô³£Óõĺ¯Êý

var greeting_w = {
c:['ÄãºÃ!', '»¶Ó­»ØÀ´', '»¶Ó­»Øµ½×éÖ¯', '×£ÄãºÃÐÄÇ飡', 'Hi~', 'Hello!', '*^o^*', ':D', 'ûʶàºÈË®', 'CR=ChinaRen', 'ÓÖ¼ûÃæÁË!', '¶àÔ˶¯ÉÙÉú²¡', '»¶Ó­À´µØÇò~', '»¶Ó­À´»ðÐÇ~', 'ÄãÌ«ÓвÅÁË!', 'hoho', 'ûʳԸöË®¹û', 'À´ºß¸ö¸è¶ù', '²ðÄÉÈÊ»¶Ó­Äã!', 'ÏëtaÁËÂð?', 'ɶʱͬѧ»á?', '±£»¤º ......

javascriptÓÅ»¯·½·¨

ÐÞ¸ÄÑ­»·µÄÖ´Ðз½Ê½
for(var i=0;i<element.childNodes.length;i++){
Ö´ÐдúÂë
}
ÕâÖÖ·½Ê½Ã¿´ÎÑ­»·¶¼ÒªÈ¡element.childNodes.lengthµÄÖµ£¬Ó¦¸Ã¸ÄΪÈçϵÄ
var n£½element.childNodes.length
for(var i=0;i<n;i++){
Ö´ÐдúÂë
}
2£ºÐÞ¸Ädom²Ù×÷µÄ´ÎÊý
domÅúÁ¿²åÈëÒ»ÅúÀàËÆµÄ½Úµã²»ÈçÏȹ¹ÔìÒ»¸ö¶ÔÏó£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ