Forum Moderators: open
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 ;-)
Thanks.
Cloudthumper
Welcome to Webmaster World [webmasterworld.com].
yep, orphaned pages are a problem when using frames. I used to use a two-part solution. One was a 'dynamic frameset' where javascript built the frameset on the fly. This had the advantage of being able to use one frameset for each section of my site and be able to load any page I wanted to into it using a variable in the url, something like domain.com/main-frame.htm?content=blue-widget.htm. You can make these scripts almost as flexible as you'd like with as many frames dynamic (head, toc, content, etc), but I hard-coded the head and toc frames to keep the urls fairly short and manageable. Dyamic frameset script come in a lot of flavors, I used the one from Netscape. A quick Google search will pull up quite a handful, you should be able to find one to fit your needs.
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,
Jim
Look under message #21 ---
"Force Many Pages Into Frames
with one simple script"
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?
Thanks again.
Cloudthumper