View Full Version : Links, frames, and combos thereof?
Bekariso
11-20-1998, 05:48 PM
There are probably quick and easy answers to these questions, at least I hope there are.
Please let me know!
1) How do I link to a page that uses frames so that I get the combination of frames that I want to link to, not the "homepage" or whatever comes up in my location box or if I try to bookmark it. Though I don't like frames and will probably never use them myself, I know enough of the general theory of how they work to guess that I have to look at the source codes and combine the various filenames somehow in the link URL?
2) How do I make one of those "break out of frames" links for if someone follows a link to my page from a page that has frames, so that I don't have someone else's directory down the side of my page?
Thanks!
Bekariso
1. With Netscape you can right click on the page you want to link to and click "Open in new window" I think IE requires a plugin or something for that feature. I do not believe you can link to a particular area of a frame page... which is many times the reason they do that.... I usually link directly to the page containing the info and bypass the frame altogether... It's the site owners obligation to make sure all of their pages offer links back to their home page and no-frame options.. many times we fail to do this but that's our loss http://www.aota.net/ubb//wink.gif
2. Add the following code to all of your non-framed pages... between the <HEAD> and </HEAD> tags, once you do this 99% of the people who come to your page will NOT be able to view it from within a frame.. it will automagically pull itself out of the frame and take up the entire browser to itself http://www.aota.net/ubb//smile.gif
<SCRIPT LANGUAGE="Javascript" type="text/javascript">
<!--//
top.location.target="_top"
if(window.location.target!="_top"){
top.location.href=window.location.href
}
//-->
</SCRIPT>
Hope this helps,
Deb
pqwabbit
11-20-1998, 08:15 PM
just have to say that one thing I really abhor about frams is I don know where the fudge I am cuz the same stupid url shows in the location box no matter what link you click on *sigh* drives me nutty - like going no where fast ehhehe
that netscape open frame in new window feature rocks
Lea
Bekariso
11-20-1998, 08:32 PM
Thanks!
I knew about the Open-in-new-window feature -- I have to use it daily! I've just noticed that at some frame sites, a really huge URL shows up every time we change one of the frames, with www.domain.com in there a few times, like it's some code with all the pages URL's mixed together. I was wondering if us personal-homepage-building plebs could figure out that code and use it to like to where we want. If not, okey then, I will carry on linking to only the frame I want.
As for the break out of frame code -- Yikes! It's JavaScript! Scary! When we had our old 9.8-in-bad-weather modem and only 8 mg ram, every time we saw "Starting Java" at the bottom the screen, the puter would crash. Hasn't happened lately, but we're still wary of it. I've notice that many pages now have an actual "click here" link to reload the page without frames. Though I may be brave and try the Java, I'd also like to know how that works, just for the knowledge. I know, duh, find a page that has it and look at their code. Well, it's one of those things that when you want to see one, you never do . . . oh well.
Thanks again!
Faith
First things first http://www.aota.net/ubb//smile.gif
Java and Javascript are two totally different things... it sounds like you are probably confusing Java with Javascript.
The above code I have given you is Javascript NOT Java...
Now how does it work?
Well how does your browser handle the FutureQuest home page? Or DHearts.org? or SUSOGI.net? Or Lils.net?
Cuz ummm I use that lil piece of Javascript ALL OVER the place http://www.aota.net/ubb//wink.gif
If you can find or create a page that links to dhearts.org or FQuest from within a frame you will see how it handles it.
Enjoy
Deb
Bekariso
11-20-1998, 08:59 PM
Well, that goes to show how much I know about Java and Javascript! I haven't had much trouble with any of your sites, so I guess I'll go ahead and trust it on mine!
BTW, sent you an ICQ a bit ago, did you get it?
Faith
My ICQ is only turned on once a day now... and/or if a 'meeting/need' has been pre-arranged. :-(
I've found it difficult to keep on schedule with all I have going on to leave ICQ on. My ICQ user list had gained over a 100 entries and over the last month I've had to start denying permission to add me....
Feel free to hit my EMail box though http://www.aota.net/ubb//wink.gif
Deb
Sandy
11-20-1998, 11:32 PM
I just use <a href="http://your url here" TARGET=_top>your "break out of frames message here"</a>
Not sure if that's what you were asking but that will leave a link to click if someone arrives at your site through someone's frames
if that's not what you were asking..umm sorry LOL
Bekariso
11-21-1998, 11:52 AM
Hi Sandy!
Yes, I think that's the link thing I was originally asking about. I'm going to try Deb's lil Javascript thing, but it's good to know how the other type works, too, even if to pass along to others.
Hi Deb!
Will keep that in mind for your ICQ. Didn't have a mail window open at the time, and as it was only a few lines of thought, I thought ICQ would be the quickest way. I will email it, no problem.
Thank you both!
Bekariso
vBulletin® v3.6.8, Copyright ©2000-2008, Jelsoft Enterprises Ltd.