|
Posted by patrick j on 10/30/06 10:40
On Mon, 30 Oct 2006 07:24:42 +0000, richard wrote
(in article <ei49ip02o8n@news2.newsguy.com>):
> I'm thinking of a simple 2 division page on which the top division is a
> menu.
> The 2nd division is an iframe which changes depending on the menu choice.
> I know there is a way to do it and hopefully without javascript.
> Just need to brush up on how to do it properly. Who's got a sample for me?
It's very easy to do.
However i|Frames and indeed Frames in general are considered to be
rather old school these days.
All you do is give the iFrame a name in the iFrame element, then when
you link to the file to "supply" the iFrame put the iFrame's name as
the target.
Here's the lnk:
<a href="thelinkedfile.html" target="nameofiframe">linked text</a>
So obviously you have one of these links for each of the files you are
planning on having as a possibility to fill the iFrame.
And now the iFrame:
<iframe src="defaultiframesupplyfile.html" name="nameofiframe"
width="500" height="500" frameborder="0"></iframe>
In the iFrame you'll see "defaultiframesupplyfile.html", this is to be
the path and filename of the file which fills the iFrame when no link
has been clicked. You'll see frameboard="0" this can be set to 0 or 1.
This is to turn off or on the iFrame boarder. It is more often turned
off these days.
--
Patrick
Brighton, UK
<http://www.patrickjames.me.uk>
Navigation:
[Reply to this message]
|