Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2013-08-07, 11:47 AM   #1
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,929
WHat code do i need to break out of thehun's frame?

Since all the nastydollar paysites seem to break out of frames (including the hun's one) and don't take your affiliate code with them so all sales go to their own wallet.

So this is what I want to do:

The surfer clicks my sponsor link -> he gets taken to a page on my server that does the following: break out of the frame an redirects to the sponsor's paysite.

I tried this code and it works but it makes it very hard to get back to thehun's site

Code:
<script type="text/javascript">
	<!--
		if (top.location!= self.location) {
			top.location = self.location.href
		}
	//-->
	window.location = "http://www.pure18.com/main.htm?id=smilin&p=clean&cmp=104gals";
</script>
__________________
See how I abuse little trees on my Shumi no Bonsai Blog

Last edited by Fonz; 2013-08-07 at 12:07 PM..
Fonz is offline   Reply With Quote
Old 2013-08-07, 12:06 PM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Might not get past The Hun's bot and if it does it may get you banned but here you go.

Put this in your head section.

Code:
<SCRIPT LANGUAGE="java-script>
<!--
if (window != top) top.location.href = location.href;
// -->
</SCRIPT>
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2013-08-07, 12:09 PM   #3
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,929
Thanks cleo, I adjusted my origional post. I want to do the breakout after the surfer clicks a sponsor link.
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz is offline   Reply With Quote
Old 2013-08-07, 12:15 PM   #4
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Add this to your link

target="_top"
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2013-08-07, 02:48 PM   #5
Fonz
Former pr0n slinger.
 
Fonz's Avatar
 
Join Date: Aug 2003
Location: Antwerp, Belgium
Posts: 7,929
Yeah sure, make me look stupid...

Damn that was easy, no wonder I never became a programmer
__________________
See how I abuse little trees on my Shumi no Bonsai Blog
Fonz is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:50 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc