Usefull JavaScripts

Animated Window Opener

Opens a secondary window that expands to cover the entire screen before loading the specified document into it.... detail


How to setup

Step 1: Use JavaScript code below to setup the script
JavaScript
Code:
<SCRIPT>
<!--
function coolIntro()
{
 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 gwa=window.open("newwind.html","",paramstp);
   if (gwa.focus){gwa.focus();}
   return;
  }
 var movespeed=200;
 var resizespeed=100;
 var winreswidth=window.screen.availWidth;
 var winresheight=window.screen.availHeight;
 var leftspeed=winreswidth/movespeed;
 var topspeed=winresheight/movespeed;
 var movewidth=winreswidth;
 var moveheight=winresheight;
 var widthspeed=winreswidth/resizespeed;
 var heightspeed=winresheight/resizespeed;
 var sizewidth=0;
 var sizeheight=0;
 var gwa=open("popup_content.html","","left="+winreswidth+",top="+winresheight+",width=100,height=100,toolbar=no,menubar=no,location=no,status=no,scrollbars=yes,resizable=yes");
 for (move=0;move<movespeed;move++)
  {
   gwa.moveTo(movewidth,moveheight);
   movewidth-=leftspeed;
   moveheight-=topspeed;
  }
 gwa.moveTo("0","0");

 for (size=0;size<resizespeed;size++)
  {
   gwa.resizeTo(sizewidth,sizeheight);
   sizewidth+=widthspeed;
   sizeheight+=heightspeed;
  }
 gwa.resizeTo(winreswidth,winresheight);
 if (gwa.focus){gwa.focus();}
}
// -->
</SCRIPT>
	<!--
    	This script downloaded from www.JavaScriptBank.com
    	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
	-->
Step 2: Place HTML below in your BODY section
HTML
Code:
<input type=button onclick="coolIntro()" value="Run it">
	<!--
    	This script downloaded from www.JavaScriptBank.com
    	Come to view and download over 2000+ free javascript at www.JavaScriptBank.com
	-->
Quote Originally Posted by Copyright
The Site may provide, or third parties may provide, links to non-JavaScriptBank.com Internet World Wide Web sites or resources. Because JavaScriptBank.com has no control over such sites and resources, you acknowledge and agree that JavaScriptBank.com is not responsible for the availability of such external sites or resources, and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. You further acknowledge and agree that JavaScriptBank.com shall not be responsible or liable, directly or indirectly, for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods or services available on or through any such site or resource.