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

дÔÚ¡¶JavaScriptÕ÷;¡·¶Áºó¸Ð´´×÷֮ǰµÄ»°

 ÔÚд¶Áºó¸Ð֮ǰ£¬ÏÈ×ÔÎÒ½éÉÜһϣ¬±¾ÈË£¬ÄУ¬24Ë꣬δ»é£¬×Êdz.NET³ÌÐòÔ±£¬ÔÚ¶Á´ËÊé֮ǰÒѾ­Äܹ»ÊìÁ·µÄÀûÓÃJavaScript½øÐÐ±íµ¥µÄÒ»°ãÑéÖ¤£¨Í¨¹ýdocument.getElementById»ñÈ¡³öÎı¾¿òµÄÖµºóÔÙ½øÐÐif...else...Åжϣ©¡£
    ¸Õ¸ÕÄõ½´ËÊ飬ÐÄÇéºÃÒ»·¬¼¤¶¯£¬ÎÖ~~~лª×ֵ䣬³¤Ô¼26CM£¬¿íÔ¼18CM£¬¸ßÔ¼3.5CM£¬·âÃæÓа¼Í¹¸Ð£¬Ö½ÖʺܺÃ.
    ×Ðϸ¿´ÁËĿ¼£¬¹²21Õ£¬±¾È˶ÔJavaScriptÒ²²»ÊÇÕÆÎյúܺã¬Ò²²»ÖªµÀÊDz»ÊÇÒѾ­°ÑJavaScriptµÄËùÓÐÄÚÈÝ°üÀ¨ÔÚÀïÃæÁË£¬²»¹ýÓ¦¸ÃÄÚÈÝÊÇÂù·á¸»µÄ¡£
    ¿´ÁËÒ»¸öÐÇÆÚ£¬Ã¿ÌìÍíÉÏ¿´3Сʱ×óÓÒ£¬²Å¿´Á˴˱¾µÄÒ»°ë£¬×ܵÃÀ´ËµÊ黹ÊÇдµÃ²»´íµÄ£¬ËäÈ»ÓÐЩµØ·½ÄÑÃâ»áǧƪһÂÉ£¬±ÈÈç˵ÔÚ½²JavaScript¶ÔÏóµÄʱºò£¬ÏÈÊÇÒ»¸ö±í¸ñ£¬×ó±ßÊÇÊôÐÔ»òÕß·½·¨µÄÃû³Æ£¬ÓÒ±ßÊǽâÊÍ...
    ¸öÈËÈÏΪ±¾Êé×î´óµÄÌصã¾ÍÊÇËûÖÚ¶àµÄʾÀý´úÂ룬ÿһ¸ö֪ʶµã¸½ÁËÒ»´ó¶Î½âÊÍÐÔµÄÎÄ×ÖÖ®Í⣬¶¼»áÓÐÒ»¸öÒÔÉϵĴúÂëʾÀýÀ´ËµÃ÷£¬¸öÈËÈÏΪÄÇЩʾÀý´úÂ뻹ÊǺܺö®µÄ£¬»ù±¾ÉÏÎÒ¿´Êé¶ÔÄÇЩÎÄ×Ö¶¼Ò»ÂÔ¶ø¹ý£¬¶øÖصãÊÇ¿´ÊéÖеÄʾÀý´úÂ룬µ±Äã´úÂë¿´¶®ÊÇÔõô»ØÊÂÁËÕâ¸ö֪ʶµãÄãÒ²¾ÍÃ÷°×ÁË¡£
    Î²Éù£¬±¾Ê黹û¿´Í꣬²»¹ý×ܵÃÀ´Ëµ¸öÈ˸оõ»¹ÊDz»´íµÄ£¬ÖÁÉÙ¶Ô±¾ÈËÀ´Ëµ£¬²»ÖªµÀÊÇÒòΪ¿´ÁË´ËÊéµÄЧ¹û»¹ÊÇÒòΪдJS´úÂëд¶àÁ˵ĻýÀÛ£¬¼¸ÌìÇ°È¥¿´kindeditorÔÚÏ߱༭Æ÷µÄÔ´Â뾹ȻÒÀÏ¡Óе㿴¶®ÁË£¬ºÙºÙ£¬¹À¼Æ×Ðϸ¿´ÍêÕû±¾Ê飬ÔÙÈ¥¿´jqueryµÄÔ´ÂëÓ¦¸ÃÄÜ¿´µÃ¶®ÁË¡£¡£¡£
»¥¶¯³ö°æÍø¹ºÂò
µ±µ±Íø¹ºÂò
׿ԽÍø¹ºÂò


Ïà¹ØÎĵµ£º

JavaScript »ñÈ¡¶ÔÏóµÄ¸ß¶ÈºÍ¿í¶ÈÏêϸ˵Ã÷

scrollHeight: »ñÈ¡¶ÔÏóµÄ¹ö¶¯¸ß¶È¡£
scrollLeft:ÉèÖûò»ñȡλÓÚ¶ÔÏó×ó±ß½çºÍ´°¿ÚÖÐÄ¿Ç°¿É¼ûÄÚÈݵÄ×î×ó¶ËÖ®¼äµÄ¾àÀë
scrollTop:ÉèÖûò»ñȡλÓÚ¶ÔÏó×¶ËºÍ´°¿ÚÖпɼûÄÚÈݵÄ×¶ËÖ®¼äµÄ¾àÀë
scrollWidth:»ñÈ¡¶ÔÏóµÄ¹ö¶¯¿í¶È
offsetHeight:»ñÈ¡¶ÔÏóÏà¶ÔÓÚ°æÃæ»òÓɸ¸×ø±ê offsetParent ÊôÐÔÖ¸¶¨µÄ¸¸×ø±êµÄ¸ß¶È
offsetL ......

JavaScript ʹÓü¼ÇÉ

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. oncop ......

ÔÚC++ÖÐÓÃWebBrowser¿Ø¼þµ÷ÓÃJavaScriptº¯Êý

Ö÷Òªº¯Êý CallJScript
BOOL CallJScript(const wchar_t * func, VARIANT * vtParams, int cNumberOfParam, VARIANT * vtResult)
{
if(!func || !func[0])
return FALSE;
CComPtr<IDispatch> spScript;
spScript = GetJScript();
if(!spScript)
return FALSE;
DISPID dispID = NULL;
CC ......

¹ØÓÚjavascriptСÊýµÄËÄÉáÎåÈë

 ÓÃJavascriptÈ¡floatÐÍСÊýµãºóÁ½Î»£¬Àý22.127456È¡³É22.13,ÈçºÎ×ö£¿
1. ×µÄ°ì·¨....... [ÎÒ¾ÍÔõô¸ÉµÄ.........]
function get()
{
    var s = 22.127456 + "";
    var str = s.substring(0,s.indexOf(".") + 3);
    alert(str);
}
2. ÕýÔò±í´ïʽЧ¹ ......

call javascript in firefox


·½·¨Ò»¡¢
NPN_GetURL(m_Instance, "javascript:test()",  NULL);
·½·¨¶þ¡¢
 NPVariant rval;
 NPN_InvokeDefault(m_Npp,  objectDisconnect ,NULL, 0,&rval);
 NPN_ReleaseVariantValue(&rval);
ÒÔÏÂÊÇjavascript
 <script type="text/javascript"> 
 &nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ