Invisible Gold - Your website should be easy to edit!
Your Website Should be Easy to Edit
Search InvisibleGold.com For:
Technical Support Forum
Template Library
Online Documentation
Articles
Technical Support Forum
Product History
Creating Invisible Gold Powered Websites

NutritionWithJoy.com
NutritionWithJoy.com

"I feel quite comfortable in being able to self-maintain the site on a regular basis. Part of that comfort comes from knowing Invisible Gold is still standing by ready to provide whatever technical support I need when I need it."

Bob Ellis
Condo Community Member
WaldenWoodsCT.com

How do I get a Flash movie to show up under a drop down menu (CSS or javascript)?

Return To Topics List
john

7/19/2010
12:26:43 PM
Answer: you need to set the wmode value to "transparent" when embedded the movie into the page.

For example, you could use a javascript function like this:

function writeFlash(fpath,w,h,alt) {
	
	var alternateContent = alt ? alt : 'Some content on this page requires the latest' +  
'Flash Player.';

	var fpath = fpath.replace(/.swf/,'');
	var fname = fpath.split('/').pop();

	if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		var hasRightVersion = DetectFlashVer(requiredMajorVersion, 
requiredMinorVersion, requiredRevision);
		if(hasRightVersion) {  // if we've detected an acceptable version
			// embed the flash movie
			AC_FL_RunContent(
				'codebase', 'http://download.macromedia.com' + 
'/pub/shockwave/cabs/' + 'flash/swflash.cab#version=' + 
requiredMajorVersion + ',0,0,0',
				'width', w,
				'height', h,
				'src', fpath,
				'quality', 'high',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'align', 'middle',
				'play', 'true',
				'loop', 'true',
				'scale', 'showall',
				'wmode', 'transparent',
				'devicefont', 'false',
				'id', fname,
				'bgcolor', '#ffffff',
				'name', fname,
				'menu', 'true',
				'allowScriptAccess','sameDomain',
				'allowFullScreen','false',
				'movie', fpath,
				'salign', ''
				); //end AC code
		} else {  // flash is too old or we can't detect the plugin
			document.write(alternateContent);  // insert non-flash content
		}
	}
}
Invisible Gold - Your website should be easy to edit!

Still Confused? Have a Suggestion? - We want to help. Type a few words to let us know what's on your mind. Include an email address if you want a response.

Email Address (optional):
Update - The old code stopped working on FireFox 4.0+
The old menu.js file stopped working. Do two things to fix it:

1) add style="position:relative;
.... more

Invisible Gold - Your website should be easy to edit!