»
EnglishFrenchVietnamese

Print - Animated Window Opener II - JavaScriptBank.com

Full version: jsB@nk » Browser » Window » Animated Window Opener II
URL: https://www.javascriptbank.com/animated-window-opener-ii.html

Animated Window Opener II © JavaScriptBank.comInstead of just spawning a window, this JavaScript animates it into view, by expanding it horizontally then vertically until it fills the screen. The animation is fast enough to not become tedious, and the corresponding links are easily set up.

Full version: jsB@nk » Browser » Window » Animated Window Opener II
URL: https://www.javascriptbank.com/animated-window-opener-ii.html



JavaScript
<SCRIPT language=JavaScript><!-- Begin// Animated Window- By Rizwan Chand ([email protected])// Modified by DD for NS compatibility// Visit http://www.dynamicdrive.com for this scriptfunction expandingWindow(website) {var windowprops='width=100,height=100,scrollbars=yes,status=yes,resizable=yes'var heightspeed = 2; // vertical scrolling speed (higher = slower)var widthspeed = 7;  // horizontal scrolling speed (higher = slower)var leftdist = 10;    // distance to left edge of windowvar topdist = 10;     // distance to top edge of windowif (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {var winwidth = window.screen.availWidth - leftdist;var winheight = window.screen.availHeight - topdist;var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)sizer.resizeTo("1", sizeheight);for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)sizer.resizeTo(sizewidth, sizeheight);sizer.location = website;}elsewindow.open(website,'mywindow');}//  End --></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<a href="#" onClick="expandingWindow('popup_content.html');return false">JavaScriptBank.com example popup</a><br><input type="button" value="JavaScriptBank.com example popup" onClick="expandingWindow('popup_content.html')"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->