Wednesday, May 13, 2009

solution: Css menu hide behind Flash movie


Sometimes pages have objects such as select boxes, flash objects, iframes, applets, etc. These objects always have a higher z-order, so DHTML objects (e.g. submenus) are shown under them.

Flash Layer Overlap Menu can drop down submenus over all the objects of the page. If for some reasons a submenu can't drop down over an object the latter will be hidden for a time when the submenu is shown.

To enable checking of intersection with selects, iframes, movies, set the following menu parameter:

var dmObjectsCheck = 1;

Fix for flash in Firefox!
If you don't want the flash to hide under submenus in Firefox you should do the following things:

1) You should use engine files v2.4 or higher.
2) See, how you should install flash on your pages.





You should add "opaque" parameter for and tags.

3) Set
var dmObjectsCheck=1;

4) Add the following function in the beginning of your data file

function dm_ext_ruleObjectHide()
{
return false;
}


If for some reasons a submenu doesn't overlap flash on Safari correctly you can hide your flash object for a time when the submenu is shown. To do it you should write this function in the following way:

function dm_ext_ruleObjectHide()

{
// Safari detect
if ((parseInt(navigator.productSub)>=20020000) && (navigator.vendor.indexOf('Apple Computer') != -1) && (navigator.product=='Gecko'))
return true;
else
return false;


 

Webdoor. Copyright 2009 All Rights Reserved Revolution Two Church theme by Brian Gardner Blog Skins