Home > Paid Traffic Sources > POP / PPV / Redirect

Direct Linking + Resize On Click Within Same Window (3)


08-27-2012 03:42 PM #1 aimaffair (Member)
Direct Linking + Resize On Click Within Same Window

Hi,

I have used the search button but can't seem to find an answer to my problem.

I'm trying to prepare a simple submit for direct linking on LI. I'm going to use a bait and switch to get around exit popups on offers.

I need the popup to display the iframed offer, although when a user clicks within the popup I want the page to resize to full window.

Please can someone tell me where I'm going wrong, as it just doesn't seem to work.

Here is what I have so far:

Code:
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title>Offer Title</title>
</head>
<body>
<iframe
 src="http://offer.com"
 name="myInlineFrame" target="_self" onclick="maxWindow()"
 frameborder="0" height="600" scrolling="auto"
 width="780"></iframe>
<br>
<script language="JavaScript">
function maxWindow() {
window.moveTo(0, 0);
if (document.all) {
top.window.resizeTo(screen.availWidth, screen.availHeight);
}
else if (document.layers || document.getElementById) {
if (top.window.outerHeight &lt; screen.availHeight ||
top.window.outerWidth &lt; screen.availWidth) {
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
}
</script>
</body>
</html>


08-27-2012 04:24 PM #2 Crispee (Member)

to maximize window after clicking

Quote Originally Posted by bbrock32 View Post

HTML Code:
<html>
<head>
	<script language="JavaScript">
		function maximizeme(){
			window.moveTo(0, 0);
			window.resizeTo(screen.width, screen.height)
		}
	</script>
</head>
<body>
	<a href="javascript:onclick=maximizeme()">Maximize</a>
</body>
</html>
thread: http://stmforum.com/forum/showthread...ll+page+window


08-28-2012 11:34 PM #3 zkyclear (Member)

Should we do this? I think LI doesn't allow to do this.


Home > Paid Traffic Sources > POP / PPV / Redirect