Forum Moderators: open
I have a content management system (CMS) so my client can edit her pages. The pages have a flash menu in a css layer that overlaps the html text (the flash menu has an invisible background). When using the CMS it is not possible to select text under the flash menu. So I'm wondering how to prevent flash items from loading during an edit session on the CMS?
Can anyone tell me how to do either of the following:
1.) Disable flash in IE6 (and re-enable flash after editing a page).
2.) Some code I can put in the CMS (e.g. javascript) to stop flash items loading.
If Netscape 4.x isn't an issue this function should work on most browsers:
function showHide(id) {
var obj = document.getElementById(id);
// in css set visibility: hidden
obj.style.visibility = (obj.style.visibility=='hidden')? 'visible' : 'hidden';
// or with the display property:
// in css set display: none */
// obj.style.display = (obj.style.display=='none')? 'block' : 'none';
}
In your body put the following on a button, for example, and state - onMouseUp="javascript:showHide('id');" - where the id is the layer id that is holding the menu.
Here's a good example to accomplish the same:
[webmasterworld.com ]
A good solution is on page 2 of that thread.