You are here: Re: frames question « HTML « IT news, forums, messages
Re: frames question

Posted by Chris Beall on 01/22/24 11:38

scully wrote:
> I need to build a sitemap for a site 30 or so content pages within 4
> different framesets.
> is it possible to link to a specific page and have it load within its
> correct frameset??
> if so how?
> thanks in advance
> scul

scul,

No.

However, if the following (which I 'borrowed' from someone else's site),
is placed in the head section of each content page (with appropriate
tailoring of the 'dingbase' variable) it will cause the page to
immediately reload within the specified frame.

<script type="text/javascript" LANGUAGE="Javascript">
var dingbase = "right_frames.html";
if (self == top) {
top.location.replace(dingbase + this.location.hash);
}
</SCRIPT>

Your sitemap link would then point to the content page. When the
content page loaded, it would reload itself inside the specified frame.
Also, any search engine links to the content page would get the same result.

Note that this will work only if the user has JavaScript enabled.

This post should not be construed as an endorsement for the use of frames...

Chris Beall

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация