One or two weeks ago, I asked here for iframing just a little box of a site to which I have no control over (simple cpa landing page). This is for example helful for email/zip submits. The problem is that you do not have the right to scroll another site. I thought I saw a solution around here but I couldn't/can't find it and I didn't get a satisfying answer...so I had to try different things. To cut a long story short, here is my solution:
mysite.html:
blabla.html:
You need to have 2 pages because you are not allowed to scroll the aff-page, you can only scroll your own page. So we simply put the aff-page in our second page which we scroll to the email/zip submit or whatever. To change the scrolling, just change this:
to whatever you like (the numbers).
Due to different user setting such as dpi, browser etc etc you need to make it dynamic (with php for example).
PS: Use instead of linking directly to the aff-landing-page, a double meta-refresh, so the referer is blank.
Thanks are appreciated
mysite.html:
Code:
<html>
<head>
</head>
<body>
<iframe src="blabla.html" frameborder="0" scrolling="no" width="200" height="200"></iframe>
</body>
</html>
blabla.html:
Code:
<html>
<head>
<script type='text/javascript'>
function scroll() {
window.scrollTo(300,200);
}
</script>
</head>
<body onload='scroll()'>
<iframe src="http://www.aff-page.de/" frameborder="0" scrolling="no" width="1280" height="1024"></iframe>
</body>
</html>
You need to have 2 pages because you are not allowed to scroll the aff-page, you can only scroll your own page. So we simply put the aff-page in our second page which we scroll to the email/zip submit or whatever. To change the scrolling, just change this:
Code:
window.scrollTo([B]300[/B],[B]200[/B]);
Due to different user setting such as dpi, browser etc etc you need to make it dynamic (with php for example).
PS: Use instead of linking directly to the aff-landing-page, a double meta-refresh, so the referer is blank.
Thanks are appreciated