View Full Version : Ahh! I have been trying to figure out frames!
:confused: This code is driving me batty! I have my frame made, and my main page made, in my notepad, and I did this once before(a year or 2 ago), and I didn't seem to have this much trouble. but now I cant get the frame to show up, I want a frame on the left of the page. Someone please help, and tell me what I am doing wrong, right now this is my coding that I have(which I seem to thing, I have it all messed up, because it didn't seem this complicated before.)
<frameset>
<frame src="frame.html"
frame name="frame"
frame marginwidth=1
frame marginheight=1
frame scrolling=auto
</frame>
</frameset>
Thanks so much, if you can help me :)
Kimi
You have it all messed up.
<frameset cols="20%,80%">
<frame src="frame.html"
name="frame"
marginwidth="1"
marginheight="1"
scrolling="auto"/>
<frame src="mainpage.html"
name="main"
marginwidth="1"
marginheight="1"
scrolling="auto"/>
</frameset>
hmm... Thanks.... It helps alot more... just now I'm stuck again... My frame is there, and in my frame, I have the background that I created for the frame, but in the main page, my background image, has now dissapeard... What happend? what do I do to fix it.. here is the codes I have so far, on my main page.
And also my "bla bla bla" text isn't showing up, and my special cursor is only working in the frames..
And How do I get my links from the frame, to open up in my mainpage window area? because right now it is making multiple frames, every time I click on the link I created in my frame.
And just so you know, my main page is index.html, and my frames is frames.html. :)
<html>
<head>
<title>mainpage
</title>
<style>
<!--
BODY{
cursor:url("cursur.cur");
}
-->
</style>
<frameset cols="20%,80%">
<frame src="frame.html"
name="frame"
marginwidth="1"
marginheight="1"
scrolling="auto"/>
<frame src="index.html"
name="index"
marginwidth="1"
marginheight="1"
scrolling="auto"/>
</frameset>
</head>
<BODY BACKGROUND="pb.jpg">
bla bla bla
</body>
</html>
No, you have to use a seperate page for the frameset. Call your index.html something like main.html, and then put in index.html:
<html>
<head>
<title>Kimi's Site</title>
</head>
<frameset cols="20%,80%">
<frame src="frame.html"
name="frame"
marginwidth="1"
marginheight="1"
scrolling="auto"/>
<frame src="main.html"
name="main"
marginwidth="1"
marginheight="1"
scrolling="auto"/>
</frameset>
</html>
:) Thanks much again! :)
I just have one more question, how do I get the link to open in my main page, and not another frame?
You can use the target= attribute of the anchor tag to define where a link will open.
<a href="page.htm" target="main">Another page</a>
thewebguy
08-29-2005, 06:17 AM
<frameset rows="16%,*" border="0">
<frame name="menu" src="menu.html">
<frame name="main" src="main.html">
<noframes>
Ignore the guy above, who just more or less repeated what I said, but neglected all the style effects you wanted, neglected the rest of the page, and for some reason used <noframes> instead of </frameset>.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.