インラインフレーム使用例
<b><a target="ifchange" href="image_zoom.html">画像の拡大</a></b> <b> <a target="ifchange" href="image_exchange.html">画像の変更</a></b> <b> <a target="ifchange" href="iframe_training.html">説明文</a></b> <p>上記テキストをクリックすると、下のフレーム内の文書が変更</p> <br> <iframe src="iframe_training.html" name="ifchange" width="500" height="500" frameBorder="1" allowTransparency="true"> </iframe> |
予め3個のHTML文書 image_zoom.htm、image_exchange.html、iframe_training を用意。テキスト文3つにそれぞれを
target="ifchange" で関係づけ、クリックでフレーム内の文書を交換する。
frameBorder="1" はフレームに枠を付ける。