[thelist] Javascript minimize
Andy Hey
andy at houseospank.com
Sat Mar 2 13:04:00 CST 2002
That's absolutely brilliant thanks!!
I am fairly safe to assume that the browser is IE so I am pretty sure
this will work.
Thanks again
Andy
-=-------------------------=-
-= Regards =-
-= Andy Hey =-
-= w: http://port-21.net =-
-= e: andy at houseospank.com =-
-= m: +(44)7764673527 =-
-=-------------------------=-
-= www.houseospank.com =-
-= "For all gaming news" =-
-=-------------------------=-
> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org] On Behalf Of Keith
> Sent: 01 March 2002 02:33
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] Javascript minimize
>
>
> > Hey I have site that opens up in a chromeless window. Now I
> would like
> > users to be able to close/minimize the window whith some
> icons I have
> > created. The close is easy but does anyone know how I can do the
> > minimize?? IT is safe to assume that it only has to work on
> IE on a PC
> > platform.
> >
>
> To minimize chromeless windows I send the window 2000px off
> screen. Clicking on the window's button in the task bar will
> give focus to the window even if it is offscreen, so an
> onfocus in the body tag responds by moving the window back
> 2000px to where it was at. The trick is to keep track of
> whether the window is offscreen or not because you don't want
> onfocus to move it everytime the window gets focus.
>
> on the page in the chromeless add onfocus=reshow() to the body tag
>
> Then create a minimize button on the chromeless that calls
> minimize()
>
> <script>
> show=1
> function minimize(){
> moveBy(2000,2000)
> show=0
> }
> function reshow(){
> if(show==0{
> moveBy(-2000,-2000)
> show=1
> }
> }
> </script>
>
> I've converted some of my chromeless windows to .hta since
> both use IE as a workspace. In .hta mode the window may be
> the only window open since it is running as a windows app.
> This is the only way I've found to fake a minimize when the
> window is the only thing on the screen
>
>
> keith
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
More information about the thelist
mailing list