Java Scripts. A Flying Pop up window

 


* 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

 


 

 

Mister Pop up


and his windows
 Presents:
 

*

Enter in this webpage and...
A little flying window pops up!

Java Scripts on Pop up windows.

HOME

More Web Page Tricks
with Java scripts

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()">



</body>
</html>

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
(see sample HTML document)

------------------

You can change the values on red of the variables.
Change the value of the variable
(var popwindowURL="url.htm")
where the pink letters are for the
URL of your webpage or the URL of the website that you want to Pop uP.


I you want to Pop uP one of your webpages, remember to put it en the same folder or directory where your html is going to be.

 

-------------------)0(--------------

banner

 

Menu

On click Popup Mouse over and Pop Up Leave the web Page pops up Enter to a web Page and Popup
A popup for impact messages List of links in a pop up lock Visitors in your Web Site. External link in a popup

Cool back grounds

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