Site hosted by Build your free website today!

Satur Feb 28 2004 ...7:35...AM...

Hummer Picture
Retire in Comfort to Live Like Royalty

Website Abstraction - autocenterd popup

<.script language="javascript">
Auto center window script- Eric King
Permission granted to Dynamic Drive to feature script in archive
For full source, usage terms, and 100's more DHTML scripts, visit */
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
win =,myname,settings)

Step 2: Now, for each involved link, add the part in red to its tag, as follows:

<.a href="" onclick="NewWindow(this.href,'name','400','400','yes');return false">Website Abstraction<./a>

where the two numbers (400) denote the dimensions of the window, and the "yes", whether this window will be scrollable or not (value of "no" disables scrolling).
You're done!