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

javascriptʵÏÖÄêÔÂÈÕµÄÁª¶¯Ñ¡Ôñ

<script type="text/javascript">
   
  function dayChange(year,month,day){
   var selectYear = document.getElementById(year);
   var selectMonth = document.getElementById(month);
   var selectDay = document.getElementById(day);
   var y = selectYear.value,m = selectMonth.value,d = selectDay.value;
   if(m==4||m==6||m==9||m==11){
    if(selectDay.length == 31){
     selectDay.options.remove(30);
    }
    if(selectDay.length == 29){
     selectDay.options.add(30,30);
    }
    if(selectDay.length == 28){
     selectDay.options.add(29,29);
     selectDay.options.add(30,30);
    }
   }
   if(m==1||m==3||m==5||m==7||m==8||m==10||m==12){
    if(selectDay.length == 30){
     selectDay.options.add(new Option(31,31));
    }
    if(selectDay.length == 29){
     selectDay.options.add(new Option(30,30));
     selectDay.options.add(new Option(31,31));
    }
    if(selectDay.length == 28){
     selectDay.options.add(new Option(29,29));
     selectDay.options.add(new Option(30,30));
     selectDay.options.add(new Option(31,31));
    }
   }
   if(m==2){
    if(isRunYear(y)){
     if(selectDay.length == 31){
      selectDay.options.remove(30);
      selectDay.options.remove(29);
     }
     if(selectDay.length == 30){
      selectDay.options.remove(29);
     }
     if(sele


Ïà¹ØÎĵµ£º

JavaScript£ºprototypeÊôÐÔʹÓÃ˵Ã÷

prototype ÊÇÔÚ IE 4 ¼°ÆäÒÔºó°æ±¾ÒýÈëµÄÒ»¸öÕë¶ÔÓÚijһÀàµÄ¶ÔÏóµÄ·½·¨£¬¶øÇÒÌØÊâµÄµØ·½±ãÔÚÓÚ£ºËüÊÇÒ»¸ö¸øÀàµÄ¶ÔÏóÌí¼Ó·½·¨µÄ·½·¨£¡ÕâÒ»µã¿ÉÄÜÌýÆðÀ´»áÓеãÂÒ£¬±ð¼±£¬ÏÂÃæÎÒ±ãͨ¹ýʵÀý¶ÔÕâÒ»ÌØÊâµÄ·½·¨×÷ÒÑϽ²½â£º
¡¡¡¡Ê×ÏÈ£¬ÎÒÃÇÒªÏÈÁ˽âÒ»ÏÂÀàµÄ¸ÅÄJavaScript ±¾ÉíÊÇÒ»ÖÖÃæÏò¶ÔÏóµÄÓïÑÔ£¬ËüËùÉæ¼°µÄÔªËظù¾ÝÆäÊôÐÔµ ......

javascript call

javaScript
ÖÐµÄ call
() ÊÇÒ»¸öÆæÃîµÄ·½·¨£¬µ«Ò²ÊÇÒ»¸öÈÃÈËÃÔ»óµÄ·½·¨£¬ÏÈ¿´Ò»Ï¹ٷ½µÄ½âÊÍ£º
call
·½·¨
Çë²ÎÔÄ
Ó¦ÓÃÓÚ£ºFunction ¶ÔÏó
񻂗
°æ±¾ 5.5
µ÷ÓÃÒ»¸ö¶ÔÏóµÄÒ»¸ö·½·¨£¬ÒÔÁíÒ»¸ö¶ÔÏóÌæ»»µ±Ç°¶ÔÏó¡£
call
([thisObj[,arg1[, arg2[,   [,.argN]]]]])
²ÎÊý
thisObj
¿ÉÑ¡Ïî¡£½«±»ÓÃ×÷µ±Ç ......

JavaScriptʹÓü¼Çɾ«ÝÍ

(Ò»).È·ÈÏɾ³ýÓ÷¨:
  1. BtnDel.Attributes.Add("onclick","return confirm('"+"È·ÈÏɾ³ý?"+"')");
  2. linktempDelete.Attributes["onclick"]="javascript:return  confirm('"+"È·ÈÏɾ³ý?"+"');";
  3. privat ......

javaScript»ñÈ¡Ò³Ã棬ÆÁÄ»µÈ¸ß¶ÈÓë¿í¶È

//»ñÈ¡Ò³ÃæÊý¾Ý
 function getPageSize(){  
   var xScroll, yScroll;  
   if (window.innerHeight && window.scrollMaxY) {  
     xScroll = document.body.scrollWidth;
     yScroll = window.inn ......

ÀûÓÃJavaScriptʵÏÖÉÏ´«Í¼Æ¬Ô¤ÀÀ

<script >
function showimage()

       //IMG1ΪͼƬ¿Ø¼þ»òDiv,File1ΪÉÏ´«Îļþ¿Ø¼þ
document.getElementById("IMG1"). src = document.getElementById("File1").value;
}
</script >
¿Ø¼þÖÐÒýÓÃ:
<input id="File1" runat="server" type="file"  onc ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ