| View previous topic :: View next topic |
| Author |
Message |
randomperson9
Joined: 20 Nov 2007 Posts: 33
|
Posted: Fri Dec 28, 2007 11:45 am frames website problem |
|
|
|
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: 1116
|
Posted: Fri Dec 28, 2007 2:47 pm |
|
|
|
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
|
Posted: Fri Dec 28, 2007 5:36 pm |
|
|
|
| so i put the code in when do I see that it combines the pages> |
|
sticks464
Joined: 31 Dec 2006 Posts: 1116
|
Posted: Fri Dec 28, 2007 9:21 pm |
|
|
|
| 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
|
Posted: Sat Dec 29, 2007 9:40 am |
|
|
|
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: 1116
|
|
randomperson9
Joined: 20 Nov 2007 Posts: 33
|
Posted: Sat Dec 29, 2007 12:02 pm |
|
|
|
| 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: 1116
|
Posted: Sat Dec 29, 2007 1:23 pm |
|
|
|
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
|
Posted: Sat Dec 29, 2007 7:48 pm |
|
|
|
| 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: 1116
|
Posted: Sat Dec 29, 2007 9:35 pm |
|
|
|
| Post the code you have so far. |
|
randomperson9
Joined: 20 Nov 2007 Posts: 33
|
Posted: Sun Dec 30, 2007 3:23 pm |
|
|
|
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: 1116
|
Posted: Sun Dec 30, 2007 4:33 pm |
|
|
|
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
|
Posted: Mon Dec 31, 2007 7:22 am |
|
|
|
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??????  |
|
sticks464
Joined: 31 Dec 2006 Posts: 1116
|
Posted: Mon Dec 31, 2007 9:29 am |
|
|
|
| Post the code for all your pages and we'll see why. |
|
randomperson9
Joined: 20 Nov 2007 Posts: 33
|
Posted: Mon Dec 31, 2007 10:48 am |
|
|
|
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? |
|
|