我想使用超鏈接調用特定的div
。這裏是我的代碼:如何使用html超鏈接調用特定的div
<div id="mainNavPane">
<ul id="sideSubNav">
<li><a href="#" class="prim">Individuals</a></li>
<li><a href="#" class="view">Individuals1</a></li>
</ul>
</div>
<div id="mainScrollPane">
<!-- 1-5 -->
<div id="homeScreen" class="screen">
<div class="arrowLeft" style="width:50px;"><a class="prev"><img src="../images/btn-ArrowPrev.gif"/></a></div>
<img src="images/bg-HomeScreen.jpg" height=50px width=50px />
<div class="arrowRight" style="width:50px;"><a class="next"><img src="../images/btn-ArrowNext.gif" /></a></div>
</div>
<!-- 5-10 -->
<div id="IndividualsScreen" class="screen">
<h2>Individuals using Breaking Free Online</h2>
<div class="arrowLeft" style="width:50px;"><a class="prev"><img src="../images/btn-ArrowPrev.gif" /></a></div>
<div class="screenBody" style="width:460px;">
<ul>
<li>If you are struggling to control your drinking or use of drugs, Breaking Free Online
offers you treatment that is immediate, confidential and effective – even if your
dependence is severe and has been for a long time </li>
<li>You can take advantage of the treatment at home or anywhere with an internet connection,
and at the times that are most convenient for you, because it is available online
24 hours a day </li>
</ul>
</div>
<div class="arrowRight" style="width:50px;"><a class="next"><img src="../images/btnArrowNext.gif" /></a></div>
</div>
</div>
我想顯示div id = individualscreen
當點擊超鏈接<a href="#" class="prim">Individuals</a>
同樣,當<a href="#" class="view">Individuals1</a>
應顯示div id=homescreen
你想擁有'div'隱藏的開始,然後當它顯示你點擊鏈接,或者你只是想讓頁面跳到'div'當你點擊鏈接? – Town 2011-05-09 10:45:24