解讀一個圖形化輸入日期的方法代碼(2)_ASP教程
教程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的算術(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代碼,會碰到錯誤提示“不允許的父路徑”,涉及到的代碼有: Server.MapPath(……/)
相關(guān)ASP教程:
- 相關(guān)鏈接:
- 教程說明:
ASP教程-解讀一個圖形化輸入日期的方法代碼(2)
。