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 Nov 11, 2002 | 05:11 PM
  #1  
Markus's Avatar
Markus
Thread Starter
Scooby Regular
25 Year Member
 
Joined: Mar 1999
Posts: 25,080
Likes: 0
From: The Great White North
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.
Reply
Old Nov 11, 2002 | 05:51 PM
  #2  
Dream Weaver's Avatar
Dream Weaver
Scooby Regular
25 Year Member
Liked
 
Joined: Feb 2000
Posts: 9,846
Likes: 4
From: Lancashire
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.
Reply
Old Nov 11, 2002 | 06:06 PM
  #3  
Markus's Avatar
Markus
Thread Starter
Scooby Regular
25 Year Member
 
Joined: Mar 1999
Posts: 25,080
Likes: 0
From: The Great White North
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!
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
StickyMicky
Computer & Technology Related
3
May 22, 2004 03:02 PM
CodeKey@Lisan
Computer & Technology Related
11
Feb 20, 2004 05:23 PM
RichB
Computer & Technology Related
2
Nov 5, 2003 02:27 PM




All times are GMT +1. The time now is 01:21 PM.