Solved

Embeded PDF and z-index

Posted on 2009-04-08
5
7,890 Views
Last Modified: 2012-05-06
I have a menu that opens either videos or pdfs into an iframe. It is a very user friendly way of helping my users go through out content and the videos pertaining to the content. The only problem is that when I embed a pdf file it covers the drop down menus to navigate to other docs.

This is my page structure

************************drop down menu*************************

  ------------------------------iframe----------------------------

    _____________video or pdf embeded___________

I need to figure out a way to get the drop down to appear over the pdf. I have gone through all the work arounds in the search engines. There is one to make it hide the pdf when being moused over, I cannot allow that one.

I have tried the classic approach of how to do this with flash (setting wmode to transparent), and it doesn't work for PDFs.

Please help! Thank you very much.

Here is my embed code for the PDF:

<object style="width:700px; height:350px; z-index:-50;">

<param name="wmode" value="transparent" />

<param name="src" value="http://www.fabuso.com/starteconome/pdf/GB_Introduction.pdf">

<embed src="http://www.fabuso.com/starteconome/pdf/GB_Introduction.pdf" wmode="transparent" style="width:700px; height:350px; z-index:-50;"></embed> 

</object>

Open in new window

0
Comment
Question by:the_hero
  • 2
  • 2
5 Comments
 
LVL 16

Expert Comment

by:hankknight
ID: 24103352
If you want this to work with all browsers you will need to place the drop down menu inside an iframe.
0
 
LVL 11

Expert Comment

by:level9wizard
ID: 24106298
Can you provide the full html code? At first glance It looks as though defining position: relative; or position: absolute; to the object and/or embed might solve this.
0
 
LVL 1

Author Comment

by:the_hero
ID: 24116812
I can't do it from an iframe as a drop menu can't drop outside of the iframe's boundaries.

I can't seem to get it to work with your suggestions still. Sorry, can't supply all the code. Thanks for your help, but like other posts have said, it isn't possible because "The problem occurs because both .doc and .pdf are using their native programs for display - neither one is native to the browser. I don't know of any workaround available today." source = http://www.webmasterworld.com/html/3503870.htm

For now I think I will have to move away from using PDFs unless someone is certain on a solution.
0
 
LVL 16

Accepted Solution

by:
hankknight earned 500 total points
ID: 24116891
The problem is legacy version of IE give iframes a z-index of infinity.  The only way to truly solve this problem is to place an iframe on top of an iframe, so it has a z-index of infinity plus one.  The menu code has to be BELOW the other code or has to be parsed with JavaScript after the other iframe was rendered.

->>  I can't do it from an iframe as a drop menu can't drop outside of the iframe's boundaries

Actually, you can.  Look for a drop down menu with IE5 support, and it should do the trick.  Here is an example:

http://dhtmlgrounds.wordpress.com/2009/02/10/vertical-dropdown-menu-ie6-z-index-bug-fixed/
http://br.geocities.com/romulonf@rocketmail.com/vertical-menu-1/vertical.html
0
 
LVL 1

Author Closing Comment

by:the_hero
ID: 31568223
Thank you
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now