Link to home
Start Free TrialLog in
Avatar of bordstudios
bordstudios

asked on

Layer ordering CSS and Flash

I am currently developing a website that combines HTML and Flash elements.  I have a menu that is generated with CSS and below it I have a flash slideshow showing some applications of the product the site is promoting.  The problem is that there are cascading items that appear in the menu that are appearing underneath the embeded SWF below it.  I have them both wrapped in DIVs and have a z-index property attached to it and a position of relative but the z-index is having any effect as the cascading menu items still appear underneath the DIV.

I am not sure what else to try and would appreciate any expertise you may have.
I am using a table as a container.
 
HTML for menu:
 
		<td height="43" valign="middle" class="menu">
 
<div id="menubg">
<!--|**START IMENUS**|imenus0,dw_template-->
<!-- ****** Infinite Menus Core CSS [Do Not Modify!] ****** -->
<style type="text/css">.imcm ul,.imcm li,.imcm div,.imcm span,.imcm a{text-align:left;vertical-align:top;padding:0px;margin:0;list-style:none outside none;border-style:none;background-image:none;clear:none;float:none;display:block;position:static;overflow:visible;line-height:normal;}.imcm li a img{display:inline;border-width:0px;}.imcm span{display:inline;}.imcm .imclear,.imclear{clear:both;height:0px;visibility:hidden;line-height:0px;font-size:1px;}.imcm .imsc{position:relative;}.imcm .imsubc{position:absolute;visibility:hidden;}.imcm li{list-style:none;font-size:1px;float:left;}.imcm ul ul li{width:100%;float:none !important;}.imcm a{display:block;position:relative;}.imcm ul .imsc,.imcm ul .imsubc {z-index:10;}.imcm ul ul .imsc,.imcm ul ul .imsubc{z-index:20;}.imcm ul ul ul .imsc,.imcm ul ul ul .imsubc{z-index:30;}.imde ul li:hover .imsubc{visibility:visible;}.imde ul ul li:hover  .imsubc{visibility:visible;}.imde ul ul ul li:hover  .imsubc{visibility:visible;}.imde li:hover ul  .imsubc{visibility:hidden;}.imde li:hover ul ul .imsubc{visibility:hidden;}.imde li:hover ul ul ul  .imsubc{visibility:hidden;}.imcm .imea{display:block;position:relative;left:0px;font-size:1px;line-height:1px;height:0px;width:1px;float:right;}.imcm .imea span{display:block;position:relative;font-size:1px;line-height:0px;}.dvs,.dvm{border-width:0px}/*\*//*/.imcm .imea{visibility:hidden;}/**/</style><!--[if IE]><style type="text/css">.imcm .imea span{position:absolute;}.imcm .imclear,.imclear{display:none;}.imcm{zoom:1;} .imcm li{curosr:hand;} .imcm ul{zoom:1}.imcm a{zoom:1;}</style><![endif]--><!--[if gte IE 7]><style type="text/css">.imcm .imsubc{background-image:url(ie_css_fix);}</style><![endif]-->
 
 
<!-- ***** Infinite Menus CSS Style Settings ***** -->
<link rel="stylesheet" href="../css/imenus0.css" type="text/css">
 
 
<!--  ****** Infinite Menus Structure & Links ***** -->
<div class="imrcmain0 imgl" style="width:495px;z-index:999999;position:relative;"><div class="imcm imde" id="imouter0"><ul id="imenus0">
<li class="imatm"  style="width:59px;"><a href="#" style="height:30px;">Home</a></li>
<li class="imatm"  style="width:230px;"><a class="" href="#" style="height:30px;"><span class="imea imeam"><span></span></span>Product Information</a>
 
	<div class="imsc"><div class="imsubc" style="width:208px;top:-10px;left:-1px;"><ul style="">
	<li class="dvs"><a class="" href="#"><span class="imea imeas"><span></span></span>Technical Information</a>
 
		<div class="imsc"><div class="imsubc" style="width:129px;top:-28px;left:199px;"><ul style="">
		<li><a href="#">Dosage Rate</a></li>
		<li><a href="#">Cylinder Tests</a></li>
		</ul></div></div></li>
 
 
	<li class="dvs"><a href="#">Pricing Information</a></li>
	<li><a href="#">Applications</a></li>
	</ul></div></div></li>
 
 
<li class="imatm"  style="width:117px;"><a href="#" style="height:30px;"><span class="imea imeam"><span></span></span>Features</a>
 
	<div class="imsc"><div class="imsubc" style="width:101px;top:-11px;left:-2px;"><ul style="">
	<li class="dvs"><a href="#">Fiber Facts</a></li>
	<li class="dvs"><a href="#">Comparison</a></li>
	<li><a href="#">Order Now</a></li>
	</ul></div></div></li>
 
 
<li class="imatm"  style="width:89px;"><a href="#" style="height:30px;">Savings</a></li>
</ul><div class="imclear">&nbsp;</div></div></div>
 
 
<!--[imcode]*** Infinite Menus Settings / Code - This script reference must appear last. ***
 
      *Note: This script is required for scripted add on support and IE 6 sub menu functionality.
      *Note: This menu will fully function in all CSS2 browsers with the script removed.-->
 
<script language="JavaScript" src="../scripts/ocscript.js" type="text/javascript"></script>
<!--|**END IMENUS**|-->
</td>
 
HTML for Flash Object:
 
<tr>
		<td height="160" valign="top" class="appmodule"><!-- InstanceBeginEditable name="App Module" --><div id="app">
		  <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','945','height','160','align','top','title','Applications','src','flash/appslidehow','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flash/appslidehow' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="945" height="160" align="top" title="Applications">
        <param name="movie" value="flash/appslidehow.swf">
            <param name="quality" value="high">
            <embed src="flash/appslidehow.swf" width="945" height="160" align="top" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>
	    </object></noscript></div>
		<!-- InstanceEndEditable --></td>
  </tr>
 
CSS STYLES (MENU):
 
#menubg {
	margin-left: 5px;
	background-image:url(../images/menubg_03.jpg);
	padding-top: 5px;
	width: 627px;
	height: 32px;
	background-repeat: no-repeat;
	padding-left: 10px;
	margin-top: 5px;
	z-index: 5;
	position:relative;
 
}
 
CSS STYLE FOR FLASH:
 
#app {	
z-index: 1;
position:relative;
}

Open in new window

Avatar of john_steed
john_steed

Hey

Try publishing your swf as "transparent", this should make it work

Good luck!
ASKER CERTIFIED SOLUTION
Avatar of anandhariharan
anandhariharan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial