PDA

View Full Version : Designing a web page with frames


ldsnodden
05-13-2003, 05:24 PM
Hi, I am wondering how to design a web page so that the menu bar down the side uses another page. i.e. The main part would be main.htm and the menu would be menu.htm.

How do I do this?

:confused: :confused:

Mr J
05-13-2003, 05:26 PM
<HTML>
<HEAD>
<TITLE>Your Title</HEAD>

<frameset cols ="25%, 75%">

<frame src="page1.htm" name="navbar">

<frame src="page2.htm" name="main">

</frameset>

<BODY>
</BODY>
</HTML>

whackaxe
05-13-2003, 05:53 PM
also with your links in the menu you would have to use the target attribute on you links like so

<a href="somepage.html" target="main" >link!</a>
so that i t wront touch the nav bar.

ldsnodden
05-13-2003, 06:01 PM
Hi, I have changed the page 1 and page two both to codingforums.com but nothing happens?

Mr J
05-13-2003, 06:49 PM
Putting codingforum.coms in place of page1.htm and page2.htm will give you nothing.

For information on creating frames please visit

www.huntingground.freeserve.co.uk/webplus/frames/frames.htm

Also download the zip file that contains an example 2 frame frameset.

shlagish
05-14-2003, 02:01 AM
http://www.w3schools.com/html/html_frames.asp

http://hotwired.lycos.com/webmonkey/html/96/31/index3a.html

Two other links explaining frames...