There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Software Development
Tag Cloud
audio blue screen boot bsod computer cpu crash dell desktop driver drivers error excel external hard drive firefox freezes freezing hard drive hardware hijackthis internet internet explorer itunes laptop mac malware motherboard mouse network networking outlook 2007 power printer problem ram router screen slow sound trojan usb virus vista vista 32-bit windows windows vista windows xp winxp wireless wmp
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
HTML frames


Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
compstudent's Avatar
Junior Member with 26 posts.
 
Join Date: Aug 2003
03-Oct-2003, 01:47 AM #1
HTML frames
hi! i'm new to html and just learned the basics from a few online tutorials. i started building my very 1st html website using geocities. a plain site seems to work but when i tried to practice adding frames, the frames worked but the body/contents inside the frame didn't.

<html>
<head>
<title>title goes here</title>
</head>

<frameset cols="15%, 25%">
<frame src="left.htm" name="menu">
<frame src="right.htm" name="main">
</frameset>
<noframes>
</noframes>
<body>anything goes</body>
</html>

my questions:

1) do i really need to include <noframes></noframes>?
2) do i need to open a new file for the contents and a separate file for making frames?
3) how can i put 2 different bgcolor for each frame?
4) how can i put the contents inside the frames? i mean where will i insert the codes?

some tutorials are easy to understand but putting the contents inside the frame confuses me.

please help!


thanks!

Last edited by compstudent : 03-Oct-2003 01:57 AM.
Squashman's Avatar
Distinguished Member with 12,741 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
03-Oct-2003, 02:57 AM #2
You put your content in the frames. You need to put your code in the left.htm and right.htm files.
Squashman's Avatar
Distinguished Member with 12,741 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
03-Oct-2003, 03:01 AM #3
Here is what I did for one site that I created.

<!--create two row wise frames-->


<!--make the first row a static logo, and the second the body of the page-->

<frameset rows="60,*" frameborder=no>
<frame name="maintop" src="button.html" TITLE="Navigation Bar" marginwidth=0 marginheight=0 scrolling="no" LONGDESC="n
avigatepurpose.txt">


<frame name="mainbottom" src="main.shtml" TITLE="Frame Changed by Navigation Bar" LONGDESC="contentpurpose.txt">
</frameset>

<noframes>
<body>
<ul>
<li><a href="button.html" title="Top of the framed site">Navigation Bar For Framed Site</a></li>
<li><a href="main.shtml" title="Bottom of the framed site">Bottom Frame That Changes By Top Frame</a></li>
</ul>
</body>
</noframes>
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
Squashman's Avatar
Distinguished Member with 12,741 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
03-Oct-2003, 03:08 AM #4
So basically what I have there is Two Frames. A top frame (button.html) and a bottom frame (main.shtml). If the browser does not support frames it will create two links on a web page to the html files that make up the frames.

You need to move your Body tags inside the No Frame tags so something will show up if the browser does not support frames.

Put some code into your left.htm and right.htm files.
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
compstudent's Avatar
Junior Member with 26 posts.
 
Join Date: Aug 2003
03-Oct-2003, 03:22 AM #5
thanks for ur reply LwdSquashman!

where did you place the codes for the content of your frames? did you make a new page for that? i like to color my frames but i don't know where to place the codes. where will i insert the bgcolor and text in this codes? please explain more. thank you again.

<html>
<head><title></title>
</head>

<frameset cols="15%, 25%">
<frame src="left.htm" name="menu">
<frame src="right.htm" name="main">
</frameset>
<noframes>
</noframes>
<body>anything goes</body>
</html>
Squashman's Avatar
Distinguished Member with 12,741 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
03-Oct-2003, 03:26 AM #6
Quote:
Originally posted by compstudent:
thanks for ur reply LwdSquashman!

where did you place the codes for the content of your frames

<frame src="left.htm" name="menu">
<frame src="right.htm" name="main">
You are declaring that right there. You are telling your index.html file to display these two files as your frames. That is why I said to put some code into your left.htm and right.htm files. Treat them just like regular html files. You need HTML, HEAD and BODY tags in those files as well.

Background color is always defined in the BODY tag.
<body bgcolor="red">
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
Squashman's Avatar
Distinguished Member with 12,741 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
03-Oct-2003, 03:27 AM #7
Here is the website I designed

http://gbsps.freeshell.org

It is two frames with several tables.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:18 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.