Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 checkBoxµÄʹÓÃ

¢Ùfunction doDelete(){
    var deleteArray = new Array();
    var cnt = 0;
    for (i = 0; i < document.forms[0].elements.length; i++ ) {
        // ¥Á¥§¥Ã¥¯¥Ü¥Ã¥¯¥¹¤¬ON¤Î時¤Ï¤½¤Î値¤ò設¶¨¤¹¤ë¡£
......

javascriptʼþ from PPK yahooÑݽ²

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

javascript StyleSheetÑùʽ²Ù×÷Àà

ÔçÉÏÔÚcsdnÉÏ¿´ÓÐÈËÎÊÒ³Ãæstyle sheetÔõôÐÞ¸ÄÀïÃæµÄrule,¾ÍдÁ˸öÀà,¸ÃÀà¶Ô¼æÈÝFFºÍIE×öÁË´¦Àí¡£
/**//*--------------------------------------------
    ÃèÊö : Ìí¼ÓеÄÑùʽrule
    ²ÎÊý : styleSheetsË÷Òý
    ´úÂë :&nb ......

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

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

.netºÍjavascript ÕýÔò±í´ïʽµÄ¶Ô±È

javascript
ÉùÃ÷:1.var reg=new Regex("^±í´ïʽ$","²ÎÊý") 2.ÄäÃû(JSonµÄд·¨) /±í´ïʽ/²ÎÊý,Èç:/±í´ïʽ/gi
×¢Òâ:¶þÖÖÉùÃ÷ÊǵÈЧµÄ,ÒÔÏÂʹÓÃregµÄλÖÃ,Ò²¿ÉÓÃ"ÄäÃû"Ìæ»».
Ìæ»»:
var str="×Ö·û´®";
var str2= str.replcace(reg»òÄäÃû,"Ìæ»»³ÉµÄ×Ö·û´®")
ÕÒ³öËùÓаüº¬µÄ:
var str="×Ö·û´®";
var arr=str.match(r ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ