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

javascriptѧϰÈÕÖ¾Ò»

ScriptÊǸæËßhtml½Å±¾³ÌÐò´Ó´Ë´¦Ö´ÐУ¬±ê×¼Êä³öÓï¾äΪdocument.write()¡£
µ±Ò³ÃæÔØÈëµÄʱºò£¬»áÖ´ÐÐbody²¿·ÖµÄjavascript£»µ±Ò³Ãæµ÷ÓõÄʱºò£¬»áÖ´ÐÐhead²¿·ÖµÄjavascript£»¼´body²¿·ÖΪҳÃ沿·Ö£¬¶øheadΪÔÚÓû§´¥·¢µÄʱºòµ÷Óá£
Àý£º<html>
<head>
<script type=”text/javascript”>
Function message()
{
Alert£¨“Õâ¸öÌáʾ¿òͨ¹ýÖ´ÐÐonloadʼþµ÷ÓõĔ£©
}
</script>
</head>
 
<body onload=”message()”>
</body>
</html>
µ±Ò³ÃæÔØÈëʱ£¬ÏÈÖ´ÐÐbody²¿·Ö£¬È»ºóÔÙµ÷ÓÃmessageº¯Êý£¬alertΪ
 
 
Àý£º<html>
<head>
<input type="text"  id="123">  //¶¨Òåtext¿ò£¬±êʶºÅidΪ123
<input type="button" value="Click me!" onclick="alerting();"/>          //¶¨Òå°´Å¥Ãû×ÖΪClick me !µã»÷°´Å¥µ÷ÓÃalerting£¨£©
<Script Language="JavaScript">           //½Å±¾
function alerting(){                    //¶¨Ò庯Êýalerting()
     var content = "";                    //   ¶¨Òå±äÁ¿contentΪ¿Õ    
      content=window.document.getElementById("123").value;  //ͨ¹ý123µÃµ½¿òÖÐÊäÈëÖµµÄÊôÐÔ£¬×îºó¼ÓÉÏvalue²ÅµÃµ½ÊôÐÔµÄÖµ
      if(content.length<1){              // lengthΪgetElmentByIdµÄÊôÐÔ
     alert("no content!");
      }else{
     alert(content);
            }
}
</Script>
</head>
</html>
 
 
ÓÐʱÔںܶàÒ³ÃæÖж¼ÐèÒªÓõ½ÏàͬµÄ½Å±¾£¬´Ëʱ¾ÍÐèÒª°ÑÏàͬµÄjavascriptдÈëÒ»¸öÍⲿÎļþÖ


Ïà¹ØÎĵµ£º

JavaScriptѧϰ——ʼþ

     ÕâÁ½ÌìÉÏÎçÒ»Ö±ÔÚѧϰJavaScript£¬ÓÉÓÚ×ÜÊÇÔÚ¿´£¬Ð§¹û²»ÊǺܴó£¬Ò²ºÃ¾ÃûÓз¢±íÎÄÕÂÁË£¬ËùÒÔΪÁ˸üºÃµÄѧϰ£¬°Ñѧµ½µÄ¶«Î÷¼Ç¼ÏÂÀ´¡£ÎÒѧϰJavaScriptµÄÊéÊÇ¡¶¾«Í¨JavaScript+jQuery¡·£¬Èç¹û´ó¼ÒÓиüºÃµÄÊéÇëÍƼö¡£
Ò». ʼþµÄ¸ÅÄî
     C#ÖÐʼþµÄ¶¨Ò壺ʼþÀàËÆÓÚÒì³££¬Ë ......

JavaScript²Ù×÷·þÎñÆ÷¿Ø¼þÖ®Gridview¿Ø¼þ

JavaScript²Ù×÷·þÎñÆ÷¿Ø¼þÖ®Gridview¿Ø¼þ
1.JavaScript½Å±¾ÈçÏ£º
<script language="javascript" type="text/javascript">
    function gridviewControl()
    {
        //»ñÈ¡GridViewµÄ¿Í»§¶ËÔªËØ
       ......

javascript¶¨Ê±¸ü»»±í¸ñ±³¾°

<html>
<head>
<title>changePage</title>
</head>
<body>
<table id="pic" cellpadding="0" cellspacing="0" border="1" width="200" height="100" bordercolor="red">
<tr>
<td>picture chanage!</td>
</tr>
</table>
< ......

ÈçºÎÓÃjavascript JQuery ÅжÏͼƬÊÇ·ñ´æÔÚ£¡£¡£¡

¸öÈ˼ǼÔÚ°¸£¬ÒÔÃâÒÅÍü¡£
<!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>
    <title>ÎÞ±êÌâÒ³</title>
    <s ......

JavaScript Êó±êÒƶ¯Çл»Í¼Æ¬

<title>JavaScriptÇл»Í¼Æ¬</title>
<script>
function showDaTu(src){
document.getElementById("defaultImg").src=src;
}
</script>
<img src="/jscss/demoimg/wall1.jpg" id="defaultImg">
<br><br><br>
<img src='/jscss/demoimg/wall_s1.jpg' onmouseover ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ