View Full Version : Frames...


chainwall
06-19-2003, 12:24 AM
Okay, I'm not sure if I've done this right or not. For my website on Geocities, I put the frames code into the index.html, then I created the right and left pages. I think it should be that when I go to the right.html, it should show that page with the left on the left side, right? But it's not doing that. Instead, when I click on the right, it shows ONLY what I've put in for the right, and same for the left. The only way to get my page to show is by clicking the index, then it'll show up fine. Anything I'm doing wrong here? Cause this page I'm trying to work on isn't my homepage...Thanks for any help!

JavaQueen03
06-19-2003, 01:33 AM
In Frames, you are combining 3 or more html's. You put the code on the index.html page. That page will combine the html's because it has the code to combine all of the pages. So when you view that page, it will show all of the html's only in that page. On the right.html, nothing changes. You still have the same exact code. Nothing new. So it shouldn't add all of the pages together on all three pages. It would just add them all together on the index.html page, not on the right.html.
This is how it should look:

on the page left.html
<html>
<head>
<title>
YOUR TITLE
</title>
</head>
<body>
YOUR TEXT OR LINKS GO HERE!!
</body>
</html>

on the page right.html
<html>
<head>
<title>
YOUR TITLE
</title>
</head>
<body>
YOUR MAIN BODY TEXT GOES HERE!!
</body>
</html>

on the page index.html
<html>
<head>
<title>
YOUR PAGE TITLE
</title>
</head>
<frameset cols=20%,80%>
<frame src="left.html" name="leftside">
<frame src="right.html" name="rightside">
</frameset>
<body>
</body>
<noframes>
<a href="right.html">Click Here</a>
</noframes>
</html>