Closed Thread Icon

Preserved Topic: centering pop ups... Pages that link to <a href="https://ozoneasylum.com/backlink?for=18491" title="Pages that link to Preserved Topic: centering pop ups..." rel="nofollow" >Preserved Topic: centering pop ups...\

 
Author Thread
Fig
Paranoid (IV) Mad Scientist

From: Houston, TX, USA
Insane since: Apr 2000

posted posted 10-31-2001 18:08

*chris wanders into foreign territory*

Ok code peoples, I'm very out of my element so, um, help

I'm finishing up my portfolio site and have it launching into a pop up window. I got the following piece of code from someone on another board:

<!-- Begin
function NewWindow1() {
var page = "photoshow.html";
var NewWindow = null;
var winleft = ((screen.width-596)/2);
var wintop = ((screen.height-380)/2);
if(NewWindow)
{
NewWindow.close();
}
windowprops = 'height=1,width=1,top="wintop",left="winleft",scrollbars=no,toolbars=no,location=no'
+ 'statusbar=no,resizable=no,menubars=no fullscreen=1';
NewWindow=window.open(page, "PopUp", windowprops);
NewWindow.resizeTo(599,300);
NewWindow.moveBy(winleft, wintop);
if(javascript_version > 1.0)
{
//delay here because IE4 encounters errors
//when trying to focus a recently opened window
setTimeout('NewWindow.focus();',1000);
}
}
// End Script -->

I've configged this to size the window to 600x340 (my desired size) and removed the fullscreen=1 so the window isn't chromeless. However, two things are occurring:

1. in IE my window needs to be bigger to fit my content, the bottom is getting cut off. Looks like it needs to be about 600x370 to account for the top bar of the browser, is there a standard measurement for this?
2. it pops up a cute little 404x40 or window in Netscape

Page is here if anyone wants to look: http://www.kairosinteractive.com/tangentoriented/index_new2.html

Any and all help appreciated, thanks.

Chris


KAIROSinteractive

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-31-2001 18:15

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

Fig
Paranoid (IV) Mad Scientist

From: Houston, TX, USA
Insane since: Apr 2000

posted posted 10-31-2001 18:32

Awesome, works great, thanks a bunch

Could I get someone out there to try this on their mac browsers and see how it works? I've got it working here in PC IE and Netscape 4.7.
http://www.kairosinteractive.com/tangentoriented/index_new2.html

Thanks

Chris


KAIROSinteractive

Dracusis
Maniac (V) Inmate

From: Brisbane, Australia
Insane since: Apr 2001

posted posted 10-31-2001 19:12

Fig, 404

InI, I'm sure there's a reason for this so I have to ask...

NewWindow.resizeTo(599,300); ?? Why not just open the window at that size ??

Fig
Paranoid (IV) Mad Scientist

From: Houston, TX, USA
Insane since: Apr 2000

posted posted 10-31-2001 19:25

Doh, sorry, uploaded it to the actual page:
http://www.kairosinteractive.com/tangentoriented/

Chris


KAIROSinteractive

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 10-31-2001 19:29

The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.

« BackwardsOnwards »

Show Forum Drop Down Menu