Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Help needed in this!


Message #1 by "Chirag Shah" <chiragiit@y...> on Wed, 30 Jan 2002 17:43:55
Hello !

I know this is not the right place to post javascript questions but I got 

stuck here. I am having difficulty in centering a javascript popup window. 

It works fine in IE 5.5 in PC but displays always on top of the browser 

window in MAC IE 5.0

any help in this regards would be appreciated.

below is the code i am using

SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function popUp() {

var w = 725, h = 400;

var winl = (window.screen.width-w)/2;

var wint = (window.screen.height-h)/2;

props=window.open('index.html', 'poppage', 'toolbars=0, scrollbars=0, 

location=0, statusbars=0, menubars=0, resizable=0, width='+ w+ ', 

height='+h+', left ='+winl+', top ='+wint +' ');}

// End -->

</script>



<BODY onLoad="javascript:popUp()" > 
Message #2 by "Sidney James P. Fuerte" <fuertsj1104@y...> on Thu, 31 Jan 2002 18:11:38 +0800
Hi,



If you are subcribe to wrox Javascripts Section... search for Centering

Window, We already have discussions over this and we got some really

helpfull ideas from other programmers. The Centering Window topic that you

will get there includes the resizing problem and the monitor resulotion

change problem, both of this problem was dealt.



Thanks/Regards

Sidney



-----Original Message-----

From: Chirag Shah [mailto:chiragiit@y...]

Sent: Wednesday, January 30, 2002 5:44 PM

To: ASP Databases

Subject: [asp_databases] Help needed in this!





Hello !

I know this is not the right place to post javascript questions but I got

stuck here. I am having difficulty in centering a javascript popup window.

It works fine in IE 5.5 in PC but displays always on top of the browser

window in MAC IE 5.0

any help in this regards would be appreciated.

below is the code i am using

SCRIPT LANGUAGE="JavaScript">

<!-- Begin

function popUp() {

var w = 725, h = 400;

var winl = (window.screen.width-w)/2;

var wint = (window.screen.height-h)/2;

props=window.open('index.html', 'poppage', 'toolbars=0, scrollbars=0,

location=0, statusbars=0, menubars=0, resizable=0, width='+ w+ ',

height='+h+', left ='+winl+', top ='+wint +' ');}

// End -->

</script>



<BODY onLoad="javascript:popUp()" >




$subst('Email.Unsub').




  Return to Index