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

javascript ¿ØÖÆ DIVµÈhtmlÔªËØµÄÏÔʾºÍÒþ²Ø

1
¡¢±àд
js
º¯Êý
<script
type="text/javascript">
    function display(id){
        var
traget=document.getElementById(id);
        
if(traget.style.display=="none"){
                
traget.style.display="";
         }else{
                
traget.style.display="none";
       }
   
}
</script>
2.¡¢
ÒªÏÔʾ
/
Òþ²ØµÄ
html
ÔªËØ¼ÓÉÏ
id
ÊôÐÔ
<table>
     <tr id="menu"
>   
        <td>
¿ØÖÆÕâ¸ö
tr
µÄÏÔʾ
/
Òþ²Ø
</td>
    </tr>
</table>
3
¡¢Ìí¼Ó°´Å¥£¬Á´½ÓµÈ´¥·¢
js
º¯Êý
<input type="button"
onclick="display(
'menu'
)"
  
value="
ÏÔʾ
/
Òþ²Ø
"/>
<a href="#"  
onclick="display(
'menu'
)"
  
>
ÏÔʾ
/
Òþ²Ø
</a>
javascript
ÏÔʾÒþ²Ø²ã
<div id=""
style="display:none;">
¹ã¸æ
</div>
<input type="botton"
onclick="
º¯Êý
">
<script
language=javascript>
function
º¯Êý
{
if(thisdiv.style.display=='none'){
thisdiv.style.display=""
}
else
thisdiv.style.display="none"
}
</script>
ÄãÏȸø
div
È¡¸ö
ID=“AA”thisdiv=AA
javascript
Òþ²Ø
/
ÏÔʾ±íµ¥¶ÔÏó

<SCRIPT
language=javascript>
function expandIt(el) {
      whichEl
=document.getElementById(el)
      if (whichEl.style.display ==    'none')
{
 &nbs


Ïà¹ØÎĵµ£º

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

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

Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â

Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â
Google ÅÅÃûÖÐµÄ 10 ¸ö×îÖøÃûµÄ JavaScript ¿â
ÎÄÕ·ÖÀà:Webǰ¶Ë
 
 
JavaScript ÊÇ Web ¿ª·¢ÓëÉè¼ÆÖв»¿É»òȱµÄ¶«Î÷£¬²»¹ÜÊÇÒ»¸ö¼òµ¥µÄÍøÒ³»¹ÊÇÒ»¸öרҵµÄÕ¾µã£¬Ò²²»¹ÜÄãÊǸßÊÖ»¹ÊDzËÄñ£¬Èç½ñ JavaScript ¿âÔ½À´Ô½Ç¿´ó£¬¿ÉÒÔʤÈÎÐí¶à¸´ÔӵŤ×÷£¬È»¶øÍ¬Ê±£¬È ......

C# Active¿Ø¼þ£¬²¢´¥·¢javascriptʼþ

´´½¨Ò»¸öWinformÓû§¿Ø¼þ UserControl1
 using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;
using System.Reflection;
namespace MyActiveT ......

Javascript¶ÔÏó£¬prototypeÁ´

DocÁ´½Ó£º http://docs.google.com/Doc?docid=0AZUdXGtQa0xqZGRocmo3MzZfMjA2Y2ZqZ2szZ2g&hl=en
¹Ø¼ü´Ê£ºJavaScript£»¶ÔÏó£»prototype£»prototypeÁ´
ÎÒÃÇÀ´´ò¸ö±È·½°É£º
Ëæ×ŸöÈ˵çÄÔÓ²¼þµÄ°×²Ë¼Û»¯£¬ºÜ¶àÓ²¼þÖÆÔìÉÌ¿ªÊ¼°ïÓû§×öÕû»úDIY¡£ÓÐʱºòÓû§¿ÉÄܻص½“×ܲ¿”È¥×°»ú£¬ÄÇÀï¶«Î÷ºÜÈ«¡£µ«Ò»°ãÕâЩ³§¼Ò ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ