解讀一個(gè)圖形化輸入日期的方法代碼(2)_ASP教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
推薦:解讀ASP常用函數(shù)列表1數(shù)學(xué)函數(shù) 1.1 取整函數(shù) int(x) 取不大于x的最大整數(shù)。 fix(x) 舍去x的小數(shù)部分。 1.2 絕對(duì)值函數(shù) abs(x) 求x的絕對(duì)值。 1.3 符號(hào)函數(shù) sgn(x) 求x的符號(hào)代碼,x為負(fù)數(shù)時(shí)函數(shù)值為-1 。 1.4 平方根函數(shù) sqr(x) 求x的算術(shù)平方根,x必須大于0 。 1.5 指數(shù)函數(shù) ex
| } j--; if ((j % 7) == 0) { temphtml = temphtml.substr(0,temphtml.length-4); temphtml += "</table>"; } else { while( (j % 7) != 0) { temphtml += "<td bgcolor=FFFFFF> </td>" j++; } temphtml += "</tr></table>"; } datectrl.document.open(); datectrl.document.write(temphtml); datectrl.document.close(); //parent.document.getElementById("datectrl").style.display = ""; //top.document.getElementById("datectrl").style.left = event.x + 20; //top.document.getElementById("datectrl").style.top = event.y + 20; //alert(temphtml); } function SetValue(value) { //obj.value = value; //alert(value); dd.value = value; document.getElementById("datectrl").style.display = "none"; } --> </script> <input type="text" id="dd" name="dd" value="" readonly="yes"><input type="button" value="選擇日期" onclick=’if (dd.value ==""){Display(new Date());document.getElementById("datectrl").style.display = "";} else {var t =dd.value.split("-");Display(new Date(t[0],t[1]-1,t[2]));document.getElementById("datectrl").style.display = "";}’> <iframe frameborder="0" hspace="0" marginheight="0" marginwidth="0" name="datectrl" id="datectrl" scrolling="no" vspace="0" width="320" height="182" src="" style="display:none;z-index:1000;position:absolute;"></iframe> </body> </html> |
分享:淺析win2003編寫asp代碼需啟用父路徑在windows2003server中編寫asp代碼,會(huì)碰到錯(cuò)誤提示“不允許的父路徑”,涉及到的代碼有: Server.MapPath(……/)
相關(guān)ASP教程:
- asp FSO 讀寫文件本文件實(shí)現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶真實(shí)IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫(kù)實(shí)現(xiàn)代碼
- asp中正則表達(dá)式過(guò)濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁(yè)模板:ASP內(nèi)建對(duì)象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個(gè)小技巧
- eWebEditor v3.8 列目錄
- ASP無(wú)組件分頁(yè)實(shí)現(xiàn)思路及代碼
- 相關(guān)鏈接:
- 教程說(shuō)明:
ASP教程-解讀一個(gè)圖形化輸入日期的方法代碼(2)
。