Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

javascript help

Thread Tools
 
Search this Thread
 
Old 11 November 2002, 05:11 PM
  #1  
Markus
Scooby Regular
Thread Starter
 
Markus's Avatar
 
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes on 0 Posts
Post

ok am playing around with layout of my website

I love the menu system I have, tis very nice, but I want a change, and considering going to a more classic framed look and feel, very 90's I know

my current problem is, if I want to put a link, on here for example, to say;
http://www.markuswarren.co.uk/cars/pictures/movit.html then I would not get frames, which would contain the new menu system.

So, anyone got and javascript code that would detect if there were frames present and if not, create the frames, and load the menu in one and the originating page in the other.

hope this makes sense.
Old 11 November 2002, 05:51 PM
  #2  
Dream Weaver
Scooby Regular
 
Dream Weaver's Avatar
 
Join Date: Feb 2000
Location: Lancashire
Posts: 9,844
Received 0 Likes on 0 Posts
Post

<SCRIPT LANGUAGE="JavaScript">
<!--
if (top == self) self.location.href = "INSERT HOMEPAGE HERE";
// -->
</SCRIPT>

This would take them back to the homepage if they came in out of frames.
Old 11 November 2002, 06:06 PM
  #3  
Markus
Scooby Regular
Thread Starter
 
Markus's Avatar
 
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes on 0 Posts
Post

cool.

Any way to get it to work out what the page was they came in on, and load that into say the 'main' frame?

not asking much am I!
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
StickyMicky
Computer & Technology Related
3
22 May 2004 03:02 PM
CodeKey@Lisan
Computer & Technology Related
11
20 February 2004 05:23 PM
RichB
Computer & Technology Related
2
05 November 2003 02:27 PM



Quick Reply: javascript help



All times are GMT +1. The time now is 04:26 AM.