• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 473
  • Last Modified:

CSS menu overlapped by flash

Hi, experts, I am trying to install a nice little css menu on this page: http://test dot magickitchen dot com slash jul09 dot html

But I have a flash running on that page- on the left, there are pictures of food rotating through a series. When I hover over the tag "Our Menus", the drop down is obscured by the flash. Is there anything I can do with the js code(I'll attach it) or the css(I'll attach it)  to make the drop down sit in front of the images? Thanks.
  <ul id="qm0" class="qmmc">
	<li><a class="qmparent" href="/menu/menu.html">Our Menus</a>
		<ul style="width:131px;">
		<li><a class="qmparent" href="/menu/main_courses.html">Main Courses</a>
			<li><a href="/menu/breakfast.html">Breakfast</a></li>
			<li><a href="/menu/Beef.html">Beef</a></li>
			<li><a href="/menu/Pasta.html">Pasta &amp; Rice</a></li>
			<li><a href="/menu/Pork.html">Pork</a></li>
			<li><a href="/menu/Poultry.html">Poultry</a></li>
			<li><a href="/menu/Seafood.html">Seafood</a></li>
			<li><a href="/menu/Vegetarian.html">Vegetarian</a></li>
		<li><a href="/menu/soup.html">Soups</a></li>
		<li><a href="menu/side_dishes.html">Side Dishes</a></li>
		<li><a href="/menu/new.html">Extra Sides</a></li>
		<li><a href="/menu/desserts.html">Desserts</a></li>
		<li><a href="/gift_certificates.html">Gift Certificates</a></li>
	<li><a class="qmparent" href="/meal_packages.html">Meal Packages</a>
		<ul style="width:150px;">
		<li><a href="/meal_plans.html">Meal Plans</a></li>
		<li><a href="/menu/meal_bundles.html">Meal Bundles</a></li>
		<li><a href="/gifts.html">Food Gifts</a></li>
		<li><a href="/menu/healthy_choices.html">Healthy Choices</a></li>
		<li><a href="/menu/MKMeals.html">Special Menu</a></li>
	<li><a class="qmparent" href="/nutrition.html">Magic Information</a>
		<ul style="width:162px;">
		<li><a href="/diabetic.html">Diabetic Friendly</a></li>
		<li><a href="/dairyfree.html">Dairy Free</a></li>
		<li><a href="/glutenfree.html">Gluten Free</a></li>
		<li><a href="/lowcarb.html">Low Carb</a></li>
		<li><a href="/lowfat.html">Low Fat</a></li>
		<li><a href="/lowsodium.html">Low Sodium</a></li>
	<li><span class="qmdivider qmdividery" ></span></li>
	<li><a class="qmparent" href="/customers.html">Customers</a>
		<ul style="width:130px;">
		<li><a href="/cgi/user.cgi?cmd=login&type=retail&ret_url=">My Account</a></li>
		<li><a href="/guarantee.html">Our Guarantee</a></li>
		<li><a href="/press_reviews.html">Media</a></li>
		<li><a href="/security.html">Security</a></li>
		<li><a href="/terms.html">Terms &amp; Conditions</a></li>
		<li><a href="/testimonials.html">Testimonials</a></li>
	<li><a class="qmparent" href="/gifts.html">Gifts</a>
		<ul style="width:101px;">
		<li><a href="/gifts.html">New Parents</a></li>
		<li><a href="/gifts.html">Seniors</a></li>
		<li><a href="/gifts.html">etc</a></li>
<li class="qmclear">&nbsp;</li></ul>
<!-- Create Menu Settings: (Menu ID, Is Vertical, Show Timer, Hide Timer, On Click ('all' or 'lev2'), Right to Left, Horizontal Subs, Flush Left, Flush Top) -->
<script type="text/javascript">qm_create(0,false,250,250,false,false,false,false,false);</script>

Open in new window

  • 5
  • 3
2 Solutions
Brian WithunCommented:
Give this a read:


Q: I have experienced a problem recently when designing a website; the flash banner was displaying on top of the CSS menu regardless of the stacking order (z-index).

A: The solution for this problem is using the parameter WMODE to allow layering of Flash content with DHTML layers. The parameter WMODE has 3 possible settings: window (default), transparent, or opaque. Setting WMODE to transparent or opaque will prevent the Flash object from playing in the top layer and allow you to adjust the stacking order of the movie within other layers of the HTML document.
mel200Author Commented:
Hmm.. that certainly sounds like it should work. However, I made the changes, uploaded the file, and there is no change in any of my browsers (FF, IE, Chrome). I checked the source, and this is what I have:
  <div align="left">
        <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','186','height','334','title','food','src','images/flash/rotating-images2','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','images/flash/rotating-images2' ); //end AC code
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="186" height="334" title="food">
              <param name="wmode" value="transparent" />
          <param name="movie" value="images/flash/rotating-images2.swf">
          <param name="quality" value="high">
          <embed src="images/flash/rotating-images2.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="186" height="334"></embed>
Did I make a mistake? Thanks!
mel200Author Commented:
I found this:
#  wmode - Possible values: window, opaque, transparent. Sets the Window Mode property of the Flash movie for transparency, layering, and positioning in the browser.

    * window - movie plays in its own rectangular window on a web page.
    * opaque - the movie hides everything on the page behind it.
    * transparent - the background of the HTML page shows through all transparent portions of the movie, this may slow animation performance.

That doesn't sound like what I want.... maybe I should use DHTML to play the images...
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Brian WithunCommented:
I think you need to add the wmode to the <EMBED> tag as well...

            <PARAM NAME="wmode"       value="transparent">
            <EMBED wmode="transparent"> </EMBED>
Brian WithunCommented:
Rather, OPAQUE is probably best, and I had left out a bracked on the OBJECT tag, so here is my pseudocode again:
   <PARAM NAME="wmode"       value="opaque">
   <EMBED wmode="opaque"> </EMBED>

Open in new window

mel200Author Commented:
Yes, I had done that, I think:

<embed src="images/flash/rotating-images2.swf" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="186" height="334"></embed>

Now I'm putting in a DHTML slideshow in place of the flash, and that seems to be working.
  The problem is not with your css or javascript. The problem is with the flash object.
You need to make sure the the wmode value of the flash object is set to transparent. You need to add the wmode value in two places, as shown below:

(note that it appears in two places: <param  name="wmode" value="transparent"/> within the object tag and wmode="transparent" within the embed tag). The code below is your actual code, modified to work properly so you can just copy and paste if you want:

<object height="334" width="186" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" title="food" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
<param name="movie" value="images/flash/rotating-images2.swf"/>
<param name="quality" value="high"/>
<param  name="wmode" value="transparent"/>
<embed height="334" width="186" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" wmode="transparent" src="images/flash/rotating-images2.swf" title="food"/>

Open in new window

mel200Author Commented:
Hmm.. I actually like the DH|TML slideshow better, I think I'll split the points, since your answer is definitely the definitive one from adobe, but my solution is a good one for people with simple flash shows like mine. I got my DHTML from: http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm
mel200Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now