Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaScript³õ²½½Ó´¥

ÔÚ×öÒ»¸öÏîÄ¿ÖУ¬½Ó´¥µ½ÁËJavaScript£¬Ö÷ÒªÊǵã»÷Ò»¸ö²éѯ°´Å¥È»ºóµ¯³öÒ»¸öÍøÒ³¶Ô»°¿ò£¬µ±ÔÚ¶Ô»°¿òÖÐÊäÈë²éѯÌõ¼þ£¬µã»÷È·¶¨ºóÓÖ·µ»Øµ½Ô­À´Ò³Ãæ,µÃ³ö²éѯ½á¹û¡£
Ò³ÃæÈçͼ£º
ÔÚǰ̨¼ÓÁËÒ»¸öÒþ²ØµÄDIV£¬ÀïÃæ·ÅÈëÁ½¸ö¿Ø¼þ¡£ÈçÏ£º
 <div style="display:none">
        <asp:TextBox ID="txtQueryWhere" runat="server"></asp:TextBox>
        <asp:Button ID="btnquery" runat="server" Text="Button" OnClick="btnquery_Click" /></div>
ǰ̨²éѯ°´Å¥µÄ´úÂëÈçÏ£º
<input id="Button2" type="button" value="²éѯ" onclick="query()" />
µ±µã»÷²éѯ°´Å¥Ê±£¬×ªµ½query()º¯Êý——JavaScript£º
 <script language="javascript" type="text/javascript">
    function query() {
            window.showModalDialog("Query/DeviceQuery.aspx",   window,   "dialogWidth:700px;dialogHeight:400px;status:no;help:no;scroll:no");
        }
    </script>
ÓÚÊǾÍתµ½ÉÏͼÖеÄDeviceQueryÒ³Ãæ¡£
°´Å¥“È·¶¨”µÄ´úÂëΪ£º
 protected void btnOK_Click(object sender, EventArgs e)
    {
        string swhere = get_where().Replace("'", "\'");
        Session["where"] = get_where();
        string script = "window.returnValue='true'; window.dialogArguments.__doPostBack('btnquery', '');";
        this.ClientScript.RegisterStartupScript(this.GetType(), "MPExecCommand", script, true);
        script = "window.close();";
        Common.ResponseScript(this.Page, script);
    }
×¢ÒâÆäÖеÄscript×ֶΣ¬ÀïÃæµÄ__doPostBack('btnQuery','')ÊÇ·µ»Øµ½Ò³ÃæµÄbtnquery°´Å¥£¬Ö´ÐÐËüµÄClickʼþ¡£


Ïà¹ØÎĵµ£º

javascript Ò³ÃæÌøתÓï¾ä

javascriptÒ³ÃæÌøת³£ÓôúÂë
 
¡¡   °´Å¥Ê½£º
¡¡¡¡<INPUT name="pclog" type="button" value="GO" onClick="location.href='http://www.163.com'">
       »òÕß
      <input type="button" value="ÖØйºÂò" onclick="return goBack ......

javaScript¼òµ¥µÄ±í¸ñ±ß¿òÉÁ˸Ч¹û¡£

òËÆCSDNÀïµÄ¶¼ÊÇרҵÈËÊ¿£¬¸ßÊÖ¿ÉÒÔÂÓ¹ýÁË£¬ºÇºÇ¡£
Ò»ÏÂÊÇÔ´Â룺
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content ......

javascript²Ù×÷divÖеÄmarginTop

ÔÚjavascript¿ØÖÆdivÖ®¼äµÄÍâ±ß¾àʱ£¬´úÂëдµ½
document.getElementById("").style.marginTop=20;
Õâ¸öÔÚIEä¯ÀÀÆ÷ÖпÉÒÔ£¬µ«ÊÇÔÚchromeÖоͲ»ÐУ¬Õâ¸öÎÊÌâÊÇÓ¦¸Ã
document.getElementById("").style.marginTop="20px";
¸÷¸öä¯ÀÀÆ÷Öв»Í¬µÄÎÊÌâÒªÇ󲻵ȶԴý£¬ÕâЩÌìѧÁËdiv+cssÔÚÉèÖø÷¸öä¯ÀÀÆ÷ÊDz»Í¬µÄÅäÖã¬ÒªÕë¶Ôÿ¸ö ......

javascript³õѧÕß:È«Ãæѧϰ¶ÔÏó¸ÅÄî

javascript³õѧÕß
——È«Ãæѧϰ¶ÔÏó¸ÅÄî
±¾ÎĽéÉÜÁ˼¸ºõËùÓйØÓÚ¶ÔÏóµÄ»ù±¾¸ÅÄʲôÊǶÔÏó£¬ÈçºÎ´´½¨¶ÔÏ󣬶ÔÏóµÄÊôÐÔµÄÉèÖúͶÁÈ¡£¬É¾³ýÊôÐԵķ½·¨£¬¹¹Ô캯Êý£¬¶ÔÏóÔ­ÐÍ£¬¸¸À࣬×ÓÀ࣬¼Ì³ÐµÈµÈ¡£
1.¶ÔÏó
* ¶ÔÏóÊÇÒ»ÖÖ¸´ºÏÊý¾ÝÀàÐÍ£¬ËüÃǽ«¶à¸öÊý¾ÝÖµ¼¯ÖÐÔÚÒ»¸öµ¥ÔªÖУ¬¶øÇÒÔËÐÐʹÓÃÃû×ÖÀ´´æÈ¡ÕâЩֵ¡£½âÊ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ