Results 1 to 5 of 5
Related
-
How to display div layer over the frames in a page Forum: HTML Forum
Replies: 3 -
How to pevent uer from returning to page using back button ? Forum: CGI Perl Forum
Replies: 1 -
Frames page scrollbar issues Forum: HTML Forum
Replies: 1 -
Remove frames and put everything in one page. Forum: HTML Forum
Replies: 2 -
Frames...that scroll with main page but don't disappear Forum: HTML Forum
Replies: 1
-
01-20-2004, 12:18 PM #1
HELP: Referring Back to FRAMES Page..
Greetings!
I have created a website for a client that uses frames. The frames are _HEADER, _MENU (left side) and _MAIN
What the client has done is used various services around the web to link their pages to search engines. Therefore, when someone searches for, say, "PRODUCTA" they will get a link to the webpage "products.html".
The problem that arises, however, is that when a web surfer clicks on this link, they get just the products.html page, but are missing the _HEADER and _MENU frames, which are needed for navigation and company information.
How would I go about doing this? Is there some code that I put into each page that will check for the frames page and reload the web if it's not there? Is there a way to specify the website and the html page to load in _MAIN via URL?
Any tips or suggestions would be greatly appreciated.
Thanks,
Mike
-
01-20-2004, 12:31 PM #2
http://www.usc.edu/uscweb/authoring/frameload.html
-
01-20-2004, 12:38 PM #3
Enigma,
Perfect! Thank you kindly....
Mike
Originally Posted by Enigma
-
01-20-2004, 02:29 PM #4
Originally Posted by luca143
-
01-04-2005, 11:00 PM #5
Hi,
I have been trying to get different htnk codes to work for over a year now so that our frames work correctly when accessed from outside our site. I can not seem to get the hang of it. We know that we have several pages that have been picked up by search engines and we need to add the code to them so that the frames are included.
We have three frames, the top one is called banner, the left one is called menu and the right one is called view.
Per the link above, we have added a page called fr_index.html and put this code on it:
<HTML>
<HEAD>
<TITLE>Parent Frameset</TITLE>
</HEAD>
<BODY><HTML>
<HEAD> <TITLE>Parent Frameset</title></HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Hide from non-javascript browsers
document.write('<FRAMESET ROWS="90,*" FRAMEBORDER="NO" FRAMESPACING="0" BORDER="0">');
document.write('<FRAME SRC="../banner.htm" NAME="banner" SCROLLING="NO" NORESIZE="NORESIZE"
FRAMEBORDER="0" MARGINWIDTH="0" MARGINHEIGHT="0">');
document.write('<FRAME SRC="' + location.search.substring(1) + '" NAME="body">');
document.write('</FRAMESET>');
//-->
</SCRIPT>
</body>
</HTML>
The we took one of our individual pages that is located at www.studiodirectcosmetics.com/products/accessories.htm and added this code to it:
<SCRIPT LANGUAGE="JavaScript">
<!--
function framecheck()
{var parentframe = 'fr_index.html';
if (parent.location.href == self.location.href)
{var current = window.self.location.pathname;
window.location.replace (parentframe + '?' + current);
}
};
//-->
</SCRIPT>
</HEAD>
<BODY onLoad="framecheck()">
As you can see when you cut and paste the page, it does not work correctly. Our main page is at www.studiodirectcosmetics.com . If you open our main page and then click the upper right hand photo that says Selections, you will find the pages that we need to add this code to.
I really, really appreciate any help.
Thank you very much,
Joyce