国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > ASP > 正文

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

2024-07-21 02:05:00
字體:
來源:轉載
供稿:網友

推薦:解讀ASP常用函數列表
1數學函數 1.1 取整函數 int(x) 取不大于x的最大整數。 fix(x) 舍去x的小數部分。 1.2 絕對值函數 abs(x) 求x的絕對值。 1.3 符號函數 sgn(x) 求x的符號代碼,x為負數時函數值為-1 。 1.4 平方根函數 sqr(x) 求x的算術平方根,x必須大于0 。 1.5 指數函數 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下一頁
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 营山县| 长兴县| 南漳县| 卢湾区| 三原县| 桂平市| 天水市| 东乌珠穆沁旗| 凤山县| 崇仁县| 汽车| 河西区| 乐陵市| 上犹县| 武定县| 广西| 凤凰县| 娄烦县| 聂荣县| 浠水县| 东宁县| 建始县| 资兴市| 襄城县| 大化| 象州县| 莎车县| 横山县| 根河市| 灵武市| 积石山| 吴忠市| 三门峡市| 射洪县| 宁南县| 新营市| 开封市| 炎陵县| 莱西市| 平泉县| 竹山县|