日韩天天综合网_野战两个奶头被亲到高潮_亚洲日韩欧美精品综合_av女人天堂污污污_视频一区**字幕无弹窗_国产亚洲欧美小视频_国内性爱精品在线免费视频_国产一级电影在线播放_日韩欧美内地福利_亚洲一二三不卡片区

解讀一個圖形化輸入日期的方法代碼_ASP教程

編輯Tag賺U幣
教程Tag:暫無Tag,歡迎添加,賺取U幣!

推薦:解讀ASP常用函數(shù)列表
1數(shù)學函數(shù) 1.1 取整函數(shù) int(x) 取不大于x的最大整數(shù)。 fix(x) 舍去x的小數(shù)部分。 1.2 絕對值函數(shù) abs(x) 求x的絕對值。 1.3 符號函數(shù) sgn(x) 求x的符號代碼,x為負數(shù)時函數(shù)值為-1 。 1.4 平方根函數(shù) sqr(x) 求x的算術平方根,x必須大于0 。 1.5 指數(shù)函數(shù) ex

結果:



<!doctype   html   public   "-//W3C//DTD   HTML   4.0   Transitional//EN">   
  <html>   
  <head>   
  <title>   New   Document   </title>   
  <meta   name="Generator"   content="EditPlus">   
  <meta   name="Author"   content="">   
  <meta   name="Keywords"   content="">   
  <meta   name="Description"   content="">   
  </head>   
    
  <body>   
  <!--   
  日期輸入控件   
  作者:浪子   
  版權所有:EOB論壇   http://www.eob.cn/bbs   
  2005-5-28   
  -->   
    
  <script   language="javascript">   
  <!--   
  function   Display(date)   
  {   
  var   temphtml   =   "<style>td{font-size:9pt;text-align:center;}</style><table   cellpadding=3   cellspacing=1   border=0   bgcolor=FFFFFF   width=320><tr   bgcolor=FFFFFF><td   align=left   width=50><a   href=’javascript:parent.Display(new   Date("   +     
    
  date.getYear()   +   ","   +   (date.getMonth()-1)   +   ","   +   date.getDate()   +   "));’>&lt;&lt;&lt;&lt;</a></td><td   width=220>"   +     
    
  date.getYear()   +   "年&nbsp;&nbsp;&nbsp;&nbsp;"   +   (date.getMonth()   +   1)   +   "月&nbsp;&nbsp;&nbsp;&nbsp;"   +   "</td><td   align=right   width=50><a   href=’javascript:parent.Display(new   Date("   +   date.getYear()   +   ","   +   (date.getMonth()+1)   +   ","   +   date.getDate()   +     
    
  "));’>&gt;&gt;&gt;&gt;</a></td></tr></table><table   cellpadding=3   cellspacing=1   border=0   bgcolor=669933   width=320><tr   bgcolor=99BB66><td>星期天</td><td>星期一</td><td>星期二</td><td>星期三</td><td>星期四</td><td>星期五</td><td>星期六</td></tr><tr>";   
  var   curdate   =   new   Date();   
  var   ldate   =   new   Date();   
  var   j=1;   
  curdate.setFullYear(date.getFullYear(),   date.getMonth(),   1);   
  for(var   n=0;n<curdate.getDay();n++,j++)   
  {   
  if   ((j   %   7)   ==   0)   
  {   
  temphtml   +=   "<td   bgcolor=FFFFFF>&nbsp;</td></tr><tr>";   
  }   
  else   
  {   
  temphtml   +=   "<td   bgcolor=FFFFFF>&nbsp;</td>";   
  }   
  }   
  n   =   1   
  for(var   i=1;date.getMonth()   ==   curdate.getMonth();   i++,   j++,   curdate.setFullYear(date.getFullYear(),   date.getMonth(),     
    
  i))   
  {   
    
  if   ( parseInt(ldate.getDate(),   10)   ==   parseInt(curdate.getDate(),   10)   &&   
  parseInt(ldate.getMonth(),   10)   ==   parseInt(curdate.getMonth(),   10)   &&     
  parseInt(ldate.getYear(),   10)   ==   parseInt(curdate.getYear(),   10)   
  )   
  {   
  if   ((j   %   7)   ==   0)   
  {   
  temphtml   +=   "<td   bgcolor=FFFFFF   onmouseover=’this.style.background=\"99BB66\"’   onmouseout=’this.style.background=\"FFFFFF\"’   style=’cursor:hand;’   onclick=’parent.SetValue(\""   +   curdate.getYear()   +   "-"   +   (curdate.getMonth()+1)   +   "-"   +   curdate.getDate()   +   "\");’><font   color=red>"   +   curdate.getDate()   +   "</font></td></tr><tr>";   
  }   
  else   
  {   
  temphtml   +=   "<td   bgcolor=FFFFFF   onmouseover=’this.style.background=\"99BB66\"’   onmouseout=’this.style.background=\"FFFFFF\"’   style=’cursor:hand;’   onclick=’parent.SetValue(\""   +   curdate.getYear()   +   "-"   +     
    
  (curdate.getMonth()+1)   +   "-"   +   curdate.getDate()   +   "\");’><font   color=red>"   +   curdate.getDate()   +   "</font></td>";   
  }   
  }   
  else   
  {   
  if   ((j   %   7)   ==   0)   
  {   
  temphtml   +=   "<td   bgcolor=FFFFFF   onmouseover=’this.style.background=\"99BB66\"’   onmouseout=’this.style.background=\"FFFFFF\"’   style=’cursor:hand;’   onclick=’parent.SetValue(\""   +   curdate.getYear()   +   "-"   +     
    
  (curdate.getMonth()+1)   +   "-"   +   curdate.getDate()   +   "\");’>"   +   curdate.getDate()   +   "</td></tr><tr>";   
  }   
  else   
  {   
  temphtml   +=   "<td   bgcolor=FFFFFF   onmouseover=’this.style.background=\"99BB66\"’   onmouseout=’this.style.background=\"FFFFFF\"’   style=’cursor:hand;’   onclick=’parent.SetValue(\""   +   curdate.getYear()   +   "-"   +     
    
  (curdate.getMonth()+1)   +   "-"   +   curdate.getDate()   +   "\");’>"   +   curdate.getDate()   +   "</td>";   
  }   
  }    
     
 

分享:淺析win2003編寫asp代碼需啟用父路徑
在windows2003server中編寫asp代碼,會碰到錯誤提示“不允許的父路徑”,涉及到的代碼有: Server.MapPath(……/)

共2頁上一頁12下一頁
來源:模板無憂//所屬分類:ASP教程/更新時間:2010-03-11
相關ASP教程