點擊鏈接,切換不同的iframe

<a href= "1.html " target= "iFrame1 "> page1 </a> <br/> 
<a href= "2.html " target= "iFrame1 "> page2 </a> <br/> 
<a href= "3.html " target= "iFrame1 "> page3 </a> <br/> 
<a href= "4.html " target= "iFrame1 "> page4 </a> <br/> 
<div id= "iFrame1 " style= "position:absolute; left:220px; top:200px; z-index:18 "> 
<iframe name= "iFrame1 " width=542 height=615 src= "1.html " scrolling= "auto " frameborder= "0 "> </iframe> 

</div> 


主要是在iframe裏定義name=XXX ,然後在href裏用 target調target=XXX 。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章