![]() | It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!) |

|
|
|
|
<html>
<head>
<title>Popups</title>
<script type="text/javascript">
var x=300;
var y=200;
var numWindows = 0;
function updateXY(newx,newy)
{
x = newx;
y = newy;
alert(x + " x " + newy);
}
function openPopup(address)
{
open(address, 'testing'+numWindows, 'left=' + x + ',top=' + y + ',resizable=0,scrollbars=1,width=400,height=400');
numWindows++;
}
</script>
</head>
<body>
<input type=button name=testButton onClick="openPopup('test.html')" />
</body>
</html><html>
<head>
<title>Testing</title>
<script type="text/javascript">
var myX=0;
var myY=0;
function updatePos()
{
if (document.all) {
var x = window.screenLeft;
var y = window.screenTop;
}
else {
var x = window.screenX;
var y = window.screenY;
}
if(x!=myX || y!=myY)
{
window.opener.updateXY(x,y);
myX=x;
myY=y;
}
setTimeout("updatePos()", 5000);
}
</script>
<body onLoad="updatePos()" onUnload="updatePos()">
<h3>This is a test</h3>
</body>
</html>[size=18]var win=null;
function popMe(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+y+',left='+x+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
win=window.open(mypage,myname,settings);}[/size]Users browsing this forum: No registered users and 5 guests