Using Menu with frames one page only

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
irishis
Beginner
Beginner
Posts: 2
Joined: Mon Dec 04, 2006 4:55 pm

Using Menu with frames one page only

Post by irishis »

I have a client who has the menu in use on all their "normal" pages, but, now they want the menu on one page of their site to be a framed page. Is there a way to modify the code for one page only? Can I copy the JS files and put them in their own folder so it would only control this one page differently? Sorry I hate frames and this is just one more reason why. I was able to set it up in a frame on one page only with the scroll on the pull downs but it won't load other pages after the visitor views the framed page and wants to go back to the normal pages, everything pops into the navigation frame rather than loading a whole complete page unframed.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Using Menu with frames one page only

Post by John »

Not sure if this is what you're after (I hate frames, too!), but this will make sure that frames are wiped before loading a page...

Code: Select all

<script type="text/javascript">
if (top.frames.length!=0) top.location=self.document.location;
</script>
Needless to say, it goes in the <head> of the pages that you do not want frames on.
John
Post Reply