Flash objects hide Advanced Layer Popup window
I use Flash and Advanced Layer Popup on my site. When the popup window appears on a page with Flash object, it pops up under the flash movie. How can I fix this? Answer:
This is due the way the browser handles flash objects.
For more information check the article of Microsoft How the Z-index Attribute Works for HTML Elements.
To fix it add the following parameters to the code of you flash object:
* Add the following element into your object element:
<param name="wmode" value="transparent" />
* Add the following attribute to the embed tag:
wmode="transparent"
The resulting code could look like this:
<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="400" height="400" id="FlashImageGallery" align="middle">
<param name="wmode" value="transparent" />
<param name="FlashVars" value="Gallery=Images/FlashImageGallery.xml" />
<param name="movie" value="dmxFlashGallery2.swf" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="bgcolor" value="#00CCFF" />
<embed src="dmxFlashGallery2.swf" id="FlashImageGallery" quality="best" flashvars="Gallery=Images/FlashImageGallery.xml" scale="noscale" bgcolor="#00CCFF" type="application/x-shockwave-flash" wmode="transparent" width="400" height="400" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
If you use the Adobe workaround for Flash and Shockwave content described in: External JavaScript solution 2: For multiple occurrences of embedded content
You should add the following parameters to AC_FL_RunContent JavaScript function:
'wmode','transparent'
The resulting code may look like this:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
'width','400','height','400','id','FlashImageGallery','align','middle','src',
'dmxFlashGallery2','quality','best','flashvars','Gallery=Images/FlashImageGallery.xml'
,'scale','noscale','bgcolor','#00CCFF','wmode','transparent','pluginspage',
'http://www.macromedia.com/go/getflashplayer','movie','dmxFlashGallery2' );
//end AC code
</script>
Comments
Be the first to write a comment
You must me logged in to write a comment.