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

css javascriptµÄÎÊÌâgetElementById.type.display

ÎÒÔÚÍøÉÏ¿´µ½ÓÐÈËÕâÑùд£º
getElementById("").style.display="none"
»¹ÓÐÒ»¸öÊÇgetElementById("").attributes['class'].value = ''ÎÒ²éÁËÏÂÖªµÀÊÇͨ¹ýIdµÃµ½displayµÄÊôÐÔºÍclassµÄÊôÐÔ,ÎÒÏëÎÊÏ£¬ÒªµÃµ½display±ØÐëÓÃ.styleÂð£¿attributesÊǵõ½class£¬ÄÇÎÒ¿ÉÒÔд³Éattributes['display']Âð£¿attributesºÍstyleÓÐÊ²Ã´Çø±ð£¿
¸øÄã¿´¸öʾÀý£¬Ï£ÍûÄãÄÜ¿´Ã÷°×
<div id="test" class="testCss" style="display:none;font-size:12px"> </div>
ÊÇ·ñ¿´Ã÷°×ÁË£¿

ÒªµÃµ½display±ØÐëÓÃ.styleÂð£¿
¶÷
attributesÊǵõ½class£¬ÄÇÎÒ¿ÉÒÔд³Éattributes['display']Âð£¿
²»¿ÉÒÔ
attributesºÍstyleÓÐÊ²Ã´Çø±ð£¿
<td id="tdId" class="c1" style="display:none"> </td>
id,class,style¶¼ÊÇÊôÐÔ
attributesÊÇÊôÐÔ¼¯ºÏ
ͨ¹ýgetElementById("").attributes['style']Äܵõ½styleÊôÐÔ

attributesÊÇÒ»¸ö¼¯ºÏ£¬µÃͨ¹ýϱêÀ´·ÃÎÊ£¨×¼È·µÄ˵£¬ÊǸömap£¬Í¨¹ýkeyÀ´·ÃÎÊ£©¡£
getElementById("").style
getElementById("").attributes['style']
ÎÒ¾õµÃÕâÁ½ÖÖд·¨ÊÇÒ»ÑùµÄ¡£

ÁíÍ⣬ĿǰÁ÷ÐеÄjs¿ò¼Ü£¬ÒѾ­²»ÐèҪдÈç´ËÈß³¤µÄ´úÂëÁË£¬ºÜ·½±ã¡£Äã¿ÉÒÔÊÔÊÔ¡£

ллÄãÃÇ£¬ÎÒéÈû¶Ù¿ª°¡£¬ÓÈÆäÊÇ2Â¥µÄ»Ø´ð

Ã÷°×Á˾ͽáÌùÉ¢·Ö°É£¬¹þ¹þ

Java code



Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.c


Ïà¹ØÎÊ´ð£º

C#дJAVASCRIPT Êý×é

C#дJAVASCRIPT Êý×é

      protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
& ......

ÐÂÈËjavascriptÎÊÌâÇóÖú£¬Çë¸÷λ´ó¸ç´ó½ãÃÇÀ´°ï棡

ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......

JavaScriptµÄÒ»¸öÎÊÌâ

<script>
with(document)
{
for(var i=0;i <streams.length;i++)
writeln(" <p> <a href=# onclick=change(streams[i].url)>"+streams[i].name+" </a> < ......

ÓÖÒ»¸öjquery´úÂëתJavaScript£¡

$("p:first").before(" <center> <button id=\"button1\" onClick=\"cut()\">¼ôÇÐ </button> <button id=\"button2\">¸´ÖÆ <\/button> ......

javascript×Ö·û´®Á¬½Ó£¬ÇëÈ˸øÎÒ³¹µ×½²½²

var str="reguser_do.asp?psw_value="+obj.value+"&regid_value="+obj.id+"&ac_name="+ajax

ÎÒÕâÑùÁ¬½ÓÄÄÀï´íÁË£¿ÎªÊ²Ã´ÒªÕâÑùд£¿
ûÓдíÎó£¬Ö»ÊÇajaxÊǸöʲô±äÁ¿£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ