Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-22-2010, 08:18 PM   PM User | #1
johnmerlino
Regular Coder

 
Join Date: Oct 2009
Posts: 189
Thanks: 38
Thanked 3 Times in 3 Posts
johnmerlino is an unknown quantity at this point
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.
johnmerlino is offline   Reply With Quote
Old 11-23-2010, 02:53 PM   PM User | #2
EMaks
New Coder

 
Join Date: Nov 2010
Location: Austin Texas
Posts: 12
Thanks: 0
Thanked 3 Times in 3 Posts
EMaks is an unknown quantity at this point
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
EMaks is offline   Reply With Quote
Reply

Bookmarks

Tags
embed, layers, movie, positioning

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:31 AM.


Advertisement
Log in to turn off these ads.