Closed Thread Icon

Topic awaiting preservation: Question on window.open() (Page 1 of 1) Pages that link to <a href="http://ozoneasylum.com/backlink?for=9060" title="Pages that link to Topic awaiting preservation: Question on window.open() (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Question on window.open() <span class="small">(Page 1 of 1)</span>\

 
Suho1004
Maniac (V) Inmate

From: Seoul, Korea
Insane since: Apr 2002

posted posted 04-02-2004 12:23

OK, it's been a while since I've tried messing around with JS, and I've got me a question. Is it possible to open up a new window using window.open() that has document margin and padding values set to 0? I would like to do this because I want to just load an image (not an html page) in a pop-up, and I'd like to get rid of the default margin/padding.

I suspect that the answer is "No," but I figure it can't hurt to ask, especially when there are so many people here who understand these things far better than I.


___________________________
Suho: www.liminality.org

InI
Paranoid (IV) Mad Scientist

From: Somewhere over the rainbow
Insane since: Mar 2001

posted posted 04-02-2004 12:36

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.

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 04-02-2004 20:58

I think krets uses a modified version of the one I wrote. I have recently made some mods to it myself and you can see the latest on that flower site of Wella's in the gallery... http://www.theflowerbuds.com/

For that version, I load the css file for the site and add some padding because I wanted the images overlayed against the backround of the site. But just take a look at the code and it should be pretty obvious where to set those values to zero.



. . : DHTML Slice Puzzle : . . . : Justice 4 Pat Richard : . .

Suho1004
Maniac (V) Inmate

From: Seoul, Korea
Insane since: Apr 2002

posted posted 04-03-2004 04:59

Ah, thanks guys. I knew you'd come through.

I'll take a look at the code when I get the chance... this is a bit of a "back burner" project for me at the moment, considering my workload. I will let you know how it works out, though.


___________________________
Suho: www.liminality.org

Suho1004
Maniac (V) Inmate

From: Seoul, Korea
Insane since: Apr 2002

posted posted 04-17-2004 04:17

Well, it only took me two weeks to sit down and pound out the code. Much thanks to the advice from InI and Bugs. I used Bugs' JS code as a model for my own script, which you can now see in action (just start clicking on the photos).

I've had one tester look at it so far, and besides a few minor (and likely browser-specific) quirks, it seems to work reasonably well. For some reason, Netscape 6 ignores my no scrollbar directive for the horizontally-oriented windows. Rather than try to figure out why this is and hack around it, I decided to just make all the windows resizable, so if you get scrollbars, you can just resize until they disappear. Firefox also seems to add a small clickable area beneath the photo itself--I have no idea why.

I can live with minor quirks like that, though, as long as it works.

Thanks again for the help. You guys are da bomb.

[Edit: Oh, if you do happen to notice any fatal flaws, I'd of course like to hear about them]

(Edited by Suho1004 on 04-16-2004 19:18)

« BackwardsOnwards »

Show Forum Drop Down Menu