javaScript Îı¾Ð§¹û
¹¦ÄÜ£ºÎı¾¿Ø¼þÀïµÄÎı¾£¬µ±Êó±ê½øÈëʱ£ºÑ¡ÖÐÎı¾£»µ±Êó±ê°´ÏÂʱ£ºÇå¿ÕÎı¾£»µ±Êó±êÒƳö¿Ø¼þÍâµã»÷£ºÎı¾»¹Ô¡£
<textarea id="tbox" runat="Server" class="tbox" cols="20" rows="8" onmouseover="this.focus();" onfocus="this.select();" onclick="if(this.value=='µã»÷ÕâÀïдÏÂÄúµÄÒâ¼û'){this.value='';}" value="µã»÷ÕâÀïдÏÂÄúµÄÒâ¼û" onblur="if(this.value==''){this.value='µã»÷ÕâÀïдÏÂÄúµÄÒâ¼û';}"></textarea>
Ïà¹ØÎĵµ£º
flashÓëjavascriptµÄ½»»¥¿ÉÄÜÌÖÂ۵ıȽ϶à,½ñÌìΪ´ó¼Ò½éÉÜÏÂÈçºÎʹÓÃflexÓëjavascript½øÐн»»¥
Ò»¡¢ÔÚJavaScriptÖе÷ÓÃFlex·½·¨
ÔÚFlexÖпÉÒÔÓÃExternalInterfaceÀ´µ÷ÓÃFlexµÄ·½·¨£¬Í¾¾¶ÊÇ
1.ͨ¹ýÔÚFlexÓ¦Óÿɵ÷Ó÷½·¨ÁбíÖÐÌí¼ÓÖ¸¶¨µÄ¹«Ó÷½·¨¡£ÔÚFlexÓ¦ÓÃÖÐͨ¹ýµ÷ÓÃaddCallback()¿ÉÒÔ°ÑÒ»¸ö·½·¨Ìí¼Óµ½´ËÁбíÖС£addC ......
ÍøÒ³¿É¼ûÇøÓò¿í£ºdocument.body.clientWidth
ÍøÒ³¿É¼ûÇøÓò¸ß£ºdocument.body.clientHeight
ÍøÒ³¿É¼ûÇøÓò¿í£ºdocument.body.offsetWidth(°üÀ¨±ßÏߵĿí)
ÍøÒ³¿É¼ûÇøÓò¸ß£ºdocument.body.offsetHeight(°üÀ¨±ßÏߵĿí)
ÍøÒ³ÕýÎÄÈ«ÎÄ¿í£ºdocument.body.scrollWidth
ÍøÒ³ÕýÎÄÈ«Îĸߣºdocument.body.scrollHeight
ÍøÒ³±»¾íÈ¥µ ......
Ò»Ö±Ïë¶ÔJavascriptÔÙ´Î×öһЩ×ܽᣬÕýºÃ×î½ü×Ô¼ºÐ´ÁËÒ»¸öСÐÍJs
UI¿â£¬×ܽáÁËÒ»ÏÂJsµÄ¼Ì³Ð»úÖÆ£¬ÔÚÍøÉÏÒ²¿´ÁËһЩǰ±²ÃDz©¿ÍÀïµÄ×ܽᣬ¸Ð¾õ·ÖÎö²»ÊÇÌرðÈ«Ãæ¡£ÕâÀï½ö½öÊÇ°Ñ×Ô¼ºµÄѧϰÌå»áÄóöÀ´·ÖÏíһϣ¬Ï£Íû¶Ô´ó¼Ò
ѧϰJavascriptÓÐËù°ïÖú¡£
Javascript±¾ÉíÊÇ´ÓPerlÓïÑÔµÄÓï·¨Ñݱä¶øÀ´µÄ£¬±¾ÖÊÉÏÊǽű¾ÓïÑÔ ......
ÒýÓÃ
Aaron µÄ javascript¶¨Òå¶ÔÏóд·¨£¨ÕûÀí£©
javascript¶¨Òå¶ÔÏóµÄ¼¸ÖÖ¼òµ¥·½·¨
1.¹¹Ô캯Êý·½Ê½£¬È«²¿ÊôÐÔ¼°¶ÔÏóµÄ·½·¨¶¼·ÅÔÚ¹¹Ôì·½·¨ÀïÃ涨Òå
Óŵ㣺¶¯Ì¬µÄ´«µÝ²ÎÊý
ȱµã£ºÃ¿´´½¨Ò»¸ö¶ÔÏó¾Í»á´´½¨ÏàͬµÄ·½·¨º¯Êý¶ÔÏó£¬Õ¼ÓôóÁ¿ÄÚ´æ
function User1(name, password) {
this.name = name;
this.password = pass ......
Javascript´úÂëÊղشóÈ«
1. oncontextmenu="window.event.returnvalue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡ÏûÑ¡È¡¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù
4. oncopy="retu ......