You are here: Problems with displaying a flash movie in a showing / hiding div « HTML « IT news, forums, messages
Problems with displaying a flash movie in a showing / hiding div

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация