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

JavascriptÖ®ä¯ÀÀÆ÷¶ÔÏó


ä¯ÀÀÆ÷¶ÔÏó
 
 
ä¯ÀÀÆ÷¶ÔÏó¾ÍÊÇÍøÒ³ºÍä¯ÀÀÆ÷±¾Éí¸÷ÖÖʵÌåÔªËØÔÚJavaScript³ÌÐòÖеÄÌåÏÖ¡£ÕâÑùµÄä¯ÀÀÆ÷¶ÔÏóÖ÷Òª°üÀ¨ÒÔϼ¸¸ö
¡ñ  Navigator£º¹ÜÀíÕßµ±Ç°Ê¹ÓÃä¯ÀÀÆ÷µÄ°æ±¾ºÅ¡¢ÔËÐеÄƽ̨ÒÔ¼°ä¯ÀÀÆ÷ʹÓõÄÓïÑÔµÈÐÅÏ¢¡£
¡ñ  Windows¶ÔÏ󣺴¦ÓÚÕû¸ö´ÓÊô±íµÄ×¼¶Î»Öá£Ã¿Ò»¸öÕâÑùµÄ¶ÔÏó´ú±íÒ»¸öä¯ÀÀÆ÷´°¿Ú¡£
¡ñ  Location¶ÔÏ󣺺¬Óе±Ç°ÍøÒ³µÄURLµØÖ·¡£
¡ñ  Document¶ÔÏó£º º¬Óе±Ç°ÍøÒ³µÄ¸÷ÖÖÌØÐÔ£¬ÀýÈç±êÌâ¡¢±³¾°¸ÐÒÔ¼°Ê¹ÓõÄÓïÑԵȡ£
¡ñ  History¶ÔÏ󣺺¬ÓÐÒÔÇ°·ÃÎʹýµÄÍøÒ³µÄURLµØÖ·¡£
ʹÓÃä¯ÀÀÆ÷µÄÄÚ²¿¶ÔÏóϵͳ£¬¿ÉʵÏÖÓÚHTMLÎĵµ½øÐн»»¥¡£ËüµÄ×÷ÓÃÊǽ«Ïà¹ØÔªËØ×éÖ¯°ü×°ÆðÀ´£¬Ìṩ¸ø³ÌÐòÉè¼ÆÈËԱʹÓ㬴Ӷø¼õÇá±à³ÌÈ˵ÄÀͶ¯£¬Ìá¸ßÉè¼ÆWebÒ³ÃæµÄÄÜÁ¦¡£
1.Navigator¶ÔÏó
Navigator¶ÔÏóÌṩ¹ØÓÚÕû¸öä¯ÀÀÆ÷»·¾³µÄÐÅÏ¢£¬ä¯ÀÀÆ÷¶ÔÏóNavigatorÖг£ÓõÄÊôÐÔÓÐÈçϼ¸Ï
¡ñ AppName£ºÌṩ×Ö·û´®ÐÎʽµÄä¯ÀÀÆ÷Ãû³Æ¡£ÔÚʹÓÃNavigatorʱ£¬appNameµÄֵΪNetScape£»ÔÚʹÓÃInternet Explorerʱ£¬ appNameµÄֵΪMSIE¡£
¡ñ AppVersion£º ·´Ó³ä¯ÀÀÆ÷µÄ°æ±¾ºÅ¡£
¡ñ AppCodeName£º·´Ó³ÓÃ×Ö·û´®±íʾµÄµ±Ç°ä¯ÀÀÆ÷µÄ´úÂëÃû×Ö¡£¶ÔÓÚNavigatorµÄËùÓа汾£¬Õâ¸öÖµ¶¼ÊÇMozilla¡£
Îļþ·¶Àý£º15-24.htm
Ôڽű¾ÖÐʹÓÃNavigator¶ÔÏó¡£
01  <!-- ------------------------------ -->
02  <!-- Îļþ·¶Àý£º15-24.htm -->
03  <!-- Îļþ˵Ã÷£ºNavagator¶ÔÏó -->
04  <!-- ------------------------------ -->
05  <HTML>
06  <HEAD>
07  <TITLE>Navagator¶ÔÏó</TITLE>
08  </HEAD>
09  <BODY>
10  <script language="javascript">
11  <!--
12  document.write("ÄãʹÓõÄÊÇ"+navigator.appName+"<br>"+navigator.appVersion)
13  -->
14  </Script>
15  </BODY>
16  </HTML>
Îļþ˵Ã÷
µÚ12Ðе÷ÓÃä¯ÀÀÆ÷µÄÃû³ÆºÍ°æ±¾ºÅ¡£
2.Windows¶ÔÏó
´°¿Ú¶ÔÏó°üÀ¨Ðí¶àÓÐÓõÄÊôÐÔ¡¢·½·¨ºÍʼþÇý¶¯³ÌÐò£¬±à³ÌÈËÔ±¿ÉÒÔÀûÓÃÕâЩ¶ÔÏó¿ØÖÆä¯ÀÀÆ÷´°¿ÚÏÔʾµÄ¸÷¸ö·½Ã棬Èç¶Ô»°¿ò¡¢¿ò¼ÜµÈ¡£
ÏÂÃæÁгöһЩ³£ÓÃWindows¶ÔÏóµÄ·½·¨¡£
¡ñ open£¨URL£¬windowName£¬parameterList£©£ºopen·½·¨´´½¨Ò»¸öä¯ÀÀÆ÷´°¿Ú£¬²¢ÔÚд°¿ÚÖÐÔØÈëÒ»¸öÖ¸¶¨µÄURLµØÖ·


Ïà¹ØÎĵµ£º

JavaScriptÔÚIEµØÖ·À¸ÖеÄÃîÓÃ

ÍêÈ«´ò¿ªÒ³Ãæºó£¬ÔÚ¸ÃÒ³µÄÔÚIEµØÖ·À¸ »ò °´Ctrl+O ÊäÈëÒÔÏ´úÂ룬»Ø³µ£¬¾Í¿ÉÒԵõ½ÏàÓ¦µÄЧ¹û£º
1.ÏÔʾÍøÒ³ÖеÄËùÓÐͼƬ
javascript:Ai7Mg6P='';for%20(i7M1bQz=0;i7M1bQz<document.images.length;i7M1bQz++){Ai7Mg6P+='<img%20src='+document.images[i7M1bQz].src+'><br>'};if(Ai7Mg6P!=''){document.wri ......

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

ÔÚÊý¾Ý°ó¶¨Ê¼þÖÐдÈçÏ´úÂ룺
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row .RowType == DataControlRowType .DataRow)//ÅжÏÊÇ·ñΪÊý¾ÝÐÐ
{
//ÔÚµã»÷ɾ³ýʱ£¬µ¯³öÌáʾ¶Ô»°¿ò
LinkButton lb = e.Row.FindControl("LinkB ......

javascript Öпؼþ±³¾°É«µÄÉèÖÃ

function Search(){
//Èç¹ûÇ°Ò»¸ö¿Ø¼þµÄÖµ´óÓÚºóÒ»¸ö¿Ø¼þµÄÖµ(Ç°ÌáÊǺóÒ»¸ö¿Ø¼þ²»ÊÇ¿Õ,¿ÕµÄÇé¿öϲ»×öÈκδ¦Àí)
 if(document.forms[0].koteifrom.value > document.forms[0].koteiTo.value && document.forms[0].koteiTo.value != ""){
  alert('messageÄÚÈÝ');
  var koteifrom ......

javascriptʼþ from PPK yahooÑݽ²

תÔØ×Ô£ºhttp://www.zipeng.info/archives/ppk-on-js-events.html
½ñÌìÎÒ»á˵һЩ¹ØÓÚJavaScriptʼþµÄÊÂÇ飬ÎÒºÜÏ£Íû×Ô¼ºÄÜÆô·¢´ó¼ÒһЩʲô£¬²»¹ý´ó»ï¶¼ÊǸßÊÖ£¬²»¹ÜÔõô£¬ÎÒ»¹ÊÇҪ˵˵
JavaScriptʼþ¡£
´óÔ¼Ò»ÄêÇ°ÎÒ´òËã¶ÔJavaScriptµÄʼþ×öһЩÉîÈëµÄÑо¿£¬²¢ÇÒÎÒ×öÁËÒ»ÕżæÈÝÐÔµÄ±í£¬´ó¼Ò¿ÉÒÔͨ¹ýÏÂÃæÕâÀïÀ´
·ÃÎ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ