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

javascript²Ù×÷¸´Ñ¡¿òº¯Êý

javascript²Ù×÷¸´Ñ¡¿òº¯Êý
function CheckAll(form) {//ȫѡ
for (var i=0;i    var e = form.elements[i];
    if (e.name != 'chkall')
       e.checked = form.chkall.checked;
   }
}
function checkSelect()//ÅжÏÊÇ·ñÓÐÑ¡Ïî
{
   var pass = false;
   var input_elements = document.getElementsByName("Pdel[]");
   for ( var i= 0; i< input_elements.length ; i++ )
   {
    var is_checked =   input_elements[i].checked;
    var input_name =   input_elements[i].getAttribute("name");
    var input_type = input_elements[i].getAttribute("type");
    if ( input_type == "checkbox" && input_name != "chkall" && true == is_checked )
     pass = true;
   }
   if ( false == pass )
   {
    alert("ÇëÑ¡ÔñҪɾ³ýµÄÑ¡Ïî!");
    return false;
   }
   else
    return true;
}
function selrev() {//·´Ñ¡
with(document.myform) {
   for(i=0;i    thiselm = elements[i];
    if(thiselm.name.match(/dfile\[]/))
  thiselm.checked = !thiselm.checked;
   }
}
}


Ïà¹ØÎĵµ£º

Javascript DOMѧϰ±Ê¼Ç1


·µ»ØÒ»¸ö¸ø¶¨idÊôÐÔÖµµÄÔªËØ½ÚµãµÄ¶ÔÏó
document.getElememtById(id) 
·µ»ØÒ»¸ö°üº¬ËùÓиø¶¨±êÇ©µÄÔªËØµÄÊý×é 
document.getElementsByName(tag)
»ñÈ¡ÔªËØÊôÐÔ
document.getAttribute(attribute)
ÉèÖÃÔªËØÊôÐÔÖµ
document.setAttribute(attribute)
......

Javascript ÅжÏä¯ÀÀÆ÷

                var Sys = {};
                var ua = navigator.userAgent.toLowerCase();
         &nbs ......

javascriptʼþ from PPK yahooÑݽ²

×ªÔØ×Ô£ºhttp://www.zipeng.info/archives/ppk-on-js-events.html
½ñÌìÎÒ»á˵һЩ¹ØÓÚJavaScriptʼþµÄÊÂÇ飬ÎÒºÜÏ£Íû×Ô¼ºÄÜÆô·¢´ó¼ÒһЩʲô£¬²»¹ý´ó»ï¶¼ÊǸßÊÖ£¬²»¹ÜÔõô£¬ÎÒ»¹ÊÇҪ˵˵
JavaScriptʼþ¡£
´óÔ¼Ò»ÄêǰÎÒ´òËã¶ÔJavaScriptµÄʼþ×öһЩÉîÈëµÄÑо¿£¬²¢ÇÒÎÒ×öÁËÒ»ÕżæÈÝÐÔµÄ±í£¬´ó¼Ò¿ÉÒÔͨ¹ýÏÂÃæÕâÀïÀ´
·ÃÎ ......

javascript µÄperlÀàÐ͵ÄÕýÔò±í´ïʽ

£¨1£©var recat = new RegExp("cat");    //¼òµ¥¶¨Òå¡£
        var recat = new RegExp("cat","gi");//g->global,i->case insensitive.
        var recat = /cat/gi;                       ......

ʵÓÃµÄ JavaScript ²âÊÔ¼°Ð§Ñ鹤¾ß

JavaScript ÊÇÒ»¿îÇ¿´óµÄ¹ã·ºÔËÓÃÓÚÏÖ´úWebÕ¾µã¼°Ó¦ÓõĽű¾ÓïÑÔ¡£×÷Ϊһ¸ö¼¼ÒÕ¾«Õ¿µÄ Web ¿ª·¢Õߣ¬ÕÆÎÕJavaScript¿ÉÒÔÔöÇ¿Óû§µÄʹÓÃÌåÑ飬Ìṩ½»»¥¼°¸»¿Í»§¶ËµÈ¹¦ÄÜ¡£
¾¡¹ÜJavaScript µÄÓï·¨·Ç³£¼òµ¥£¬µ«¶ÔÓÚд³ÌÐò¶øÑÔÈÔÈ»ÊÇÀ§ÄÑÖØÖØ£¬¾ÍÊÇÒòΪËüµÄÔËÐл·¾³£º»ùÓÚWebä¯ÀÀÆ÷¡£
ÒÔÏÂÄú¿ÉÒÔ¿´µ½ÊÕ¼¯µÄ8¸öʵÓÃµÄ JavaScrip ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ