Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: popup window? mine is better than Moockies IMHO |
| From: | Al Rosetti |
| Date: | Thu, 10 Jun 1999 17:16:04 +0100 |
Moock, has a good pop up window script and I've used it myself but IMHO I
have a MUCHO better one. About 9 months ago I hired a professional scripter
to write this for me. It worked great, but I didn't know that it would work
inside FLASH. Last week I discovered that it did! Now my investment
becomes the lists gain, hehe. I'm happy to do it.
It works in Exploder 4+ and Netscape 3+. Actually it might even work in
Netscape 2, but I don't know because I haven't tried it in that old of a
browser.
With this small script in your HTML you can open 1 or a million uniquely
sized windows. As one opens, the other closes and when you leave the site
the last open window closes leaving no left over "site trash" on the user's
screen.
Here it goes...
<HTML>
<HEAD>
<SCRIPT language="JavaScript">
<!--
var wind = null;
function openwin( page , attr )
{
if( wind != null )
{
if( ! wind.closed )
{
wind.close();
}
wind = null;
}
wind = window.open( page , "info" + (new Date()).getTime() , attr );
if( window.focus )
wind.focus();
}
}
function closewin()
{
if( wind != null )
{
if( ! wind.closed )
{
wind.close();
}
wind = null;
}
}
//-->
</SCRIPT>
<TITLE>script goes above title and below head</TITLE>
Then, put this bit of code in your body tag
<BODY onUnLoad="closewin()">
Calling it from HTML looks something like this...
HREF="javascript:openwin'goodtimes.htm','width=400,height=225,scrollbars=no,
top=0,left=0,screenX=0,screenY=0')"
Since I haven't played around with it I'm not sure which applies to which
but by setting the Top and Left or Screenx and Screeny you can make the
window spawn wherever you like. One works for Netscape, the other for
Explorer.
Calling it from FLASH looks like this...
javascript:openwin'goodtimes.htm','width=400,height=225,scrollbars=no,top=0,
left=0,screenX=0,screenY=0')
Just place it in the same place you used to call scripts from.... the URL
section of the parameters.
SHAGGADELIC!!!!!!
If you want a real example it's at www.rapfoto.com
The file index.html uses it with HTML
The file inside.htm uses it with FLASH
sincerely,
Al Rosetti
http://www.websitepartners.com
-----Original Message-----
From: Daniel Hart <djh-graphics
To: flasher
Date: Thursday, June 10, 1999 8:34 AM
Subject: FLASH: popup window?
>Hello all,
>
>I am trying to do a popup window, I know I can do this in Get URL, then
>target window. However, I don't want the window to fill the scree. I want a
>normal browser window, only 500x300. Is this possible?
>
>many thanks,
>
>Daniel Hart
>graphic designer
>
>web> www.djh-graphics.com
>email> djh-graphics
>
>
>------------------------------------------------------------------------
>To UNSUBSCRIBE send: unsubscribe flasher in the body of an
>email to list-manager
>N.B. Email address must be the same as the one you used to subscribe.
>For info on digest mode send: info flasher to list-manager
>
------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manager
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manager
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

