I have a menu bar which has several submenu items. The homepage contains a flash animation which is located under the menu bar. When the submenu items are over the flash file, the flash file will be displayed over the menu bar. I tried with z-index, but it won't work.
This problem only happens in IE.
Any tips?
Thanks
Yes Chris,
You have to set an attribute to flash embed code
This will work
Use these value instead 'transparent':
I was finally able to find a solution which would work on both all the browers.
If I used
, I would get the desired output on IE but not on firefox and if i used
, i got the desired output in firefox but not ie.
So I decided to use both which works on all the browsers
Where you insert the flash file, you need to set the window mode to transparent:
There is a better solution to this as adding that parameter does not always work especially if using flash object within a div.
At the end of the page register the flash object like so:
Then call a javascript function like so:
This function does the following:
And this works on all browsers 100%
You can also use:
Now if you are calling actions on the div tag like for example:
or document.getElementById('MyDiv').style.visibility = 'none';
What you need to do is first do the div action then call the flash visibilty in that order:
Enjoy !
Muneer and Tim already gave a good answer but I'd like to add some additional infos:
transparent
andopaque
values will cause an accessibility problem, cause they hide the content of your flash object to screen readers. Only the default value ofwindow
is OK for screen readers