* GeoCities*
Thanks for every thing you gave us for years, a lot of satisfactions.
We are going to miss you, you are the best.
MasterDiz.com
* |
Java Scripts on Pop up windows. |
HOME |
More Web Page Tricks |
Tutorial | More Scripts at: |
| Sample HTML Document | This is the Script | Instructions |
| <html> <head> <title> </title> <script> // CREDITS <!-- Beginning of JavaScript - var popwindow var popwindowwidth=200 var popwindowheight=150 var popwindowtop=20 var popwindowURL="mypopup.htm" var waitingtime=4 var pause=20 var step=40 var popwindowleft=-popwindowwidth-50 var marginright var pagecenter var timer waitingtime= waitingtime*1000 function showWindow() { popwindow = window.open (popwindowURL, "popwindow", "toolbar=no, width="+popwindowwidth+ ",height="+popwindowheight+", top="+popwindowtop+ ",left="+(-popwindowwidth)+""); if (document.all) { marginright = screen.width+50 } if (document.layers) { marginright = screen.width+50 } pagecenter=Math.floor(marginright/2)- Math.floor(popwindowwidth/2) movewindow() } function movewindow() { if (popwindowleft<=pagecenter) { popwindow.moveTo(popwindowleft, popwindowtop) popwindowleft+=step timer= setTimeout("movewindow()",pause) } else { clearTimeout(timer) timer= setTimeout("movewindow2()", waitingtime) } } function movewindow2() { if (popwindowleft<=marginright) { popwindow.moveTo(popwindowleft, popwindowtop) popwindowleft+=step timer= setTimeout("movewindow2()",pause) } else { clearTimeout(timer) popwindow.close() } } // --> </script> </head> <body onLoad="showWindow()">
|
This is the first part of the Script. Put the mouse cursor over the box, Sellect all, copy and past it in your HTML document. This is the second part of the Script. Put the mouse cursor over the box, Sellect all, copy and past it in your HTML document. |
Put the mouse
cursor over the box of the first part of the script;
Sellect all, copy and past it in your HTML document between the <head>and</head> tags. ----------------- Put the mouse cursor over the box of the second part
of the Script;
Sellect all, copy and past it in your HTML document Inside the <body here > tag ------------------ You can change the values on red of the variables.
-------------------)0(-------------- banner |
Menu
links
here
DISCLAIMER |
For more scripts visit: www.24fun.com |
Most scripts listed are either public domain or freeware unless otherwise stated. While most scripts are submitted to us, some have been found in public script libraries. If we are in error, please tell us and we will either remove the script or update the author data accordingly. Proof of copyright must be submitted to us. Authors may or may not be mentioned with or without link depending on author's wishes. Unless otherwise stated, all scripts are freeware and therefore free to use provided you leave any copyright message as is.
If you are the owner of any image, script, program or information displayed in this website and you want it to be remove, and we'll remove it immediatly. Thanks.
MISTER POPUP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE // SOFTWARE, SCRIPTS OR ANY OTHER IN THIS WEBSITE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED // WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR // NON-INFRINGEMENT. MISTER POPUP SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY // USER AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR // ITS DERIVATIVES.
All graphics and scripts are Copyright of their own authors and we don't claim their Copyright
copyright © 2004~2005 Mister Popup