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

¸øGridView¼ÓÁ½¸öjavascriptÌØЧ

ÔÚÊý¾Ý°ó¶¨Ê¼þÖÐдÈçÏ´úÂ룺
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row .RowType == DataControlRowType .DataRow)//ÅжÏÊÇ·ñΪÊý¾ÝÐÐ
{
//ÔÚµã»÷ɾ³ýʱ£¬µ¯³öÌáʾ¶Ô»°¿ò
LinkButton lb = e.Row.FindControl("LinkButton1") as LinkButton;
lb.Attributes.Add("onclick","return confirm('È·ÈÏ?')");//ÊÇ·ñ´¥·¢onclickʼþ
//¸øÊý¾ÝÐмÓÔØÑùʽ£¨ÓÃjavascript£©£¨¹â°ôЧ¹û£©
e.Row.Attributes.Add("onmouseover", "aa=this.style.backgroundColor;this.style.backgroundColor='#6699ff'");
e.Row.Attributes.Add("onmouseout","this.style.backgroundColor=aa");
}

}


Ïà¹ØÎĵµ£º

JavaScriptÅжÏä¯ÀÀÆ÷ÀàÐͼ°°æ±¾

ÄãÖªµÀÊÀ½çÉÏÓжàÉÙÖÖä¯ÀÀÆ÷Â𣿳ýÁËÎÒÃÇÊìÖªµÄIE, Firefox, Opera, SafariËÄ´óä¯ÀÀÆ÷Ö®Í⣬ÊÀ½çÉÏ»¹Óнü°ÙÖÖä¯ÀÀÆ÷¡£
       ¼¸ÌìÇ°£¬ä¯ÀÀÆ÷¼Ò×åÓиյ®ÉúÁËһλСÍõ×Ó£¬¾ÍÊÇGoogleÍƳöµÄChromeä¯ÀÀÆ÷¡£ÓÉÓÚChrome³öÉúÃûÃÅ£¬¾¡¹ÜËû»¹ÊǸöС¼Ò»ï£¬Ã»ÓÐÈ˸ÒС¿´Ëû¡£ÒÔºó£¬ÔÛÃdz£Ëµä¯ÀÀÆ÷µÄ&ld ......

ÔÚ Wordpress ²å¼þÖÐʹÓà Javascript(jQuery) ½Å±¾

    ÓÐÁËÇ°ÃæµÄһƪÎÄÕ¡¶ÔÚ Wordpress ²å¼þÖÐʹÓÃÑùʽ±í¡·£¬Ôò±¾½Ú¡¶ÔÚ WP ²å¼þÖÐʹÓà Javascript¡·¾ÍºÃÃèÊö£¬Ò²ÈÝÒ×Àí½âµÄ¶àÁË¡£
    1£¬²å¼þµÄÎļþ¼Ð½á¹¹ÓëÇ°ÎÄÏàͬ¡£²å¼þÍê³ÉµÄ¹¦ÄÜÇ°ÎÄÒѾ­Êö¼°£¬±¾½Ú½«¼ÓÒ»¸ö¹¦ÄÜ£¬µ±ÔÚÎÄ×ÖÉϵã»÷ʱ£¬µ¯³öÒ»¸ö´°¿Ú¡£±¾½ÚʾÀýÒ²ÔÚÇ°ÎÄʾÀýµÄ»ù´¡ÉÏ¿ª·¢¡ ......

JSONÊÇʲô£¿ÎªJavaScript×¼±¸µÄÊý¾Ý¸ñʽ

»¹²»Á˽âJSONÊÇʲô?¿´ÁËÏÂÃæÕâƪÎÄÕ£¬Äú¶ÔJSONÊÇʲôӦ¸ÃÄܹ»ÓÐÁËÒ»¸ö±È½ÏÇåÎúµÄ¸ÅÄî¡£
¡¡¡¡JSON ¼´ JavaScript. Object Natation£¬ËüÊÇÒ»ÖÖÇáÁ¿¼¶µÄÊý¾Ý½»»»¸ñʽ£¬·Ç³£ÊʺÏÓÚ·þÎñÆ÷Óë JavaScript. µÄ½»»¥¡£±¾ÎĽ«¿ìËÙ½²½â JSON ¸ñʽ£¬²¢Í¨¹ý´úÂëʾÀýÑÝʾÈçºÎ·Ö±ðÔÚ¿Í»§¶ËºÍ·þÎñÆ÷¶Ë½øÐÐ JSON ¸ñʽÊý¾ÝµÄ´¦Àí¡£
¡¡¡¡¾¡¹ ......

jsÈçºÎʵÏÖÔÚÒ³ÃæÍêÈ«¼ÓÔغóÖ´ÐÐjavascriptº¯Êý

jsÈçºÎʵÏÖÔÚÒ³ÃæÍêÈ«¼ÓÔغóÖ´ÐÐjavascriptº¯Êý»ò/´úÂëÄØ?
¿ÉÒÔÊÇÒÔϼ¸ÖÖ
<body onload="function name()" > </body  >
<script >window.onload=function name </script >
<script language="javascript" for="window" event="onload" >function name(); </script >
µ ......

ÓÃJavascript»ñÈ¡Ò³ÃæÔªËصÄλÖÃ

תÔØ×Ô£ºhttp://www.ruanyifeng.com/blog/2009/09/find_element_s_position_using_javascript.html
Áíһƪ£ºhttp://blog.csdn.net/ivan820819/archive/2009/09/03/4515122.aspx
ÖÆ
×÷
ÍøÒ³µÄ¹ý³ÌÖУ¬ÄãÓÐʱºòÐèÒªÖªµÀij¸öÔªËØÔÚÍøÒ³ÉϵÄÈ·ÇÐλÖá£
ÏÂÃæµÄ½Ì³Ì×ܽáÁËJavascriptÔÚÍøÒ³¶¨Î»·½ÃæµÄÏà¹ØÖª
ʶ¡£
Ò»¡¢ÍøÒ³µ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ