Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 01-31-2002, 05:34 AM
Registered User
 
Join Date: Jan 2002
Location: Esk, Queensland, Australia
Posts: 33
Question frames

Hi, I've set my site up with frames:
http://www.users.bigpond.com/nannynap/
which i've done because I like the idea of having a menu always visible - but if someone comes into my site on a page other than the index - they don't get the frame - and therefore don't get the menu - is there a way around this - is there a better way? I do really like the idea of having a constant frame for navigation - I hate scrolling around trying to find menus.
Regards,
Kieran
Reply With Quote

  #2 (permalink)  
Old 01-31-2002, 06:06 AM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
To get you started, here's a little JavaScript

Code:
<script language="JavaScript">
<!--
if (top.location == self.location) {
top.location = "http://www.users.bigpond.com/nannynap";
}
//-->
</script>
Place that between <head> and </head> on each of your pages and try it out.

What you could do now is rewrite the JavaScript so it always load the page someone went to without your frameset inside the frame. The people won't loose track of where they are now. (Ahem, web-usability...) But I won't tell now.

We have some tutorials on HTMLcenter that tell you the usage of location in JavaScript. Try it out, if you encounter any problems, feel free to ask.

_till
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 01:39 AM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter