...

View Full Version : menu appear like frames



esthera
05-28-2007, 10:40 AM
is there anyway I can make my left menu on my page appear like a frame but not be an actual frame.
I'd like it that each time i click on the menu I don't need to reload the menu but the rest of the page.

SouthwaterDave
05-28-2007, 11:21 AM
Use an IFRAME. See http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_iframe for an example.

esthera
05-28-2007, 11:55 AM
yes i know of iframes but then how can I make each link just open in the rest of the document? would i have to use 2 iframes with the target?

anyway without frames or iframes?

koyama
05-28-2007, 03:24 PM
anyway without frames or iframes?
Basically, use position: fixed together with overflow: auto.

IE6 does not support position: fixed, so you'll need some trickery to get it working in that browser: 'position:fixed' in Internet Explorer (http://annevankesteren.nl/test/examples/ie/position-fixed.html)

VIPStephan
05-28-2007, 04:35 PM
I'd like it that each time i click on the menu I don't need to reload the menu but the rest of the page.

If you really want this without any kind of frame you would need AJAX. Or, to explain it more simple: You would use JavaScript to make a http request only for the content section.

An easier implementation would be if you just put your entire site in one HTML document and give each section that is supposed to represent a page its own ID and then you use JavaScript to hide the other pages when one page is visible. And once you click on a link (internal link that would usually make the page jump to the respective section) you make that section visible and hide the former one. I think this website (http://www.ermanz.govt.nz/news-events/archives/presentations/semantichtml.html) is built like that.
However, thatís only suitable for smaller websites with not too much content.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum