[php] Show/Hide 처리하기
페이지 정보
본문
<script type="text/javascript">
function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
</script>
<div id="uniquename" style="display:none;">
<p>Content goes here.</p>
</div>
<div id="uniquename" style="display:none;">
<p>Content goes here.</p>
</div>
<div id="uniquename" style="display:none;">
<p>Content goes here.</p>
</div>
<a href="javascript:ShowContent('uniquename')">
Click to show.
</a>
<a href="javascript:HideContent('uniquename')">
Click to hide.
</a>
function HideContent(d) {
document.getElementById(d).style.display = "none";
}
function ShowContent(d) {
document.getElementById(d).style.display = "block";
}
function ReverseDisplay(d) {
if(document.getElementById(d).style.display == "none") { document.getElementById(d).style.display = "block"; }
else { document.getElementById(d).style.display = "none"; }
}
</script>
<div id="uniquename" style="display:none;">
<p>Content goes here.</p>
</div>
<div id="uniquename" style="display:none;">
<p>Content goes here.</p>
</div>
<div id="uniquename" style="display:none;">
<p>Content goes here.</p>
</div>
<a href="javascript:ShowContent('uniquename')">
Click to show.
</a>
<a href="javascript:HideContent('uniquename')">
Click to hide.
</a>
추천0
관련링크
댓글목록
등록된 댓글이 없습니다.