Click to See Complete Forum and Search --> : Frame sets and linking


modifier_guy
04-25-2004, 07:13 PM
ok i am develeping a site to sell items.

now i want to have a frame on the left, that displays the product and a link, and when you lcik say paint, i want it to laod in the right side of the page. now i am reading my book but it isnt to clear on how to link frames and stuff. does anyone have a basic 2 frame site and how to link them?

rhsunderground
04-25-2004, 11:05 PM
many people here frown upon frames, but here's what you need to get started anyway:
for the index.html page:

<html><head></head>
<frameset cols="250,*">
<frame name="links" src="linkspage.html" frameborder="0">
<frame name="main" src="main.html" frameborder="0">
</frameset>
</html>

for the links page :

<html><head></head>
<body>
<a href="product1.html" target="main">product 1</a><br>
<a href="product2.html" target="main">product 2</a><br>
<a href="product3.html" target="main">product 3</a><br>
<a href="product4.html" target="main">product 4</a><br>
</body></html>

modifier_guy
04-26-2004, 12:23 AM
thanks,

i figured frames would be easy for what i need, if there is a better way i am all open

modifier_guy
04-26-2004, 01:26 AM
is there a better way to link to items? see i need a side menu, and when you click on a link, then it opens the page on the right side leaving the menu. it makes it easy for people to nav that way. easier way then frames

or if i use frames, now i am confised with the above code.

do i make an page liek products.html then make a page links.html. and then link it or what.

wwwhttp://detailmaster.com/Merchant2/merchant.mvc?Screen=CTGY&Store_Code=detailmaster&Category_Code=DM-Flocking
theres an example of what i want

jdavia
04-26-2004, 01:35 AM
You can make your first page with the menu on the left, and rename it to all your other pages. This way all pages will show the same menu. Then add different data in each page. they will look exactly as frames but are not, and ou will be better off.
If you must have frames, it would be because you want more than two frames in a window.

modifier_guy
04-26-2004, 09:46 AM
last night i was thinking on how to do this, and thought , exactly what jdavia said. something so easy could be mind racking! thanks i got it

PhillMc
04-26-2004, 01:28 PM
If you are selling items on this site, then frames are a bad idea. Either go with jdavia's suggestion, or use a DIV/CSS layout with ServerSide Includes; either way would be much better than using frames. :)