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

JavaScript»ñµÃ²ãµÄ¸ß¶È²¢ÊµÏÖÁ½¸ö²ã¸ß¶ÈµÄ×ÔÊÊÓ¦

var   a = document.getElementById("left");   
var   b = document.getElementById("right");   
if(a.scrollHeight < b.scrollHeight)   
{  
    a.style.height = b.scrollHeight+”px”;
}   
else
{  
    b.style.height = a.scrollHeight+”px”;  
}   


Ïà¹ØÎĵµ£º

JavaScript Óï·¨¼¯½õ


JavaScript Óï·¨¼¯½õ 
click()    ¶ÔÏó.click()    Ê¹¶ÔÏó±»µã»÷¡£ 
closed   ¶ÔÏó.closed    ¶ÔÏó´°¿ÚÊÇ·ñÒÑ¹Ø±Õ true/false 
clearTimeout(¶ÔÏó)  Çå³ýÒÑÉèÖõÄsetTimeout¶ÔÏó 
clearInterval(¶ÔÏó)  Çå³ýÒÑÉèÖõÄsetInterval¶ÔÏó 
confir ......

JavaScriptÄ£ÄâÓû§µ¥»÷ʼþ

¹«Ë¾ÏîÄ¿ÏëҪʵÏÖÒ»ÖÖ¹¦ÄÜ£º
µ¥»÷Ò»¸ö°´Å¥»ò³¬Á´½Ó£¬È»ºó»á³öÏÖÆäËûµÄ³¬Á´½Ó£¬ÕâʱҪÈÃÆäÖеÄÒ»¸ö³¬Á´½Ó±»µ¥»÷£¬ÒÔÏÔʾһ¸ö³õʼҳÃæ¡££¨¹«Ë¾Ò³ÃæʹÓÃÁËframeset£©
ºÜÏÔÈ»£¬Ö®ºóµÄ³¬Á´½Óµ¥»÷ʼþÐèҪͨ¹ýJavaScriptÀ´´¥·¢¡£
Ò»¿ªÊ¼£¬ÎÒÏëµ½ÁËÓÃjQueryµÄclick()ʼþÀ´´¥·¢³¬Á´½ÓµÄµ¥»÷ʼþ£¨Óëtrigger("click")Ò ......

One Javascript Demo


<div id="a1" style=" position:absolute; z-index:2;"></div>
      <table width="200" border="0" cellpadding="0" cellspacing="0">
    <tr>
     <td><img src="°×Ñò.jpg" alt="hi.baidu.com/liwya" onmousemove ......

Ò»¸ö´øCheckBoxµÄÊ÷ÐÎĿ¼µÄµÝ¹éËã·¨£¨javascript£©


°¦£¬ºÜ¾ÃÒÔǰдµÄ´úÂ룬ɹһɹ£¬¹À¼Æ×Ô¼º¿´¶¼¿´²»¶®ÁË£¬:(
var head="display:''"
img_close=new Image()
img_close.src="/sysManage/images/f.gif"
img_open=new Image()
img_open.src="/sysManage/images/fo.gif"
img3=new Image()
img3.src="/sysManage/images/e.gif" ......

JavaScript¼¼ÇÉ


ת»¯ÎªBooleanÀàÐÍ
ËùÓÐJavaScriptÖеÄÖµ¶¼ÄÜÒþʽµÄת»¯ÎªBooleanÀàÐÍ£¬±ÈÈ磺
0 == false; // true
1 == true; // true
'' == false // true
null == false // true

µ«ÊÇÕâЩֵ¶¼²»ÊÇBooleanÀàÐÍ¡£
Òò´Ëµ±ÎÒÃÇʹÓÃÈý¸öµÈ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ