From: Peter Rose <[EMAIL PROTECTED]>
Subject: Re: hiding an embedded video

Actually, layers work fine in Netscape, but may need a different syntax
to IE5.
I didn't follow all of this thread, but here is a snippet of code I've
done for inclusion in a page. It may or may not help - please excuse if
it doesn't:-)
What I'm doing is having an identically sized layer hide the plugin for
a little smil presentation until I'm ready to run it. In this particular
case, the function runs on a setTimout onLoad.
It works for IE5 and Netscape 4.7, haven't fully tested it for full
backwards compatibility yet.

<SCRIPT LANGUAGE="JAVASCRIPT">
function playSmil(){
if (navigator.appName == "Microsoft Internet Explorer"){
document.all.plugincover.style.visibility="hidden";
document.all.plugindiv.style.visibility="visible";

document.all.whatsnew.DoPlay();
         }
if (navigator.appName == "Netscape"){
document.all=document.layers;
document.layers["plugincover"].visibility="hide";
document.layers["plugindiv"].visibility="show";
document.embeds[0].DoPlay();
         }
}
</SCRIPT>

The HTML it refers to is as follows:

DIV ID="plugincover" STYLE="position:absolute; top:240px;left:10px;width
:335px;height:160px; visibility:visible;background-color:aqua; margin-
left:10px;margin-right:10px;">
<BR>
<BR>
<CENTER><IMG SRC="prodlogo2.gif" VSPACE=5 HSPACE=5 WIDTH="36"
HEIGHT="32">
<BR>
You need RealPlayer G2 to view this site correctly.
<BR>
You can download it free from: <BR>
<A HREF="http://www.real.com">www.real.com</A>
</CENTER>
</DIV>
<DIV ID="plugindiv" STYLE="position:absolute; top:240px;left:15px;width:
335px; visibility:hidden;">
<EMBED NAME="whatsnew" SRC="whatsnew.rpm" WIDTH=335 HEIGHT=160
AUTOSTART="FALSE" CONTROLS="ImageWindow">

</DIV>

However, I believe that once the clip is running, it always rises to the
top of the z-index, whatever you do. There was some discussion on this a
year ago - we're all waiting for Real to produce a windowless plugin.
(Or maybe it is now!)

Good luck

Peter Rose
London UK

In message , RealForum <[EMAIL PROTECTED]> writes
 >From: "Brook, Andy" <[EMAIL PROTECTED]>
 >Subject: RE: hiding an embedded video
 >
 >Try putting the player in a layer then resizing the layer or even =
 >setting
 >the
 >layer invisible, which is what youre trying to do.
 >
 >But, layers dont work very well under Nutscrape, Ie seems ok.
 >
 >best of british :)
 >
 >Andy
 >

*******************************************************
The RealForum is an email discussion group focused on using RealNetworks
products. The RealForum is a place to post messages about the best methods
for creating content using RealNetworks technologies and the planning and
implementation of streaming-media web sites.  Archives of RealForum can
be found at http://realforum.real.com

If you ever want to remove yourself from this mailing list,
you can send mail to <[EMAIL PROTECTED]> with the following
command in the body of your email message:

    unsubscribe realforum

or from another account, besides the address you subscribed with:

    unsubscribe realforum <[EMAIL PROTECTED]>

Reply via email to