»
EnglishFrenchVietnamese

Print - Expading Vertical Window - JavaScriptBank.com

Full version: jsB@nk » Browser » Window » Expading Vertical Window
URL: https://www.javascriptbank.com/expading-vertical-window.html

Expading Vertical Window © JavaScriptBank.comAdd the option of allowing links on your page to be opened in a new window with this powerful script. This JavaScript will open a new window with increasing size.

Full version: jsB@nk » Browser » Window » Expading Vertical Window
URL: https://www.javascriptbank.com/expading-vertical-window.html



JavaScript
<SCRIPT>function copyrightIntro(url){ if (!document.layers&&!document.all&&!document.getElementById)  {   paramstp="height=580,width=796,top=0,left=0,scrollbars=yes,location=no"+   ",directories=no,status=no,menubar=no,toolbar=no,resizable=yes"   var crw=window.open(url,"",paramstp);   if (crw.focus){crw.focus();}   return;  } var winwidth=300; var winheight=100; var winreswidth=window.screen.availWidth; var winresheight=window.screen.availHeight; var LeftPosition=(winreswidth-winwidth)/2; var TopPosition=winresheight-winheight/2; var paramstr="left="+LeftPosition+",top="+TopPosition+",width="+winwidth+              ",height="+winheight+",toolbar=no,menubar=no,location=no,"+              "status=no,scrollbars=yes,resizable=yes"; var crw=open(url,"",paramstr); crw.resizeBy(0,-40); var resspeed=100; var wspeed=winreswidth/resspeed; var hspeed=winresheight/resspeed; var x=wspeed;  while (x) {  crw.resizeBy(x,0);  winwidth+=x;  LeftPosition=(winreswidth-winwidth)/2;  TopPosition-=wspeed;  if (LeftPosition<0) LeftPosition=0;  if (TopPosition<0) TopPosition=0;  crw.moveTo(LeftPosition,TopPosition);  if (winwidth>=winreswidth) x=0; } crw.moveTo(0,0);  var y=hspeed; winheight=50; while(y) {  crw.resizeBy(0,y);  winheight+=y;  if (winheight>=winresheight) y=0; } crw.resizeTo(winreswidth,winresheight); if (crw.focus){crw.focus();}}</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<INPUT onclick="copyrightIntro('jsbankpopup.htm')" type=button value="Effect 1"> *** <INPUT onclick="copyrightIntro('jsbankpopup.htm')" type=button value="Effect 2"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->