HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
frames website problem
Goto page 1, 2  Next
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
randomperson9



Joined: 20 Nov 2007
Posts: 33

PostPosted: Fri Dec 28, 2007 11:45 am     frames website problem Reply with quote

I have gotten 2 books on how to create a website.I am a total begainner and finally found a book that I understand. but the website I am tryiing to create is not working. here is what I did:
these three pages the book said would combine into one to make a website page that has frames. Note: I am giving alot of info about this so i can fix the problem.

in order to make the frames I needed three pages.

here is the first page called frames.htm
<HTML>
<HEAD>
<TITLE>**********</TITLE>
</HEAD>
<BASE TARGET="MAIN">
<FRAMESET COL="30%,*">
<FRAMESET NAME="MIDDLE.HTM"
<FRAMESET NAME="SIDE.HTM"
</FRAMESET>
</HTML>

it saids I have to target other two pages by putting frameset name="middle.htm" middle.htm is another page that I I have to link to inorder to get all three of them to join in one page.

the second page middle looks like this. the second page is the page that is going

Welcome to ****** we are a brand new website . we offer an member login sytem and alot more in the future. well every website has to start somewhere right?

randomperson9
founder&Owner

Thired page looks like this:

<HTML>
<HEAD><TITLE></TITLE></HEAD>
<BODY>

<A HREF="MIDDLE.HTM"TARGET="MAIN">>WELCOME</A><BR>

wELCOME TO THE SITE.


The book said that on the first page the <FRAMESET COL="30%,*">
<FRAMESET NAME="MIDDLE.HTM"
<FRAMESET NAME="SIDE.HTM"
are used on the frames page so they can be combined into one page. these are three pages that the book said that should combine into one page. so I do not know what the problem is so could someone tell me how to make it so these pages combine into one? they are all in the same folder also. it said I should see it when I get index.htm <B>is that the frames page??????</B>
sticks464



Joined: 31 Dec 2006
Posts: 1099

PostPosted: Fri Dec 28, 2007 2:47 pm     Reply with quote

The first page is the index.htm page. It should look like this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>**********</title>
</head>
<frameset col="30%,*">
<frame src="welcome.htm" scrolling="no" marginheight="0" noresize="noresize" name="side" />
<frame src="middle.htm" scrolling="no" marginheight="0" marginwidth="10" noresize="noresize" name="main" />
</frameset>
</html>


All links that appear on the welcome.htm page should be
Code:
<a href="nameof page.htm" target="main">>WELCOME</a>


All other pages should have an html doctype.
randomperson9



Joined: 20 Nov 2007
Posts: 33

PostPosted: Fri Dec 28, 2007 5:36 pm     Reply with quote

so i put the code in when do I see that it combines the pages>
sticks464



Joined: 31 Dec 2006
Posts: 1099

PostPosted: Fri Dec 28, 2007 9:21 pm     Reply with quote

When you put in the correct name of the files for each frame you should see them when you preview with a browser. Why don't you post your code for the three pages so we can see why you can't see them.
randomperson9



Joined: 20 Nov 2007
Posts: 33

PostPosted: Sat Dec 29, 2007 9:40 am     Reply with quote

I posted the three pages but here they are again:
I followed the book on this and put all the codes I needed to put on frames, middle, and side pages

here is the first page called frames.htm
<HTML>
<HEAD>
<TITLE>**********</TITLE>
</HEAD>
<BASE TARGET="MAIN">
<FRAMESET COL="30%,*">
<FRAMESET NAME="MIDDLE.HTM"
<FRAMESET NAME="SIDE.HTM"
</FRAMESET>
</HTML>

This is the middle page the book said nothing about puting coding into it.

Welcome to ****** we are a brand new website . we offer an member login sytem and alot more in the future. well every website has to start somewhere right?

thired page looks like this the codes in the page are what the book said to put in.

Those are the codes and the pages.

<HTML>
<HEAD><TITLE></TITLE></HEAD>
<BODY>

<A HREF="MIDDLE.HTM"TARGET="MAIN">>WELCOME</A><BR>

wELCOME TO THE SITE.

so I can understand this src on the first page is the codes that are supposted to link them together? and what do I need to do in order for them to become one page? and do I have to make a index page to make this work?
sticks464



Joined: 31 Dec 2006
Posts: 1099

PostPosted: Sat Dec 29, 2007 11:30 am     Reply with quote

Try this tutorial http://www.htmlcodetutorial.com/frames/frames.html
Go thru this tutorial and you will get a better understanding of what takes place.
randomperson9



Joined: 20 Nov 2007
Posts: 33

PostPosted: Sat Dec 29, 2007 12:02 pm     Reply with quote

kk I am starting to get it more. so what it is saying I got to target the three pages. so if I put the code into the frame pages(the target code). would i have to make a index or somthing. then target all three pages?
sticks464



Joined: 31 Dec 2006
Posts: 1099

PostPosted: Sat Dec 29, 2007 1:23 pm     Reply with quote

See my earlier post, it's exactly how it is done.
The page with frameset on it is the index page and should be index.html. The other two pages, one for the left column and one for the main or middle column are what the index page is calling with the src=. These are your three pages.
randomperson9



Joined: 20 Nov 2007
Posts: 33

PostPosted: Sat Dec 29, 2007 7:48 pm     Reply with quote

I have made some progress. the index.html now shows the welcome.html page. but does not show the menu.html page. any reason why it is not showing the menu.html page? (I renamed the pages.)
sticks464



Joined: 31 Dec 2006
Posts: 1099

PostPosted: Sat Dec 29, 2007 9:35 pm     Reply with quote

Post the code you have so far.
randomperson9



Joined: 20 Nov 2007
Posts: 33

PostPosted: Sun Dec 30, 2007 3:23 pm     Reply with quote

This is the Menu.html page.
<HTML>
<HEAD><TITLE></TITLE></HEAD>
<BODY>

<A HREF="MIDDLE.HTM"TARGET="MAIN">>WELCOME</A><BR>

wELCOME TO THE SITE.

The new index.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>**********</title>
</head>
<frameset col="30%,*">
<frame src="welcome.html" scrolling="no" marginheight="0" noresize="noresize" name="welcome" />
<frame src="menu.html" scrolling="no" marginheight="0" marginwidth="10" noresize="noresize" name="menu" />
</frameset>
</html>

The welcome.html is showing up on the index that is fine.

the Menu.html is not showing up on the index anything on the menu.html page that looks wrong or not making it work?
sticks464



Joined: 31 Dec 2006
Posts: 1099

PostPosted: Sun Dec 30, 2007 4:33 pm     Reply with quote

The page that shows in the left frame should be a menu. It will remain constant.
The page that shows in the right frame should be pages that change depending which link is selected from the menu.

The index.html page should look like this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Home</title>
</head>
<frameset col="30%,*">
<frame src="menu.html" scrolling="no" marginheight="0" noresize="noresize" name="menu" />
<frame src="welcome.html" scrolling="no" marginheight="0" marginwidth="10" noresize="noresize" name="main" />
</frameset>
</html>


The page called menu.html should look like this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Menu</title>
</head>
<body>
<h2>SITE NAVIGATION</h2>
<div id="navigation">
<ul>
   <li><a href="welcome.html" target="main">WELCOME</a></li>
    <li><a href="page1.html" target="main">LINK</a></li>
    <li><a href="page2.html" target="main">LINK</a></li>
    <li><a href="page3.html" target="main">LINK</a></li>
    <li><a href="page4.html" target="main">LINK</a></li>
    <li><a href="page5.html" target="main">LINK</a></li>
</ul>
</body>
</html>



The page called welcome.html should look like this
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Welcome</title>
</head>
<body>
<div id="content">
<h2>WELCOME TO MY SITE</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque. Nunc venenatis enim nec quam.</p>
</div>
</body>
</html>


All pages except index.html will have to have styling applied to them.
randomperson9



Joined: 20 Nov 2007
Posts: 33

PostPosted: Mon Dec 31, 2007 7:22 am     Reply with quote

kk this is strange now it is only showing the menu on the index not the welcome.html page. I put all the codes you told me into the pages. why will it not show both?????? Sad
sticks464



Joined: 31 Dec 2006
Posts: 1099

PostPosted: Mon Dec 31, 2007 9:29 am     Reply with quote

Post the code for all your pages and we'll see why.
randomperson9



Joined: 20 Nov 2007
Posts: 33

PostPosted: Mon Dec 31, 2007 10:48 am     Reply with quote

I put the new codes in:

Index:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Home</title>
</head>
<frameset col="30%,*">
<frame src="menu.html" scrolling="no" marginheight="0" noresize="noresize" name="menu" />
<frame src="welcome.html" scrolling="no" marginheight="0" marginwidth="10" noresize="noresize" name="main" />
</frameset>
</html>

Menu.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Menu</title>
</head>
<body>
<h2>SITE NAVIGATION</h2>
<div id="navigation">
<ul>
<li><a href="welcome.html" target="main">WELCOME</a></li>
<li><a href="page1.html" target="main">LINK</a></li>
<li><a href="page2.html" target="main">LINK</a></li>
<li><a href="page3.html" target="main">LINK</a></li>
<li><a href="page4.html" target="main">LINK</a></li>
<li><a href="page5.html" target="main">LINK</a></li>

welcome to the site we are ......
</ul>
</body>
</html>

welcome.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Welcome</title>
</head>
<body>
<div id="content">
<h2>WELCOME TO MY SITE</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Duis ligula lorem, consequat eget, tristique nec, auctor quis, purus. Vivamus ut sem. Fusce aliquam nunc vitae purus. Aenean viverra malesuada libero. Fusce ac quam. Donec neque. Nunc venenatis enim nec quam.</p>
</div>
</body>
</html>


So from the codes why is only menu.html coming on the index page and not the welcome.html?is the scr code or somthing wrong?
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial