JavaScript´úÂë(1)
//ºǫ́CSµ÷ÓÃǰ̨JS·½·¨
ClientScript.RegisterStartupScript(this.GetType(), "onclick", "<script>CheckInput()</script>");
//УÑéÊäÈë¿òÊÇ·ñΪ¿Õ£¬Ð£ÑéÊÇ·ñÊÇÊý×Ö
<script type="text/javascript" language="javascript">
function CheckInput() {
if (document.form1.txt_ReceiptID.value == "") {
alert('±¨Ïúµ¥ºÅ²»ÄÜΪ¿Õ!');
document.form1.txt_ReceiptID.focus();
return false;
}
else {
if(checknumber(document.form1.txt_ReceiptID.value)
{
alert("±¨Ïúµ¥ºÅΪÊý×Ö£¡");
document.form1.txt_ReceiptID.focus();
return false;
&nbs
Ïà¹ØÎĵµ£º
¸ãÁË´ó°ëÌ죬×ÜËãŪÃ÷°×ÁËΪºÎÓÃdocument.body.clientHeight£¬document.body.offsetHeight¶¼Ã»Óаì
·¨»ñÈ¡ÍøÒ³¿É¼ûÇøÓòµÄÕýÈ·Öµ£¬ÔÀ´×ï¿ý»öÊ×ÊÇW3C¶¨ÒåµÄ±ê×¼£¡£¡ÔÚж¨Òå³öÀ´µÄ±ê×¼ÏÂ
document.documentElement.clientHeightÔÚIEºÍ»ðºüÀï¶¼ÄÜ»ñÈ¡ÕýÈ·Öµ£¬ÏÂÃæÒ»ÆªÎÄÕÂÏêϸ½éÉÜÁË»ñÈ¡¸÷ÖÖä¯ÀÀÆ÷¿É¼û
´°¿Ú´óСÕâ·½ÃæµÄ²î ......
<table>
<tr>
<td style="width: 201px; height: 22px;" valign="middle" align="right">
&n ......
´´½¨Ò»¸öÈÕÆÚ¶ÔÏó£º
var objDate=new Date([arguments list]);
²ÎÊýÐÎʽÓÐÒÔÏ£µÖÖ£º
new Date("month dd,yyyy hh:mm:ss");
new Date("month dd,yyyy");
new Date(yyyy,mth,dd,hh,mm,ss);
new Date(yyyy,mth,dd);
new Date(ms); ......
javascript:void(0)
¸Õ¿ªÊ¼¶¼²»ÖªµÀÊÇɶÒâ˼
Æäʵ¾ÍÊÇÒ»¸öËÀÁ´½Ó£¬Ê²Ã´ÊÂÇé¶¼²»×ö¡£
<a id="link_${user.account}" href="javascript:void(0);" onclick="changSubmit();" style="cursor:pointer;height:25px;width:60px;margin-top:10px;">·¢ËÍemail</a>
Õâ¾ä ......
ÍøÒ³ÖÆ×÷Javascript¾µäС¼¼ÇÉ×ܽá
http://www.webjx.com ¸üÐÂÈÕÆÚ£º2007-10-12 01:25 ³ö´¦£ºÍøÒ³½ÌÑ§Íø ×÷ÕߣºÕ¾³¤ÕûÀí
ÿһÏî¶¼ÊÇJSÖеÄС¼¼ÇÉ£¬µ«Ê®·ÖµÄʵÓã¡
1.document.write(”"); Êä³öÓï¾ä
2.JSÖеÄ×¢ÊÍΪ//
3.´«Í³µÄHTMLÎĵµË³ÐòÊÇ:document->html->(head,body)
4.Ò»¸öä¯ÀÀÆ ......