0

hello friends
i am building my first website,i want that the other pages should open in the home page itself,i mean to say that when i click on the menu only the content of the home page change not the other page should open,many website has thi kind of feature....
please any1 help...!!

6
Contributors
5
Replies
6
Views
5 Years
Discussion Span
Last Post by sheikhali449
0

You can use FRAMES like this website, designed way back in 1997...
http://vzone.virgin.net/sizzling.jalfrezi/iniframe.htm

Unfortunately when I attempted to bookmark the frames tutorial, all I got was their frameset URL, which displays the homepage by default. This is one of the drawbacks of frames. There are ways around this particular problem, if your visitor has JavaScript enabled, which search engines usually don't. And then there's history navigation, but I won't go down that road. Besides, I've forgotten which road it was.

Anyway, the page served as useful tutorial when I was getting to grips with HTML 3.2, so here's a direct link for old times sake...
http://vzone.virgin.net/sizzling.jalfrezi/frames/fframes.htm

A simpler alternative and slightly more moden approach is to use a IFRAME tag, e.g.

<iframe src="http://www.example.com/" width="200" height="200" name="myframe"></iframe>

These also suffer the same drawbacks mentioned earlier.

Normally when you click on a link, the current page will get updated. If you want the contents of a frame to be updated there are a couple of things you need to do; give the target frame a name, and set it as the link target.

In the code snippet above I named the frame "myframe". Setting the target attribute of an anchor element to "myframe" would cause a click to update that frame, e.g.

<a href="http://example.com/" target="myframe">Visit example.com!</a>

It's possible to set a default target for all links on a page through the BASE tag in an HTML document's header.

Frames aren't search engine friendly. If traffic is important to your site, frames are usually best avoided unless you know exactly what you're doing ;-)

Edited by LaxLoafer: Fixed typos.

0

Build a common basic page with your menu, header and footer in place, save it, then use that as the starting point for each new page, just altering the content and saving under a new name. You are imagining that many sites have a new page open within the home page, they are just being consistent in their page design, repeating the same header and footer and menu on every page.

0

well, indeed frames were thé way to go to do something like this, years ago, but it could bring up some issues when saving a link to a page in your favorites.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.