alesspunk
06-27-2007, 05:26 PM
1) Script Title: Auto center window script- Eric King
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/autocenter.htm
3) Describe problem: Is opening two windows. One in the target self of windows and the other is the center popup. (Problem only in IE7).
What can i do for only open the center popup window?
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
onclick="NewWindow(this.href,'name','936','620','no');return false"
thanks for any suggestions!
regards!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/autocenter.htm
3) Describe problem: Is opening two windows. One in the target self of windows and the other is the center popup. (Problem only in IE7).
What can i do for only open the center popup window?
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
onclick="NewWindow(this.href,'name','936','620','no');return false"
thanks for any suggestions!
regards!