Boinger Window
JavaScriptSource Staff Jun 7, 2001
Launches a popup window that continually switches back and forth between two settable sizes. The cycle time and location are settable and may switch back and forth in the timing cycle. Cool!
Launch
The JavaScript Source: Miscellaneous: Boinger Window
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!
The JavaScript Source: Miscellaneous: Boinger Popup Page
Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Command-s). The script is yours!!!
<!-- TWO STEPS TO INSTALL BOINGER POPUP:
1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: David Sosnowski (support@codebelly.com) -->
<!-- Web Site: http://www.codebelly.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://www.javascriptsource.com -->
<!-- Begin
// Copyright 2001 by www.CodeBelly.com
// Do *not* remove this notice.
// If you want the popup window to maintain focus, add this
// onblur event to the body tag or the popup page:
// <body onblur="self.focus()">
// Set the variables, as indicated below:
// Set dimensions and positions for the two window states.
var SmallSizeWidth = 200;
var SmallSizeHeight = 200;
var SmallSizeX = 100;
var SmallSizeY = 100;
var LargeSizeWidth = 400;
var LargeSizeHeight = 200;
var LargeSizeX = 100;
var LargeSizeY = 100;
// Set to Small or Large for the starting state.
var whichSize = "Small";
// Set the speed for the changes (milliseconds).
var speed = 1500;
// Do not edit below this line.
// ============================
var bV = parseInt(navigator.appVersion)
var t = null;
function GrowShrink(){
if (bV >= 4){
if (whichSize == "Small"){
self.resizeTo(LargeSizeWidth,LargeSizeHeight);
self.moveTo(LargeSizeX,LargeSizeY);
whichSize = "Large";
}else{
self.resizeTo(SmallSizeWidth,SmallSizeHeight);
self.moveTo(SmallSizeX,SmallSizeY);
whichSize = "Small";
}
t=setTimeout('GrowShrink()', speed);
}}
GrowShrink();
// End -->
</script>
</HEAD>
<!-- STEP TWO: Copy this code into the BODY of your HTML document -->
<BODY>
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.94 KB --> Did you use this script? Do you like this site? Please link to us!
Leave a Response
(0 comments)