Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Oct 2009
    Posts
    189
    Thanks
    38
    Thanked 3 Times in 3 Posts

    object/embed tag overlays everything even when I set positioning!

    Hey all,

    I have this:

    Code:
    	<div class="main_image" style="position: relative">
    			
    			<div class="obj" style="position: absolute; z-index:999;">
    				<object width="160" height="144"
    				classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    				codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    				<param name="src" value="../images/Intro-1.mov">
    				<param name="autoplay" value="true">
    				<param name="controller" value="false">
    
    			
    			
    			
    				<EMBED SRC="../images/Intro-1.mov" WIDTH=500 HEIGHT=380 AUTOPLAY=false CONTROLLER=true LOOP=false PLUGINSPAGE="http://www.apple.com/quicktime/"> <!--	<img src="" alt="video_1"> -->
    				</object>
    			</div>	
    				
    				
    			<div class="obj">
    				<object width="160" height="144"
    				classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
    				codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    				<param name="src" value="../images/Intro-2.mov">
    				<param name="autoplay" value="true">
    				<param name="controller" value="false">
    				<EMBED SRC="../images/Intro-2.mov" WIDTH=500 HEIGHT=380 AUTOPLAY=false CONTROLLER=true LOOP=false PLUGINSPAGE="http://www.apple.com/quicktime/"> <!--	<img src="" alt="video_1"> -->
    				</object>
    			</div>
    				
    
    
    		
    		
    		
    
    				
    				
     			<div style="display: block; position: absolute; z-index: 1000;" class="desc">
    				<a href="#" class="collapse">Close Me!</a>
    				<div style="opacity: 0.85; margin-bottom: 0px; display: block;" class="block">
    						<h2>Video 1</h2>
    						<p>Autem conventio nimis quis ad, nisl secundum sed, facilisi, vicis augue regula, ratis, autem. Neo nostrud letatio aliquam validus eum quadrum, volutpat et.</p>
    					</div>
    			</div>
     		</div>
    By default, the div with class desc should be layered on top of div with movie in it. But it wasn't. That is, the movie appeared to be on top, but when you try to play movie, you actually select the text beneath! If that's not crazy enough, when I set positioning - relative for parent and then lower positioning for div wiht movie, the movie still appears on top!

    Come on, I can't be the only one who has faced this problem.

    Thanks for response.

  • #2
    New Coder
    Join Date
    Nov 2010
    Location
    Austin Texas
    Posts
    12
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Maybe it happens because you have another div with class "obj" but without styling. This div appears in front of all. Try to write your css in the <head> of html for .obj


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •