Home > Questions and Answers > General Questions

Landing Page re-sizer (8)


07-13-2011 08:43 PM #1 mikes30911 ()
Landing Page re-sizer

Is there a landing page re-sizer available? I want to test a page but need to re size it to fit the proper dimensions.

Thanks


07-13-2011 08:57 PM #2 bbrock32 (Administrator)

Just put this on the top of your page :

Code:
<script type="text/javascript">

function getfocused(){
	window.moveTo(0,0);
	window.resizeTo(screen.availWidth,screen.availHeight);
	window.focus();
}
	
</script>


07-13-2011 08:59 PM #3 mikes30911 ()

thats it? i just copy that where before which tag? the Head tag? I dont have to edit the code with the proper dimensions?


07-13-2011 09:10 PM #4 bbrock32 (Administrator)

That code is for full screen and you have to but it right after the <body> tag.

To resize to specific dimensions here is the code :

Code:
<script type="text/javascript">

function getfocused(){
	window.moveTo(0,0);
	window.resizeTo(1024,768);
	window.focus();
}
	
</script>
Change 1024 and 768 to whatever values you want.


07-13-2011 09:48 PM #5 machete ()

Are you allowed to resize the lander once it pops on Lead Impact?


07-13-2011 10:06 PM #6 driv (Member)

Quote Originally Posted by machete View Post
Are you allowed to resize the lander once it pops on Lead Impact?
No. (i learned this the hard way). But you can resize onclick to whatever you want.


07-13-2011 11:17 PM #7 greentrack (Member)

@driv

How can you resize after click? Is there a specific code for that? and where to include it?


07-14-2011 12:30 AM #8 chase (Member)

Code:
<script language="JavaScript">
window.onclick = maxWindow;

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<screen.availHeight||top.window.outerWidth<screen.availWidth)
  {
    top.window.outerHeight = screen.availHeight;
    top.window.outerWidth = screen.availWidth;
  }
}
}

</script>


Home > Questions and Answers > General Questions