Re: JS Pop Up window - need black bgcolor

by "Michael" <rhodesiscool(at)netscapeonline.co.uk>

 Date:  Tue, 26 Dec 2000 11:32:43 +0100
 To:  "Daryl Fernquist" <darylf(at)fernweb.com>,
<hwg-techniques(at)mail.hwg.org>
 References:  fernweb
  todo: View Thread, Original
Hi Daryl,

The black background you can achieve by using an HTML file as URL when
calling the launch() function. i.e. launch('saturna_popup.html') instead of
launch('saturna.swf').
In the HTML file you then set the bgcolor to #000000 and embedd the .swf
file. This will look something like this (depending on the Flash version
you're using. Best is probably to let flash generate the HTML for this using
the publish command):


<BODY bgcolor="#000000">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0"
 ID=test WIDTH=100% HEIGHT=100%>
 <PARAM NAME=movie VALUE="saturna.swf"> <PARAM NAME=loop VALUE=false> <PARAM
NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor
VALUE=#000000> <EMBED src="saturna.swf" loop=false menu=false quality=high
bgcolor=#000000  WIDTH=100% HEIGHT=100% TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>


Better even if you want the shockwave flash movie to fill the entire window,
you can use frames.
The saturna_popup.html would look like this:

<HTML>
<HEAD>
....
</HEAD>
<frameset rows='0,*' border=0 frameborder=0 framespacing=0>
<frame src='' scrolling=no marginwidth=0 marginheight=0>
<frame src='saturna_popup_frame.html' scrolling=no marginwidth=0
marginheight=5>
</frameset>
<BODY bgcolor="#000000">
</BODY>
</HTML>

saturna_popup_frame.html would then have the html code with the embedded
flash movie mentioned earlier.

I hope this helps and works.

Michael


----- Original Message -----
From: "Daryl Fernquist" <darylf(at)fernweb.com>
To: <hwg-techniques(at)mail.hwg.org>
Sent: Tuesday, December 19, 2000 5:13 AM
Subject: JS Pop Up window - need black bgcolor


> Hello All:
>
> I find that I am need of a black bground color for a pop up window I am
> helping my client with.
>
> All of a sudden one of their new Flash movies they created has a tiny
white
> background around the movie and they think it is the Pop up window having
a
> white background.  I'm not sure how to program in the black bgcolor.
Anyone
> be able to help me out.
>
> If you click on the Saturna link you will see a Pop up window and as the
> Flash movie plays there is a tiny white edge around the outside of the
> movie.  I'd like to force the window to have a black bgcolor.
>
> =======================================================================
>
> Here is the actual URL and Javascript code I am using.
>
> http://www.rebellelighting.com/saturna.html
>
>
> ------------------------------------------------------------------------
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> <HTML>
> <HEAD>
> <TITLE>Rebelle Architectural Lighting</TITLE>
> <script language="javascript">
> function launch( url ) {
> var windowprops =
>
"scrollbars=yes,toolbar=no,location=no,menubar=no,resizable=no,width=600,hei
> ght=440,left=5,top=0";
> var name = "product";
> popup = window.open(url,name,windowprops);
> popup.focus();
> }
> </script>
> </head>
>
> <body background="images/bkgrd-twotone-new.gif" text="#ffffff"
> link="#ffffff" vlink="#ffffff">
> <img src="images/rebelle7a.gif" alt="" border="0">
> <br><br>
>
> <p>&nbsp; </p>
> <a href="#" onClick="launch('saturna.swf');"><font face="Arial,Tahoma"
> size="-1">Saturna Product Launch</A><br><br>
>
>
> </body>
> </html>
> ======================================================================
> Thanks for any help I can get.
>
> Daryl
>
>
>

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.