|
<script language=javascript>
//### array setup - leave this alone
var pURL = new Array();
var pName = new Array();
var pPos = new Array();
var pDelay = new Array();
var pHeight = new Array();
var pWidth = new Array();
//### configure your popups here
//### URLs of the Popup Windows you can add as many as you want
//### start with [0] and increment up by one ([1], [2], etc...)
pURL[0] = "http://www.address1.com";
pURL[1] = "http://www.address2.com";
pURL[2] = "http://www.address3.com";
pURL[3] = "http://www.address4.com";
//### Name of the Popup Windows. If you choose the same name, it will
//### load in the same window. If you add URLs above you must add
//### corresponding name below
pName[0] = "pop1";
pName[1] = "pop2";
pName[2] = "pop3";
pName[3] = "pop4";
//### Height of popup
//### If you add URLs above you must add corresponding height in pixels below
pHeight[0] = "200";
pHeight[1] = "500";
pHeight[2] = "800";
pHeight[3] = "300";
//### Width of popup
//### If you add URLs above you must add corresponding width in pixels below
pWidth[0] = "600";
pWidth[2] = "700";
pWidth[3] = "300";
//###position of popup. Options: center, random, base (0,0)
//### If you add URLs above you must add corresponding position below
pPos[0] = "center"
pPos[1] = "random"
pPos[2] = "random"
pPos[3] = "base"
//### seconds that will lapse before window pops up
//### If you add URLs above you must add corresponding delay below
pDelay[0] = "5";
pDelay[1] = "10";
pDelay[2] = "15";
pDelay[3] = "20";
//<--- don't edit any code below --->//
var win=null;
function OpenWindow(url,id,w,h,scroll,pos,t,l){
if(pos=="random"){
Left=Math.floor(Math.random()*(screen.width-w));
Top=Math.floor(Math.random()*((screen.height-h)-75));
}
if(pos=="center"){
Left=(screen.width-w)/2;
Top=(screen.height-h)/2;
}
if(pos=="base"){
Left=0;
Top=0;
}
if(pos=="absolute"){
Left=t;
Top=l;
}
set='width='+w+',height='+h+',top='+Top+',left='+Left+',scrollbars='+scroll+'
,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
mywin=window.open(url,id,set);
mywin.focus();
}
for(var npop in pURL){
var st="OpenWindow('"+pURL[npop]+"','"+pName[npop]+"',"+pWidth[npop]+",
"+pHeight[npop]+",'yes','"+pPos[npop]+"',0,0)";
setTimeout(st,pDelay[npop]*1000);
}
</script>
|