kinda freaking out
- Started
- Last post
- 4 Responses
- linearch
site i am working on uses JS to pop up a window.
i have two monitors.
pop up works in safari...but only on one of my monitors? meaning if i drag the browser from one monitor to the other and hit enter.....the code works/does not work.
works on both in IE.
anybody know anything about this?
WTF?
- gabriel_pc0
do you have a source example? only thing I could think of off hand is that it's trying to pop the window up in a location that's off screen. are ther resolutions of the two monitors the same?
- linearch0
gab. i should have clarified this earlier. the pop ups work in both safari and in IE, just the resize function does not.
here is the JS for the pop up:
var win = null;
function NewWindow(mypage,myname,w,h,scro...
LeftPosition = (screen.width) ? parseInt((screen.width-w)/2) : 0;
TopPosition = (screen.height) ? parseInt((screen.height-h)/2) : 0;
settings =
'height='+h+',width='+w+',top...
win = window.open(mypage,myname,settin...
if(win.window.focus){win.window...
}this is cool in both
this is not:
function full_screen(){
window.moveTo(0,0)
window.resizeTo(screen.width-10...
}
- linearch0
sorry...it cut off the rest of that script at the bottom: i have it call the fullscreen function onload
- linearch0
fixed. some weird glyph in copy and paste.
thx gab.
//c