간단하고 사용하기 쉬운 클릭 전개 신축 효과
                                            
 10178 단어  간단하다
                    
<SCRIPT>
function openP(_id)
    {
       var select_id = parseInt(_id.replace("box",""));
       for (i=1;i<=4;i++)
       {
          if (i==select_id)
          {
              document.getElementById("box"+i).style.display = "block";
          }
          else
          {
             document.getElementById("box"+i).style.display = "none";
          }
       }
    }
</SCRIPT>   1 <a href="###" onmouseover="openP('box1')">1、 1</a>
 2 <p id="box1">
 3     box1 .
 4 </p>
 5 <p><a href="###" onmouseover="openP('box2')">2、 2</a></p>
 6 <p id="box2" style="display:none">
 7     box2 .
 8 </p>
 9 <a href="###" onmouseover="openP('box3')">3、 3</a>
10 <p id="box3" style="display:none">
11     box3 .
12 </p>
13 <p><a href="###" onmouseover="openP('box4')">4、 4</a></p>
14 <p id="box4" style="display:none">
15     box4 .
16 </p>
17 <br />
18 <p><a href="http://www.webdm.cn"> </a> -   -  !</p>  인스턴스:
function showlist (_id) {
              // 
            var aMenu = document.getElementsByClassName("menu")[0], aDt = aMenu.getElementsByTagName("dt");
            var len = aDt.length;
            var select_id = parseInt(_id.replace("month", ""));
                for (i = 1; i <= len; i++) {
                    if (i == select_id) {
                        document.getElementById("month" + i).style.display = "block";
                    }
                    else {
                        document.getElementById("month" + i).style.display = "none";
                    }
            }
            }
  호출:
<dt onmouseover="showlist('month1')"><ul class="month"><li class="w288 textLeft">3 </li><li>2</li><li>0</li><li>0</li><li>0</li><li>0</li><li>0</li><li>0</li></ul></dt>  이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
간단하고 사용하기 쉬운 클릭 전개 신축 효과인스턴스: 호출:...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.