|
Posted by Daan on 06/17/07 14:00
On one of my websites, I have a menu in the same style as the menu on
http://codeigniter.com/user_guide/ However, when I replace the text
content with a flash menu, the behaviour becomes broken: Firefox won't
display the flash movie until you click on the place where it should
appear, and Safari still displays part of the movie, even when the
menu is not expanded.
I tried to create a workaround using the following javascript code:
function toggleMenu() {
myHeight.toggle();
if (menuShowing) {
document.getElementById('objectFlashMenu').style.visibility='hidden';
menuShowing = false;
} else {
setTimeout("document.getElementById('objectFlashMenu').style.visibility='visible';",
500);
menuShowing = true;
}
}
In Safari 3 on OS X this works fine, however, in Firefox it still
won't display the flash movie until it is clicked on and in IE7 the
behaviour is 'weird', sometimes it works, sometimes not.
Does anyone have experience with this kind of behaviour and perhaps
know of a fix or workaround? Thanks for any help.
Navigation:
[Reply to this message]
|