, 당신이 그 모습을 다시 기본 자바 스크립트에서이 같은 간단한 사용 느낄 수 있었다 :
그냥 볼 수 있습니다 필요에 따라 코드를 조정을/숨겨진 변경 'display1', 'display2'등을 필요에 따라 선택합니다. 그들은 모두 독립적으로 행동하고 확장되거나 축소 된 화면에서 콘텐츠를 "푸시 (push)"합니다.
이 방법이 적합한 해결책이라면 대답으로 선택하십시오. - 감사합니다!
<script type="text/javascript">
<!--
function Show_Stuff(Click_Menu)
// Function that will swap the display/no display for
// all content within span tags
{
if (Click_Menu.style.display == "none")
{
Click_Menu.style.display = "";
}
else
{
Click_Menu.style.display = "none";
}
}
-->
</script>
<div><a href="javascript:Show_Stuff(display1)">Link #1 (Hyperlink)</a></div>
<span ID="display1" style="display: none">
<table bgcolor="#cccccc">
<tr><td width='200' wrap>
This is the table that will appear when link #1 is clicked.
You can add in a <a target="_blank" href="http://www.yahoo.com">hyperlink</a>
or any other html
</td>
</tr>
</table>
</span>
<div><a href="javascript:Show_Stuff(display2)">Link #2 (Hyperlink)</a></div>
<span ID="display2" style="display: none">
<table bgcolor="#ffcc00">
<tr><td width='200' wrap>
This is the table that will appear when link #2 is clicked.
You can add in a <a target="_blank" href="http://www.google.com">hyperlink</a>
or any other html
</td>
</tr>
</table>
</span>
정확히 원하는대로합니다. 아무도 당신을 위해 귀하의 웹 사이트를 만들 수 없습니다. 필요한 빌딩 블록입니다. – scottcarmich
이 스콧에 감사 드리며, 나를 도와주고 있습니다. 귀하의 설명과 데모 코드의 단순함에 감사드립니다. – Dave