A popup window when enter a web page

Mister Popup and his windows  Presents:

Enter to a web Page and... Popup!

Scripts and javascripts

Tricks with scripts Java scripts for popup windows

Home

Visit
MasterDiz.com
For more scripts

A script for a window that pops up when you enter to the web page

El Mago
Tricks with scripts
For webpages

 

banner

 

Where to paste the Script Sample html document Instructions Menu

<html>

<head>

<SCRIPT>
// CREDITS:
// Dirty Popup by Urs Dudli and Peter Gehrig
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
//////////////////////////////////////////////////////////////////
// CONFIGURATION STARTS HERE
//////////////////////////////////////////////////////////////////

// the URL of the webpage that will be displayed in the popupwindow
var popupurl="
menu.htm"

// the width of the popup-window (pixels)
var popupwidth=
400

// the height of the popup-window (pixels)
var popupheight=
300

// Configure here how many popups shall appear before the script stops
// creating new ones
// ATTENTION: a high number might crash the PC of your visitors
var maximumpopups=10

//////////////////////////////////////////////////////////////////
// CONFIGURATION ENDS HERE
//////////////////////////////////////////////////////////////////

// do not edit the code below this line
var countpopups=0
var ns6=document.getElementById&&!document.all?1:0
var ie=document.all?1:0

function startpopup() {
if (ns6 || ie) {
countpopups=0
var popuptop=Math.floor(400*Math.random())
var popupleft=Math.floor(600*Math.random())
window.open(popupurl, "", "toolbar=no,width=
"+popupwidth+",height="+popupheight+",top=
"+popuptop+",left="+popupleft+"");
}
}

function openpopup() {
if (countpopups<maximumpopups && (ns6 || ie)) {
for (i=0;i<=1;i++) {
var popuptop=Math.floor(400*Math.random())
var popupleft=Math.floor(600*Math.random())
window.open(popupurl, "", "scrollbars=
yes,toolbar=no,width="+popupwidth+",height=
"+popupheight+",top="+popuptop+",left=
"+popupleft+"");countpopups++
}
}
}
window.onload=startpopup
</SCRIPT>

 

</head>

<body >

 

</body>
</html>


 

The popup window script is with blue letters;
Select all the script (in blue), copy it and paste it between
<head> HERE </head> tags;

You have to configure the url with orange letters with the url of the web page you want in the popup window;
If the url is a external web site then start it with: "http://";

Other configuration is the size of the popup window and that is on green numbers:
 

and the other is if you want scroll bars in the popup window then put yes or not where the pink letters are.

Please remember to leave the credits.

-----------*0*-----------

 

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

Links

 

 


 

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 Mister Popup