Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use frames.

Status
Not open for further replies.

matinjs

Programmer
Feb 2, 2009
1
Hi

I'm designing a small website which is around 10 pages. We would like to add some sort of navigation menu and some pictures on top and on the right. So that no matter which page the user is in, the top and the right portion is the same, and also the menu shows on the top just below the image. Let's forget about the menu for now.

Please let me know how I can do the frame part :) Do I have to use HTML DOM Frame object, or JavaScript to be in complaint with the new W3C standard HTML 4.1?

I'm a newbie to JavaScript or HTML, but I have a lot of programming background. There are few issues that is in my mind right now:

- How can I "keep" the top and right portion, and avoid loading them every time the user goes from one page to another?
- How should I link the pages to each other. I mean, if I use frames, how the browser would know which frame is the one that its address should go into the address bar?
- How can I make sure when some on types for example then the frames are loaded as well, and not just the content of the page alone?

Thank you
 
Hi

Excuse me for not answering your questions. I strongly believe they should be forgot instead of answered. Just give up with the frame ideas.

Read thread215-1524231 and rethink.

Feherke.
 
In your case I seriously doubt that frames are the way to go.

Embed your menus on each page in some fashion, hard codes, via javascript, PHP, or something else.

For an example how I use frames, which in my case I am dealing with over 4000 pages with hundreds of different menus, see my link below. If you had a complex site like mine, frames could possibly be a solution, but for 10 pages and one menu I seriously doubt it.

mmerlinn


"We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding. Answering questions for careless and sloppy thinkers is not rewarding." - Eric Steven Raymond
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top