Solved

css menu behind flash in IE

Posted on 2013-05-28
8
308 Views
Last Modified: 2013-05-28
Hi. This works in all browsers except IE just for a change. I have a css menu that displays on top of the flash in all other browsers but in IE it drops down behind the flash and you can't see it! Is there a way to fix that? Many thanks.
0
Comment
Question by:jonofat
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 23

Expert Comment

by:tailoreddigital
ID: 39202186
Could you give a link to the problem menu?
0
 
LVL 10

Assisted Solution

by:Ishaan Rawat
Ishaan Rawat earned 100 total points
ID: 39202209
0
 
LVL 53

Accepted Solution

by:
COBOLdinosaur earned 400 total points
ID: 39202212
Make sure the menu elements have a z-index that is higher than the flash and in the flash set wmode to transparent.

Cd&
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 

Author Comment

by:jonofat
ID: 39202258
This is the flash script I got online:

<script type="text/javascript" src="js/swfobject.js"></script>
		
		<script type="text/javascript">
// JAVASCRIPT VARS
			// cache buster
			var cacheBuster = "?t=" + Date.parse(new Date());		
			
			// stage dimensions
			var stageW = 571;//"100%";
			var stageH = 487;//"100%";
			
			
			// ATTRIBUTES
		    var attributes = {};
		    attributes.id = 'FlabellComponent';
		    attributes.name = attributes.id;
		    
			// PARAMS
			var params = {};
			params.bgcolor = "#ffffff";
			

		    /* FLASH VARS */
			var flashvars = {};				
			
			/// if commented / delete these lines, the component will take the stage dimensions defined 
			/// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml			
			flashvars.componentWidth = stageW;
			flashvars.componentHeight = stageH;
			
			/// path to the content folder(where the xml files, images or video are nested)
			/// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
			flashvars.pathToFiles = "banner/";
			flashvars.xmlPath = "xml/banner.xml";
						
			
			/** EMBED THE SWF**/
			swfobject.embedSWF("preview.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "js/expressInstall.swf", flashvars, params);

Open in new window


And the menu is contained in a DIV that makes no mention of z-index. Not sure if this info is helpful or not.
0
 
LVL 10

Expert Comment

by:Ishaan Rawat
ID: 39202272
Try it... Mine didn't work????
0
 

Author Comment

by:jonofat
ID: 39202280
IshaanRawat, I haven't tried it because I don't know how? I don't know where to put the code in relation to the code I have.
0
 

Author Comment

by:jonofat
ID: 39202364
COBOLdinosaur, your idea worked the best. I added :

params.wmode = "transparent";

and it now works!
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 39202402
Yeah that generally solves it about 99% of the time.

Cd&
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question