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

Javascript¼àÌýÆ÷ÎÊÌâ - Web ¿ª·¢ / JavaScript

ÎÒÕâôд¿ÉÒÔµ¯³öclick
<html>
  <head>
   
  </head>
  <body>
  <div id="myHeader">
  This is a header
  </div>
  <script>
  var click = function(){
  alert("click")
  }
  var doc = document.getElementById("myHeader");
  doc.addEventListener("click", click, false);
   
  </script>
  </body>
</html>
µ«ÊÇ°ÉJS´úÂë·Åµ½µ¥¶ÀµÄtest.JSÎļþÀï
 <script type="text/javascript" src="test.js">
  </script>
ÕâÑùÍâÁªÒýÓþͲ»ºÃʹ£¬ÇëÎÊΪʲô 

Ó¦¸ÃûÓÐÎÊÌâµÄ£¬ÏÂÃæ´úÂëÔÚ¶à¸öä¯ÀÀÆ÷²âÊÔÁË
HTML code:

<input type="checkbox" />
<input type=button onclick="updatex()" value="×ÖÌå"/>



<div id="myHeader">
This is a header
</div>
<script src="LinkHover.js" type="text/javascript">


</script>


js´úÂë
JScript code



Code highlighting produced by Actipr


Ïà¹ØÎÊ´ð£º

JavascriptÃèµãÎÊÌâ - Web ¿ª·¢ / JavaScript

ÓÃjavascript¼ÓÔØÒ³ÃæʱָÏòÒ»¸öÃèµã¡£ÒÑÖªÈçºÎͨ¹ýÁ´½Ó×ö³ÉÃèµãµÄ£¬¿ÉÊÇÏëÈÃÒ³Ãæ¼ÓÔØʱֱ½ÓÖ¸Ïò²»ÐèÒªµã»÷Á´½Ó¡£
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &quo ......

ÇóÏÂÁª JavaºÍJavaScript - Java / ·Ç¼¼ÊõÇø

ÉÏÁª£ºJavaºÍJavaScript

×Ô¼ºÊÔÊÔ£º
ÏÂÁª£ºÃæ°üºÍÃæ°ü³µ

ÏÂÁª£ºSQLºÍMySQL
ºÇºÇ¡£

me and myself

ÏÂÁª£ºJavaScriptºÍJava

ÍÃ×ÓºÍÍÃ×Óʺ£¡
£¡

ÔÙÀ´Ò»¸ö£ºCºÍC++

ÒýÓÃ
ÏÂÁª£ºJavaScriptºÍJav ......

¼±ÇóÒ»¸öjavascript½Å±¾.. - Web ¿ª·¢ / ASP

ÇóÒ»¸öjavascript½Å±¾..
µ±µã»÷Õâ¸ö<a>Ìí¼Ó¸½½ü</a>Á´½Óʱ¾Í»áÌí¼Ó¶àÒ»ÐÐÉÏ´«¿òºÍ°´Å¥,ºÍ×îºóÒ»¸öÅԱ߻áÏÔʾ"È¡Ïû"µÄÁ´½Ó,µã»÷Õâ¸öÈ¡Ïû¾Í»áÈ¥µô×îºóÒ»ÐÐ,Ò»¸öÕâ¸ö½Å±¾Ôõôд?Íò·Öлл..

Ò ......

À´¸öjavascript²ËÄñ

Ôõô²»ÄܲåÈëͼƬÄØÓôÃƲåÈëͼƬ¾ÍÒªÓÐÁ´½ÓµÄÓôÃÆ
ÈçͼËùʾ£¬document.get Ôõô»ñÈ¡tableÖ»ÖªµÀtableµÄÐòºÅµÚ¼¸¸ötable
²»ÖªµÀid£¬name

iΪµÚ¼¸¸ö
document.getElementsByTagName("TABLE")[i-1]

......

javascriptÅжÏä¯ÀÀÆ÷µÄÎÊÌâ

×òÌìдÁ˶ÎjavascriptÅжÏä¯ÀÀÆ÷µÄ½Å±¾£¬ÔÚ×Ô¼º»úÆ÷ÉÏie6,7,8,360ä¯ÀÀÆ÷£¬»ðºü£¬¹È¸è£¬åÛÓΣ¬ÌÚѶTT£¬safari£¬opera£¬Ëѹ·¸æËßä¯ÀÀÆ÷¶¼Í¨¹ýÁË£¬µ«ÊǸø±ðÈ˲âÊÔµÄʱºò˵ûͨ¹ý£¬Çë´ó¼Ò°ïÎÒ²âÊÔ·ÖÎöÏ£¬ÁíÍ⣬Çë½ÌÔõô ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ