Rebuilding frames around orphaned pages
Example: www.mysite.com/index.html displays my site?s home page with a top frame (banner), left frame (navigation), mainframe (content). If the search engine link is to www.mysite.com/otherpage.html it displays the page outside of the frames. I want otherpage.html to appear wrapped in its proper frameset.
How can I get these pages to build a frame around themselves? Does this make sense? Sorry to be so wordy ;-)
You probably won't like this suggestion;), but one work-around is to abandon frames and use tables to create a "framed look" on each of your pages.
Welcome to Webmaster World [webmasterworld.com].
Next you need a simple 'frame buster script' (again, Google it). It simply says that if this page is not in a frame or not in the frame it's supposed to be, then put it in the correct frame. You'll have to write a couple of extra lines of js to get this to work with the dynamic frameset but if I was able to do it, any one can. Get to know the ins and outs of the dynamic frameset first, then incorporate the frame buster script on each of your pages.
Hope this helps,
Look under message #21 --- Force Many Pages Into Frames
with one simple script"
Nice tedster. The Netscape and other versions start really beefed up. Anybody can start with your version and build on it as needed. Very elegant.
Thanks for your help, tedster.
Forgive me for being such a novice.
Your script works very well except for one thing. I have three frames: top for the banner, left for the navigation, and the content frame.
I can get your script to display only the left frame and the content frame:
How do I modifiy your script to make it display all three frames?