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 Previous  1, 2
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame
View previous topic :: View next topic  
Author Message
sticks464



Joined: 31 Dec 2006
Posts: 993

PostPosted: Mon Dec 31, 2007 12:20 pm     Reply with quote

My bad. The index page should be
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 cols="30%,*" border="no">
   <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>


Notice the s on the col. Border="no" is for no border between frames.
randomperson9



Joined: 20 Nov 2007
Posts: 32

PostPosted: Mon Dec 31, 2007 4:46 pm     Reply with quote

It works! thank you!

Just one more thing to add a header I would just have to do this as the code> I think i got it! .<frame src="header.html" scrolling="no" marginheight="0" marginwidth="10" noresize="noresize" name="header" /> I think I got it! Very Happy Very Happy Very Happy Very Happy
sticks464



Joined: 31 Dec 2006
Posts: 993

PostPosted: Mon Dec 31, 2007 7:03 pm     Reply with quote

Great! Your index page should look something 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 rows="90,*">
   <<frame src="filename.html" scrolling="no" marginheight="0" noresize="noresize" name="logo" />
<frameset cols="30%,*" border="no">
   <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>
<frameset>
</html>
randomperson9



Joined: 20 Nov 2007
Posts: 32

PostPosted: Wed Jan 02, 2008 12:54 pm     Reply with quote

my header is not working do you know what is wrong? here is the code. of the header page.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<body background="">
<title><title>
sticks464



Joined: 31 Dec 2006
Posts: 993

PostPosted: Wed Jan 02, 2008 1:38 pm     Reply with quote

You might try putting in some content and closing the tags
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title><title>
</head>
<body style="background:#fff;">
Content here
</body>
</html

There is no element background in html.
randomperson9



Joined: 20 Nov 2007
Posts: 32

PostPosted: Fri Jan 04, 2008 7:13 am     Reply with quote

kk the code you gave me did nodt work somehow when I typed text Iwanted in the header page and saved it it did not show up on the index.
sticks464



Joined: 31 Dec 2006
Posts: 993

PostPosted: Fri Jan 04, 2008 7:43 am     Reply with quote

<frame src="filename.html" />
Make sure the file name and path are correct for the page you want to open.

I ckecked this code and it works perfectly with or without the source files.
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 rows="90,*" border="no">
   <frame src="filename.html" scrolling="no" marginheight="0" noresize="noresize" name="logo" />
<frameset cols="30%,*" border="no">
   <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>
<frameset>
</html>
randomperson9



Joined: 20 Nov 2007
Posts: 32

PostPosted: Fri Jan 04, 2008 9:07 am     Reply with quote

the header.html is not working I typed words in and pressed save and it would not show up on the index page. the index page is right. here is the header page.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title><title>
</head>
<body style="background:#fff;">
HI I rock
</body>
</html

the i rock was to see if it would work.

the index does work.
sticks464



Joined: 31 Dec 2006
Posts: 993

PostPosted: Fri Jan 04, 2008 10:28 am     Reply with quote

Try setting the content to the size of the logo frame

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title><title>
</head>
<body style="background:#fff;">
<div style="height:90px">
<p>HI I rock</p>
</div>
</body>
</html

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 rows="90,*" border="no">
   <frame src="header.html" scrolling="no" marginheight="0" noresize="noresize" name="logo" />
<frameset cols="30%,*" border="no">
   <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>
<frameset>
</html>
randomperson9



Joined: 20 Nov 2007
Posts: 32

PostPosted: Fri Jan 04, 2008 11:00 am     Reply with quote

hmmm.. nothing... it works when I put a backround there but it does not work when I put text there
randomperson9



Joined: 20 Nov 2007
Posts: 32

PostPosted: Fri Jan 04, 2008 11:16 am     Reply with quote

Never mind I fixed the problem myself (somehow.) Thanks for your help!
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> HTML Frame All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 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