473,385 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

z-index seems to fail in FF on iframe/object combination

Hello,

I'm having difficulties to understand why the code below doesn't work.
The idea is to generate an <iframe> with a higher z-index compared to
an <object>. In Microsoft Internet Explorer 6, everything works fine,
but Firefox/Netscape seems to have problems with this construction.

Am I overlooking something ?

-------------------------------------------
START HTML CODE
-------------------------------------------

<html>
<body>

<div style="z-index:0;position:absolute;left:50px;top:50px;">
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
WIDTH="550" HEIGHT="210">
<PARAM NAME=movie
VALUE="http://www.gazelleworldwave.com/images/paradise_to.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#000000>
<embed src="http://www.gazelleworldwave.com/images/paradise_to.swf"
quality="high" bgcolor="#000000" WIDTH="550" HEIGHT="210"
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"/>
</OBJECT>
</div>

<div style="z-index:1;position:absolute;left:100px;top:70px;">
<iframe width="200" height="150" src="http://www.google.com/">
</iframe>
</div>

</body>
</html>

-------------------------------------------
END HTML CODE
-------------------------------------------

Thanks,
--
Bart

Jan 13 '06 #1
1 2138
Bart Van der Donck wrote:
I'm having difficulties to understand why the code below doesn't work.
The idea is to generate an <iframe> with a higher z-index compared to
an <object>. In Microsoft Internet Explorer 6, everything works fine,
but Firefox/Netscape seems to have problems with this construction.

Am I overlooking something ?


In case anyone would encounter the same problem, there is a solution:

The <embed> tag must have the attribute

wmode="transparent"

and then it seems to work fine.

--
Bart

Jan 13 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tom Van Overbeke | last post by:
Hi, I created a web page that displays a logfile monitor i wrote for monitoring our servers. it refreshes every minute and displays a text file in an iframe. I'd like to reduce the font size so...
9
by: Ragnorack67 | last post by:
.... <div id=work>hello</div> .... <IFRAME id="thisframe" src="./something.htm"></IFRAME> <script>
3
by: bluewing | last post by:
A html page is referenced by An Iframe, but this html page is not given any informathon about the parent page. Yes. No iframe name, No iframe id is given to this html page as parameter. in this...
2
by: Bart Van der Donck | last post by:
Hello, I'm having difficulties to understand why the code below doesn't work. The idea is to generate an <iframe> with a higher z-index compared to an <object>. In Microsoft Internet Explorer 6,...
4
by: stephen.cunliffe | last post by:
Hi all, There's been a bunch of chatter recently about using the Object tag, vs. the Iframe tag. I couldn't care less which one is used, I just want to be able to load a "page" inside another...
1
by: Benny Shoham | last post by:
Hi, I have a very strange problem, please help if you have ANY idea about it. I have a page on our site, http://www.5min.com/Upload.aspx This page has an IFrame inside, with it's source set to...
2
riptide2049
by: riptide2049 | last post by:
I really have a problem here. I have a code that is suppost to take the href of a link from the right class;value of a link maked toreturn false. the value is a Media file the file is sent to...
1
by: John L. | last post by:
How do I invoke the scroll() method of a window object for a scrollable IFRAME element in an HTML document? I am using IE 7.0, and I thought the following would work: ...
23
by: vunet | last post by:
It is recommended by some sources I found to create IFrames in IE using document.createElement('<iframe src="#">') instead of document.createElement('iframe'). Why and what browser versions to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.