RE: window.open
by Klaas De Waele <klaas(at)gracegraphics.be>
|
| Date: |
Wed, 30 May 2001 16:57:41 +0200 |
| To: |
"'David.Artiss(at)boots.co.uk'" <David.Artiss(at)boots.co.uk> |
| Cc: |
"'hwg-techniques(at)hwg.org'" <hwg-techniques(at)hwg.org> |
| |
todo: View
Thread,
Original
|
|
David,
the onload resize I suggested works. At least in IE. Netscape probably
not, but you can there use the self.innerwidth and innerheight functions I
believe. Here's the source code.
call test.htm::::
<.html>
<.head>
<.title>Nieuwe pagina 1<./title>
<.script LANGUAGE="Javascript">
var popup_window = null;
function popup(url) {
var popup = open(url, "Catch", "width=550,height=60");
popup_window = popup;
}
<./script>
<./head>
<.body onload="popup('popunder.html')">
<.p>popup<./p>
<./body>
<./html>
call popunder.html::::
<.html>
<.head>
<.title>Nieuwe pagina 1<./title>
<./head>
<.body>
<.script language="javascript">
varwidth = 500
varheight = 60
//resize the window
self.resizeTo(varwidth,varheight);
//and even move to the screen center
self.moveTo((screen.width/2) - (varwidth/2), (screen.height/2) -
(varheight/2))
<./script>
<.p>yes baby<./p>
<./body>
<./html>
Netscape is a no-go if you try this one straight on, Mozilla is okay though.
Down to the DOM probably...
- Kayjey -
-----Oorspronkelijk bericht-----
Van: David.Artiss(at)boots.co.uk [mailto:David.Artiss(at)boots.co.uk]
Verzonden: woensdag 30 mei 2001 17:31
Aan: Klaas De Waele
Onderwerp: RE: window.open
I use the following code...
window.open('popunder.html','','toolbar=0,location=0,status=0,menubar=0,scro
llbars=0,resizable=0,width=510,height=60');
Klaas De Waele <klaas(at)gracegraphics.be> on 30/05/2001 14:21:41
To: David Artiss/IS/GB/BTC/TBC@BTC, "'HWG Techniques'"
<hwg-techniques(at)hwg.org>
cc:
Subject: RE: window.open
Send source files to me.
-----Oorspronkelijk bericht-----
Van: owner-hwg-techniques(at)hwg.org
[mailto:owner-hwg-techniques(at)hwg.org]Namens David Artiss
Verzonden: zaterdag 26 mei 2001 10:25
Aan: HWG Techniques
Onderwerp: Re: window.open
Thanks for the answers :o)
I'm actually trying it under IE and not Netscape, but if it helps what =
I'm trying to do is to put a banner in a window. The banner is only 60 =
in height but I cannot get a window to perfectly fit it - it always =
seems to be at least 100 in height and therefore has a lot of dead space =
below it.=20
I've seen, I think it was Yahoo, generate a pop-up of this type and they =
managed to get the banner to snugly fit so I'm sure it's just something =
obvious I'm doing wrong. And I've tried all the parameters on the image =
- removing any space around the image - as well as the page margins on =
the BODY but that didn't help either.
Thanks,
David.
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.