Csdn Ö®"Ìí¼ÓjavascriptÌØÐ§"
Ò»¡¢ ÔÚ×Ô¶¨ÒåcssÑùʽÖÐÊäÈë </style> ½«css´úÂë¶Î½áÊø£»
¶þ¡¢ ÔÚ </style> ºóÃæÊäÈë <script type="text/javascript" language="javascript">js´úÂë</script>£»
Èý¡¢ ±£´æÅäÖþͿÉÒÔÓÐÄãÊäÈëµÄjsÌØÐ§À²¡£
ÓÉÓÚ±¾È˶Ôjs²»ÊǺÜÊìϤ£¬ÕâÀï¾Í²»Ð´Àý×ÓÁË£¬Ï£ÍûÓкÃÉè¼ÆµÄ²©ÓÑÃÇÄÜ·ÖÏíÒ»ÏÂÄãÃǵĴúÂë¡£
Ïà¹ØÎĵµ£º
ÔÚb/s¿ª·¢Öо³£Óõ½µÄjavaScript¼¼Êõ
Ò»¡¢ÑéÖ¤Àà
1¡¢Êý×ÖÑéÖ¤ÄÚ
1.1 ÕûÊý
1.2 ´óÓÚ0µÄÕûÊý £¨ÓÃÓÚ´«À´µÄIDµÄÑéÖ¤)
1.3 ¸ºÕûÊýµÄÑéÖ¤
1.4 ÕûÊý²»ÄÜ´óÓÚiMax
1.5 ÕûÊý²»ÄÜСÓÚiMin
2¡¢Ê±¼äÀà
2.1 ¶Ìʱ¼ä£¬ÐÎÈç (13:04:06)
2.2 ¶ÌÈÕÆÚ£¬ÐÎÈç (2003-12-05)
2.3 ³¤Ê±¼ä£¬ÐÎÈç (2003-12-05 13:04:06)
2. ......
ʲôÊDZհü(closures):
±Õ°ü¾ÍÊÇÄÚ²¿º¯Êýͨ¹ýijÖÖ·½Ê½Ê¹Æä¿É¼û·¶Î§³¬³öÁËÆä¶¨ÒåµÄ·¶Î§,Õâ¾Í²úÉúÁËÒ»¸öÔÚÆä¶¨Ò巶ΧÄڵıհü.
ÕâÊÇÎÒÀí½âºóµÄÒ»¸ö¶¨Òå,ºÇºÇ!ºÜ»Þɬ°É!²»¹ýû¹ØÏµ,¿ÉÒÔÏÈ¿´¿´ÏÂÃæµÄ½²½â.
Ò» ÄÚ²¿º¯Êý(inner function)
javascriptÊÇÖ§³ÖÄÚ²¿º¯ÊýÉêÃ÷(inner func ......
Ч¹ûÑÝʾµØÖ·£ºhttp://www.phzzy.org/code/drag/google_drag.html
ÍÏ×§ÔÀí£º
¹ØÓÚÍÏ×§µÄ»ù´¡£¬¿ÉÒԲο¼ÕâÆªÎÄÕ£¬½²µÃ·Ç³£²»´í¡£
http://www.sohotx.com/mzk/index.php/1007/ArticleContent/298.html
ÆäʵÔÀíºÜ¼òµ¥£¬¾ÍÊǰѰó¶¨Èý¸öʼþ£ºonmousedown , onmousemove , onmouseup¡£
ÔÚÊó±êµãÏÂʱ(onmousedown)° ......
¶ÔÓÚJavaScriptÀ´½²£¬ËüµÄ³öÏÖʹµÃÐÅÏ¢ºÍÓû§Ö®¼ä²»½öÖ»ÊÇÒ»ÖÖÏÔʾºÍä¯ÀÀµÄ¹ØÏµ£¬¶øÊÇʵÏÖÁËÒ»ÖÖʵʱµÄ¡¢¶¯Ì¬µÄ¡¢¿É½»Ê½µÄ±í´ïÄÜÁ¦¡£×î½üС±àÕûÀíÁËһЩ×ÊÁÏ£¬·¢²¼ÉÏÀ´Óë´ó¼ÒÒ»Æð·ÖÏí£¬Èç¹ûÎÄÕÂÓÐʲô覴û¹Ï£Íû¸ßÊÖÖ¸µã£¬´ó¼ÒÏ໥ѧϰ¡£
JavaScriptÊÇÒ»ÖÖ»ùÓÚ¶ÔÏó(Object)ºÍʼþÇý¶¯(Event Driven)²¢¾ßÓа²È«ÐÔÄܵĽű¾Óï ......
<script language="JavaScript" type="text/javascript" >
<!--
.
//-->
</script>
.languageÒѾ±»ÆúÓ㬵«ÎªÁ˼æÈݾɰ汾ä¯ÀÀÆ÷¶ø±£Áô£¬ËùÒÔ½¨ÒéͬʱʹÓÃÕâlanguageºÍtypeÁ½¸ö
.<!--- / ......