| View previous topic :: View next topic |
| Author |
Message |
ccarmona
Joined: 16 Mar 2005 Posts: 3
|
Posted: Wed Mar 16, 2005 3:38 am Div over pdf iframe |
|
|
|
I have a page with an iframe. The iframe has a PDF file as source.
I would like to place a div over the iframe, but the PDF file always stays over the div. I have tried with z-index, but it doesn't work.
Any sugestions, you intelligent people?
Thanks in advance |
|
degsy

Joined: 23 Feb 2005 Posts: 2440 Location: North East, UK
|
Posted: Wed Mar 16, 2005 8:39 am |
|
|
|
| Can't be done. |
|
ccarmona
Joined: 16 Mar 2005 Posts: 3
|
Posted: Thu Mar 17, 2005 12:25 am |
|
|
|
| And what about if the iframe has an MHT file (Web Archive) as source? Can it be done? |
|
degsy

Joined: 23 Feb 2005 Posts: 2440 Location: North East, UK
|
Posted: Thu Mar 17, 2005 6:41 am |
|
|
|
No,
System Objects such as DropDown Menus and Frames take precident over layers. |
|
ccarmona
Joined: 16 Mar 2005 Posts: 3
|
Posted: Thu Mar 17, 2005 7:02 am |
|
|
|
| Uhm, that's not entirely true. I can place a div over an iframe, when the iframe source is, for example, an HTML page (giving the div a higher z-index, of course). Why can't you do the same when the iframe has a mht file as source? |
|
degsy

Joined: 23 Feb 2005 Posts: 2440 Location: North East, UK
|
Posted: Thu Mar 17, 2005 7:20 am |
|
|
|
| Could you post an example of your code? |
|
JuzzyDee
Joined: 10 May 2005 Posts: 1
|
Posted: Tue May 10, 2005 10:05 pm |
|
|
|
Well, if they wont, I certainly will, this has been giving me grief for days.
| Code: |
<style type="text/css">
#floatframe {position:absolute;
left: 0px;
top: 05px;
width: 399px;
height: 999px;
z-index: 100;
}
</style>
<style type="text/css">
#mainFrame {position:absolute;
left: 133px;
top: 05px;
width: 130%;
height: 100%;
z-index; 1;
}
</style>
|
This is located in the head of course, and the body is,
| Code: |
<div id="floatframe">
<iframe id="menu" name="menu" src="menu.html" scrolling="no" width="100%" height="100%"
frameborder="0" allowtransparency="true" background-color="transparent">
[Content for browsers that don't support iframes goes here]
</iframe>
</div>
<div id="mainFrame">
<iframe id="right" name="right" src="menu.html" scrolling="yes"
width="68%" height="100%" frameborder="0">
[Content for browsers that don't support iframes goes here]
</iframe>
</div>
|
Does anyone know of ANYTHING I can do to solve this problem? I never imagined it would be so difficult when i took on the project! |
|
Lothos
Joined: 10 May 2006 Posts: 1
|
Posted: Wed May 10, 2006 9:48 am |
|
|
|
You need to put an IFrame under your Div Tag
So you hav the following
IFrame with PDF in it set to ZINdex = 1
IFrame under you DIV set to ZIndex = 50
DIV over the second IFrame with ZIndex = 100
You can use ClientWidth and ClientHeight commands to assign the widght and height to the IFrame under the DIV if they will fluctuate. This works in all browsers I believe. |
|
nabritta
Joined: 15 Nov 2009 Posts: 1
|
Posted: Wed Nov 18, 2009 2:31 am |
|
|
|
How do I search selected parts of a pdf document? I'm trying to search a pdf document for keywords, but it has loads of pages and I only want to search through a bit of text. I tried highlighting the text but it still searches the whole document. Pls help if you know how, Thanks!
______________________
market samurai ~ marketsamurai ~ marketsamurai.com |
|
|