javascript help
#1
Scooby Regular
Thread Starter
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes
on
0 Posts
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.
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.
#2
Scooby Regular
<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.
<!--
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.
#3
Scooby Regular
Thread Starter
Join Date: Mar 1999
Location: The Great White North
Posts: 25,080
Likes: 0
Received 0 Likes
on
0 Posts
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!
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!
Thread
Thread Starter
Forum
Replies
Last Post
CodeKey@Lisan
Computer & Technology Related
11
20 February 2004 05:23 PM
RichB
Computer & Technology Related
2
05 November 2003 02:27 PM