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 Êý×é
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
& ......
ÕâÊÇÎÒµÄÎı¾¿ò
<input type="text" size="60" name="password_answer" id="pwdanswer" value="$!password_answer" >
Ìá½»°´Å¥
<input clas ......
<script>
with(document)
{
for(var i=0;i <streams.length;i++)
writeln(" <p> <a href=# onclick=change(streams[i].url)>"+streams[i].name+" </a> < ......
$("p:first").before(" <center> <button id=\"button1\" onClick=\"cut()\">¼ôÇÐ </button> <button id=\"button2\">¸´ÖÆ <\/button> ......
var str="reguser_do.asp?psw_value="+obj.value+"®id_value="+obj.id+"&ac_name="+ajax
ÎÒÕâÑùÁ¬½ÓÄÄÀï´íÁË£¿ÎªÊ²Ã´ÒªÕâÑùд£¿
ûÓдíÎó£¬Ö»ÊÇajaxÊǸöʲô±äÁ¿£ ......