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

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="text/html; charset=gb2312" />
<title>ÎÞ±êÌâÎĵµ</title>
</head>
<body>
<script language="javascript">
i=0
var c=new Array(3)
c[0]="red"
c[1]="yellow"
c[2]="blue"
c[3]="pink"
c[4]="black"
c[5]="white"
c[6]="green"
function flash(){
a.style.borderColor=c[i]
i++
if(i>6)
i=0;
setTimeout("flash()",500)
}
</script>
<table width="392" height="240" border="5" id="a" >
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<script language="javascript">flash()</script>
</body>
</html>


Ïà¹ØÎĵµ£º

JavaScript Ñ­»·

JavaScript For Ñ­»·
Previous Page
Next Page
JavaScript ÖеÄÑ­»·ÓÃÀ´½«Í¬Ò»¶Î´úÂëÖ´ÐÐÖ¸¶¨µÄ´ÎÊý£¨»òÕßµ±Ö¸¶¨µÄÌõ¼þΪ true ʱ£©¡£
ʵÀý
For Ñ­»· ÈçºÎ±àд loop Ñ­»·À´°´ÕÕÖ¸¶¨µÄ´ÎÊýÖ´ÐÐÏàͬµÄ´úÂë¡£ Ñ­»·²úÉú HTML ±êÌâ ÈçºÎʹÓÃLoopÑ­»·À´²úÉú²»Í¬µÄHTML±êÌâ¡£
JavaScript Ñ­»·
ÔÚ±àд´úÂëʱ£¬Äã³£³£Ï£Íû· ......

JavascriptÀàµÄд·¨

JavascriptÖÐfunction¼´ÎªÀ࣬ÔÚfunctionÄÚ²¿ÓÃthisÉèÖÃÀàµÄpublic³ÉÔ±±äÁ¿Óë·½·¨£¬ÀýÈ磺
function myclass(name){
¡¡¡¡¡¡¡¡var str = "private string";¡¡¡¡¡¡¡¡//private field
¡¡¡¡¡¡¡¡function privatefn(){¡¡¡¡¡¡¡¡¡¡¡¡//private method¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡alert(str);
¡¡¡¡¡¡¡¡};
¡¡¡¡¡¡¡¡this.name = name;
¡¡ ......

JavaScript ÄÜ×öʲô

JavaScript ÄÜ×öʲô£¿
JavaScript Ϊ HTML Éè¼ÆÊ¦ÌṩÁËÒ»ÖÖ±à³Ì¹¤¾ß HTML ´´×÷ÕßÍùÍù¶¼²»ÊdzÌÐòÔ±£¬µ«ÊÇ JavaScript È´ÊÇÒ»ÖÖÖ»ÓµÓм«Æä¼òµ¥µÄÓï·¨µÄ½Å±¾ÓïÑÔ£¡¼¸ºõÿ¸öÈ˶¼ÓÐÄÜÁ¦½«¶ÌСµÄ´úÂëÆ¬¶Ï·ÅÈëËûÃÇµÄ HTML Ò³Ãæµ±ÖС£ JavaScript ¿ÉÒÔ½«¶¯Ì¬µÄÎı¾·ÅÈë HTML Ò³Ãæ ÀàËÆÓÚÕâÑùµÄÒ»¶Î JavaScript ÉùÃ÷¿ÉÒÔ½«Ò»¶Î¿É± ......

Flex3ÓëÒ³ÃæJavaScriptµÄÏ໥µ÷ÓÃ

 ÈÕǰ×öÏîÄ¿£¬ÐèÒª°ÑÒ³ÃæµÄJS´úÂë³é³öÀ´·Åµ½Ò»¸ö.jsÎļþÖУ¬ÓÉÓÚflex³ÌÐòÊÇÒÔdiv+SWFObjectµÄ·½Ê½Ç¶Èëµ½Ò³ÃæµÄ£¬ÎªÁ˴ﵽĿ±êÍøÕ¾Ö»ÐèÒªÒýÓÃÒ»¸ö.jsÎļþ¼´ÊµÏÖÒýÓÃÏîÄ¿¹¤³ÌµÄÄ¿µÄ£¬ËùÒÔÒ²Òª°ÑSWFObjectµÄ´úÂë·Åµ½.jsÎļþÖС£
˼·ÊÇÓÃdocument.write()°ÑÒýÓÃswfÎļþµÄ´úÂëд½øÒ³Ã棬Ȼºó°ÑflexÒªµ÷ÓõÄjsº¯Êý¶¼·Åµ½.j ......

ʹÓÃjavascript¹ýÂË×Ö·û´®Ç°ºóµÄ¿Õ¸ñ

//¹ýÂËÁ½¶ËµÄ¿Õ¸ñ
    function trim(str){
   return str.replace(/(^\s*)|(\s*$)/g, ""); 
    }
    //¹ýÂË×ó±ßµÄ¿Õ¸ñ 
    function ltrim(str){
   return  ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ