Frame buster

liunx

Guest
I have used the construction:<br />
<br />
"<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.Your_URL_Here" TARGET = "_top" . . . ><br />
<br />
with varying degrees of success. This is supposed to be what they call a "frame buster." IOW, if the page you are on is a frame and you want the next page to pop up and float outside the frame (instead of in one of your frames) then this will do it. <br />
<br />
But it only works some of the time. I use IE 5.5 and have no problem with it. But on an older computer I have running IE 5.0 it does not work. Nothing happens when you click on the link. And people have been calling me and telling me the same thing when they are on my web site.<br />
<br />
Anybody know about this issue or how it can be resolved (other than not using this feature)?<!--content-->Hey there,<br />
I am not an expert like alot of other people around here, I am just a self taught hacker. If I understand the question right you have a page with frames and are trying to open a link to another site in a different window. If I understand this right I use <br />
"<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.Your_URL_Here" target="resource window"> <br />
<br />
Hope this helps.<br />
Jeff<!--content-->I had much the same kind of trouble, but I seem to have figured out a way to do what I think you have in mind.<br />
<br />
Read very carefully!<br />
<br />
I had to go from a frameset frame anchor thumbnail to a targeted _top window, and link from there back to the same frameset with a different page displayed in the main frame. (ie. from a frameset displaying a gallery of art, link to a larger window showing a picture of one of the pieces, and link to there to a page within the frameset showing class details).<br />
<br />
I did it by having a different frameset document for each time you had to link back into the frameset, with the new page indicating the respective page necessary in the main frame.<br />
<br />
The 'home' page is my 'index.html' page, and each subsequent page is called 'index2.html', index3.html,' etc.<br />
Is this what you had in mind? I wouldn't be surprised to see a much neater way of doing it, but I figured it out myself, and I haven't heard any complaints yet! ;)<br />
<br />
Clear as mud, eh?<!--content-->But you lost me after that initial "frameset anchor in a frame window set of anchored set frames framed" or whatever.<br />
<br />
I think I will try the above poster's idea of using "resource=" and see how that works instead.<br />
<br />
Tnx anway.<br />
<br />
p.s. Did you used to play on "Star Trek, Next Generation"? You were "Data", right? I knew it!<!--content-->Originally posted by Stinger <br />
I have used the construction:<br />
<br />
"<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.Your_URL_Here" TARGET = "_top" . . . ><br />
<br />
with varying degrees of success. This is supposed to be what they call a "frame buster." IOW, if the page you are on is a frame and you want the next page to pop up and float outside the frame (instead of in one of your frames) then this will do it. <br />
<br />
But it only works some of the time. I use IE 5.5 and have no problem with it. But on an older computer I have running IE 5.0 it does not work. Nothing happens when you click on the link. And people have been calling me and telling me the same thing when they are on my web site.<br />
<br />
Anybody know about this issue or how it can be resolved (other than not using this feature)? <br />
<br />
Are you sure that you don't have a typo in one of your links? I see no other reason why it would work in a later browser and not an earlier one (it's got a typo, but the later browser is making it work anyway). Can you post the link to your page please?<!--content-->www.pascoads.com<br />
<br />
What is the typo that you spotted, please?<!--content-->He didn't spot a typo, he just asked if there was one. And what's up with the links. Why do they turn purple after the rollover. How about after the page is visited?<!--content-->Originally posted by Stinger <br />
<!-- w --><a class="postlink" href="http://www.pascoads.com">www.pascoads.com</a><!-- w --><br />
<br />
What is the typo that you spotted, please? <br />
<br />
:confused: This is the page that you are having trouble with? This page isn't in frames :confused:<!--content-->Ok, i found the frameset page:<br />
<!-- m --><a class="postlink" href="http://www.pascoads.com/PascoAds/PascoHeader.htm">http://www.pascoads.com/PascoAds/PascoHeader.htm</a><!-- m --><br />
<br />
and the navigation page within the frameset, and I'm looking at it now:<br />
<!-- m --><a class="postlink" href="http://www.pascoads.com/PascoAds/PascoIndex.php3">http://www.pascoads.com/PascoAds/PascoIndex.php3</a><!-- m --><!--content-->So sorry, but I thought he had spotted a typo in there, which I was willing to take some input on.<br />
<br />
Now as to your request, why do the links turn a certain color, well, it's just a JScript I picked up somewhere. I think it looks nice, but I have also noticed it does not keep the "visited" link color either. I don't know how to preserve that, do you?<br />
<br />
Here is the code I use:<br />
<br />
<br />
<SCRIPT LANGUAGE="JavaScript"><br />
<br />
<!-- This script and many more are available free online at --><br />
<!-- The JavaScript Source!! <!-- m --><a class="postlink" href="http://javascript.internet.com">http://javascript.internet.com</a><!-- m --> --><br />
<br />
<!-- Begin<br />
function doColor(item, color, bg) {<br />
item.style.color = color; // changes text color<br />
item.style.backgroundColor = bg; // changes background<br />
}<br />
<br />
function undoColor(item) {<br />
item.style.color = "#800080"; // sets color back to purple<br />
item.style.backgroundColor = ""; // sets background to default<br />
}<br />
// End --><br />
</script><br />
<br />
Sorry I can't give you more than that, as I am really a C and PHP programmer, and just wanted to jazz up my web site a bit. Maybe that was not a good idea.<!--content-->Where on your page are you tryingto break out of frames?<!--content-->Sorry about that. I commented out the "frame busting" since it was not consistently working, but here is a bit of source code.<br />
<br />
<br />
<CENTER><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.weather.com/weather/local/34668" TARGET = \"_top\" onMouseOver = "window.status ='Local Weather'; return true"; onMouseOut = "window.status = ''; return true";>Local Weather</A><br />
</CENTER><br />
<br />
This link takes the viewer to ye old Weather Channel online, with the correct zip code already supplied for this area of the country. You might also notice that, since this is PHP code, that the quote marks around "_top" need the backslashes to get by the parser. The rest of the stuff is just that silly Jscript I got dinged on.<br />
<br />
Like I said, this works fine with my browser (IE 5.5) and puts the new page on top of my page. But other browsers seem to be choking on it and do nothing. So, as a fix, I took this out and now I just let the new window pop up in the right frame. Not sure why it doesn't work all the time, but I can't have my customers complaining at me.<!--content-->Do you have an example of where the output is displayed (I'd like to see the live output from it).<!--content-->Originally posted by Stinger <br />
So sorry, but I thought he had spotted a typo in there, which I was willing to take some input on.<br />
<br />
Now as to your request, why do the links turn a certain color, well, it's just a JScript I picked up somewhere. I think it looks nice, but I have also noticed it does not keep the "visited" link color either. I don't know how to preserve that, do you?<br />
<br />
Here is the code I use:<br />
<br />
<br />
<SCRIPT LANGUAGE="JavaScript"><br />
<br />
<!-- This script and many more are available free online at --><br />
<!-- The JavaScript Source!! <!-- m --><a class="postlink" href="http://javascript.internet.com">http://javascript.internet.com</a><!-- m --> --><br />
<br />
<!-- Begin<br />
function doColor(item, color, bg) {<br />
item.style.color = color; // changes text color<br />
item.style.backgroundColor = bg; // changes background<br />
}<br />
<br />
function undoColor(item) {<br />
item.style.color = "#800080"; // sets color back to purple<br />
item.style.backgroundColor = ""; // sets background to default<br />
}<br />
// End --><br />
</script><br />
<br />
Sorry I can't give you more than that, as I am really a C and PHP programmer, and just wanted to jazz up my web site a bit. Maybe that was not a good idea. <br />
<br />
It's just that the purple annoys me a little. I couldn't help you (I know my HTML, and can at least make a few changes in js, but that's about as far as it goes).<!--content-->
 
Back
Top