PDA

View Full Version : Interesting effect


zoobie
12-23-2002, 09:51 AM
I haven't seen many sites that had this (http://www.terra-it.com/) effect. I have now figured out how to self-close the parent cross-browser. :D

Borgtex
12-23-2002, 11:01 AM
:confused: What effect? I just see the typical fullscreen window

zoobie
12-23-2002, 07:54 PM
That's the effect. :confused:

I shall now attempt to close the parent without prompt. ;)

ez4me2c3d
12-23-2002, 08:35 PM
you can't without the browser asking if it will be ok first.

jkd
12-23-2002, 08:45 PM
Originally posted by ez4me2c3d
you can't without the browser asking if it will be ok first.

Sure you can. There was something recently disclosed that lets you do this in any browser, something simple like "opener = top" or something (I don't remember, other than it was one line).

There is also an ActiveX route for IE-only.

ConfusedOfLife
12-23-2002, 10:09 PM
I hope you could remember it jkd, I really need this one! :rolleyes:

Quiet Storm
12-23-2002, 11:11 PM
Nobody likes it when I post this... he, hee. :) Works in IE only.


<HEAD>
<!--// ## ActiveX Content ## //-->
<OBJECT id=closes type="application/x-oleobject"
classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">
<param name="Command" value="Close">
</OBJECT>
<!--// ## End ActiveX ## //-->
</HEAD>

<body onLoad="window.open
('otherWindow.html','new','fullscreen'); self.focus(); closes.Click();">

...
...
...

</body>

chrismiceli
12-23-2002, 11:48 PM
it must be ie only, i just see the window, but looking at the source, there should bu a full window. I use mozilla.

zoobie
12-24-2002, 01:07 AM
Now, for example, you want the parent to self-close leaving your fullscreen orphan child:

<script>
function fullwin(){
window.open("page.html","","fullscreen")
}
function bye() {
self.opener = this;
self.close()
}
onLoad = fullwin();
</script>
</head>
<body onload="bye()">
</body>

Sweet...:cool:

for NS4.7, IE6 with SP1, NS 6 & 7...probably IE5 too

PS - Just make sure you allow the user to close the fullscreen with a window.close(); connected to an image, button, or href. :thumbsup:

whammy
12-24-2002, 01:10 AM
Dealing with the original post...

If I'm not mistaken, didn't they just leave the "parent" window open underneath, and give the "fullscreen" (child) window focus? They didn't close it at all! It's still there - that's the trick.


<script language="Javascript"><!--
function fullwin(){
window.open("netherlands/sitegraphics_nl/frameset.html","","fullscreen")
}
onLoad = fullwin();
// -->
</script>


That's newbie stuff, zoob, my friend (although, to be fair, I did mess around with this quite a bit awhile ago). :D

I've actually suggested this exact solution countless times (on the old wsabstract forum) for people who wanted to "launch their site in a pre-configured window" without having the "do you want to close this window" prompt... I'm sure you've seen quite a few posts dealing with that, i.e. "How can I launch my main page in a fullscreen window?".

That's the easiest solution... just leave the "parent" window open underneath. That way, you get no prompt to close the window, and as a bonus you get a nice goodbye message (since you can also change the "parent" location to a really cool "thank you" page when you're opening the child). ;)

The whole misunderstanding is that you didn't realize that the parent window was never closed at all. ;)

krycek
12-24-2002, 01:50 AM
heheh

unless you are like me and have two monitors ;)

I browse with my right-hand display, and when I click that link a new window opens in my left display :) so now I have two :)

lol :p

::] krycek [::

whammy
12-24-2002, 02:17 AM
Interesting... but I guess people with two monitors would know that already and not be bothered by it... they are fairly rare. ;)

krycek
12-24-2002, 02:52 AM
Originally posted by whammy
Interesting... but I guess people with two monitors would know that already and not be bothered by it... they are fairly rare. ;)

what I meant was, that any trickery like has been debated is very easily seen if you have two monitors.

but yes, we are rare ;)

::] krycek [::

zoobie
12-24-2002, 04:44 AM
*ahem* Now, for my next trick...*cough* http://www.stopstart.fsnet.co.uk/smilie/spineyes.gif

PS - I'm STILL a newbie...just as very OLD newbie...heh heh. http://www.stopstart.fsnet.co.uk/smilie/lol.gif



MERRY CHRISTMAS GUYS http://www.stopstart.fsnet.co.uk/smilie/biggrin3.gif


Zhttp://www.stopstart.fsnet.co.uk/mica/Misceyes.gifB