Using Flash and Javascript to resolve SharePoint dynamic menus issue
by Yaroslav Pentsarskyy
If you have ever tried to make your SharePoint or non-SharePoint implementation of the site a little more dynamic you were probably thinking about rotating images or banners. And if you considered implementing them - you will know that because of the crossbrowser incompatibility JavaScript is not the best way to go.
Many solution developers choose Flash as it always renders appropriately and executes the same regardless what version of the browser you're using.
And here is the fundamental problem:
When you need to embed your flash object - you're probably using an <object> tag. Well, it's not a problem in many cases. However, if you have any dynamic content generated (such as Javascript menus) which are hovering over the Flash object - you will end up with a flash application covering your menus or any other content underneath.
This issue is caused by the fact that, by default, an <object> tag will always superimpose itself over any other content unless instructed otherwise.
And here we come to the solution. When defining your <embed> tag you need to specify the wmode tag and set trasparency mode, like this:
wmode="transparent"
You also need to insert the wmode parameter into parameters collection, like this:
<param name="wmode" value="transparent">
Hope this helps with your branding endevaurs!
Yaroslav Pentsarskyy