Link to home
Start Free TrialLog in
Avatar of stef4s
stef4s

asked on

transparent iFrame

    <IFRAME id=FrameStage name=FrameStage
     SCROLLING=no
     frameborder="0"
     style="
     POSITION: ABSOLUTE;
          LEFT: 138px;
          TOP: 26px;          
          WIDTH: 492px;
          HEIGHT: 369px;          
          POSITION: absolute;    
          Z-INDEX: 4;
          "
          src="Player.html"
          >

this is my iFrame tag. inside player.html is a transparent flash movie. I need the iFrame to show whatever is behind it. How do I do this?
ASKER CERTIFIED SOLUTION
Avatar of dorward
dorward

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stef4s
stef4s

ASKER

no workarounds?
IE5.5+ only:

<iframe id=FrameStage name=FrameStage
allowtransparency="true"
scrolling="no"
frameborder="0"
style="
background-color:transparent
position:absolute;
left: 138px;
top: 26px;
width: 492px;
height: 369px;
z-index: 4;
"
src="Player.html"
>

Cd&
Ah, I assume this is one of those unofficial extensions that aren't in the HTML spec?
>>>Ah, I assume this is one of those unofficial extensions that aren't in the HTML spec?
 
lol....  As I said IE5.5+ only. When has M$ ever paid attention to the standards?
 
Standards are fine until they limit your ability to get the job done.  It is not M$'s fault that the standards cannot keep up with real world requirements.

Cd&
Standard published 1998

position: fixed;
body>element {}
max-width: <foo>

Support by IE? nil.

End of standards war? PLEASE!
It's NOT M$ but MS! Why is it always the S that gets replaced with the dollar sign just because they earn money for their hard work? It's a company and they also need to get paid for the products they deliver.

Yes, I'm a microsoft fanatic ;-)

CJ
It might be easier to create transparancy effects using a div.

Unless you have a very specific reason for HAVING to use the IFrame, using a DIV you will have transparancy automatically..

Max.
Max,

You can't use a src property on a div, so unless you can use SSI or populate the div dynamically it becomes very problematic.  If the iframe was just a container for local HTML, then a scrollable div would be better, and can be handled by some of the fringe browsers as well.

CJ,

No one is trashing Microsoft with this small joke.  Everthing I do is IE specific.

Cd&
It doesn't say anywhere that the content needs to be changed Cd&...all it says is that the IFrame contains a tranparent Flash movie...

Max.
Cd&,
I know. Was just being uhm... I dunno. ;-)

BTW. For Netscape 4 you can use the load method.
document.layers["mylayer"].load("thefile.htm", 500);

and in IE you can use a hidden iframe and a visible DIV to get the results of a transparent "iframe".

At the following url you will see that approach being used.
http://www.warchild.nl/friend/

CJ
Cd&,

you DO however trash Netscape...."Netscrap"....
*LOL* let's just trash'm all ;-)
lol
* i really should contribute something worthwhile, than instead cry about not getting points...
Ntescrap once had a 90% share of the market.  It was THE browser.  They trashed themselves, by failing to deliver what the market wanted.... like transparent iframes.

Cd&
wait wait wait people...

M$ only makes money because they have money.  Honestly, if I had a huge corporation making billions of dollars selling hundreds of thousands of pieces of software...i'd write bugs in my code too...quick write a patch and make more money!  hee hee sorry CJ

Cd&, why was JavaScript originally made for Nutscrape but is now more widely supported by Interbutt Explorer?  :-p

Stef4s

What exactly are you trying to do?  Why have a transparent iFrame with a transparent Flash Movie on it at all?  What are you trying to accomplish here?  Maybe there is another way to go about this...
aaah. the new mozilla is better than ie6, ie6 scares me, it makes me feel that im using some sort of spyware.


*waiting for stefs reply...
Avatar of stef4s

ASKER

I am using a flash movie in window mode (windowless peforms toooooooooooo sloooooooww) under an iFrame that contains a Windows media player 6 object with a windowless transparent flash movie under that (inside the iframe). This allows me to run the Windowed flash movie under the media player object. I use the media player to play movies over flash and sometimes to get right clicks. I want to be able to view through the iFrame. I need this for IE5.0 and up. Sorry I should have specified that.

IE vs NS. IE works. :)
Well...best you can do is for IE5.5 as Cd& specified, but if I were you...I would really consider the options for other ways to acchieve the similar effect..

Max.
Avatar of stef4s

ASKER

I can do this without using an iFrame, by using a windowless flash control. the problem is that anything < 800Mhz performs really badly.
Well, it's probably your only option nontheless because a transparent IFrame in any versions of IE lower than 5.5 is not going to work...let alone in Netscape...

Max.
Avatar of stef4s

ASKER

is there an object that I can use to detect right clicks then?
you could just play the movie in flash.
Avatar of stef4s

ASKER

mastallama please elaborate.
you can import movies into flash and play or even stream them through flash.  here is what MM has to say about video2flash...

http://www.macromedia.com/support/flash/ts/documents/video_resources.htm

 HTH

~ MastaLlama ~
Avatar of stef4s

ASKER

I need access to the right mouse button. WMP allows me to do this.
This question has been abandoned. I will make a recommendation to the
moderators on its resolution in a week or two. I appreciate any comments
that would help me to make a recommendation.
<note>
   In the absence of responses, I may recommend DELETE unless it is clear
   to me that it has value as a PAQ.  Silence = you don't care
</note>

Cd&

This _is_ possible (transparent Flash movie in a transparent IFRAME) and it works on IE 5.5+ and the latest build of Mozilla (Mine is 1.2.1) with the latest version of the Flash 6 player (Macromedia Flash Player version 6,0,65,0 (Windows) or 6,0,67,0 (Macintosh) or higher). Transparent flash movies work in Netscape 7, but not Netscape 6. Transparent IFRAMEs do not work in Netscape 6 or 7 because of a bug.

The Macromedia technote can be found here: http://www.macromedia.com/support/flash/ts/documents/wmode.htm

The Mozilla bug responsible for opaque IFRAMES can be found here:

http://bugzilla.mozilla.org/show_bug.cgi?id=50623
Avatar of stef4s

ASKER

dcarlile IE5 is the requirement.