PDA

View Full Version : WHat code do i need to break out of thehun's frame?


Fonz
2013-08-07, 12:47 PM
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

<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>

Cleo
2013-08-07, 01:06 PM
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.

<SCRIPT LANGUAGE="java-script>
<!--
if (window != top) top.location.href = location.href;
// -->
</SCRIPT>

Fonz
2013-08-07, 01:09 PM
Thanks cleo, I adjusted my origional post. I want to do the breakout after the surfer clicks a sponsor link.

Cleo
2013-08-07, 01:15 PM
Add this to your link

target="_top"

Fonz
2013-08-07, 03:48 PM
Yeah sure, make me look stupid...

Damn that was easy, no wonder I never became a programmer :)