HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Div over pdf iframe
Post new topic   Reply to topic    HTML Help Forum -> HTML Frame
View previous topic :: View next topic  
Author Message
ccarmona



Joined: 16 Mar 2005
Posts: 3

PostPosted: Wed Mar 16, 2005 3:38 am     Div over pdf iframe Reply with quote

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

PostPosted: Wed Mar 16, 2005 8:39 am     Reply with quote

Can't be done.
ccarmona



Joined: 16 Mar 2005
Posts: 3

PostPosted: Thu Mar 17, 2005 12:25 am     Reply with quote

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

PostPosted: Thu Mar 17, 2005 6:41 am     Reply with quote

No,
System Objects such as DropDown Menus and Frames take precident over layers.
ccarmona



Joined: 16 Mar 2005
Posts: 3

PostPosted: Thu Mar 17, 2005 7:02 am     Reply with quote

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

PostPosted: Thu Mar 17, 2005 7:20 am     Reply with quote

Could you post an example of your code?
JuzzyDee



Joined: 10 May 2005
Posts: 1

PostPosted: Tue May 10, 2005 10:05 pm     Reply with quote

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

PostPosted: Wed May 10, 2006 9:48 am     Reply with quote

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

PostPosted: Wed Nov 18, 2009 2:31 am     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial