Click to See Complete Forum and Search --> : Page inside a Page
ctech99
05-07-2003, 02:50 PM
I want to have another page be loaded inside my page. I've seen it before, It looks like a text box, it has a scroll bar on the side, etc. But you can click links from the main page, and they load in the page embedded in it. Get what im saying?
I made a picture, so you can get an idea of what im trying to get..
Take a look at this picture, thats what Im trying to do.
ANY help would be greatly appreciated!
http://www.clubdreamworks.com/this.gif
Thanks, Brian
Vladdy
05-07-2003, 02:59 PM
Here is the way: http://www.w3.org/TR/html4/struct/objects.html#edef-OBJECT
slimshady
05-07-2003, 03:09 PM
what you want is called an iframe
you do it like this..
place this line between the <body> and </body>
<html>
<head>
<title>yourpage</title>
</head>
<body>
<iframe src="http://www.microsoft.com" width="100" height="100"></iframe>
</body>
</html>
and there ya go
slimshady
05-07-2003, 03:17 PM
and when you want a link from 'frame1' displayed inside the iframe you do it like this..
the main page is this
index.html:
<html>
<head>
<title>framesetpage</title>
</head>
<frameset rows="50%,50%" cols="50%,50%">
<frame src="1.html">
<frame src="2.html">
<frame src="3.html">
<frame src="4.html" name="main">
</frameset>
</html>
now in 3.html you put this link:
<a href="5.html" OnClick="parent.iframename.location='yourdesiredurl'">
now 4.html looks like this:
<html>
<head>
<title>iframepage</title>
</head>
<body>
<iframe name="iframename" src="http://www.microsoft.com></iframe>
</body>
</html>
thats it
good luck with it
ctech99
05-09-2003, 08:45 AM
Thanks for your help!! This is what I made!
http://www.clubdreamworks.com/phpbb/members.php
Links on the left under "Members" link inside the iframe
Thanks again, -=Brian=-