Forum Moderators: open

Message Too Old, No Replies

How to disable flash player?

         

kapow

4:50 pm on Nov 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How to disable flash player?

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.

winstun

8:15 pm on Nov 27, 2003 (gmt 0)

10+ Year Member



If feasable, you could try a show/ hide javascript function on the layer that the flash menu is in. You already stated that the layer is utilizing css so simply set either the visibility or display property.

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.

Powdork

8:33 am on Nov 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm also interested in disabling Flash, but for a different reason. As an editor for Joeant I often run across Flash sites and add 'Flash required' to the description for the listing. The problem is I don't really know if Flash is required. I would like to be able to disable flash, revisit the site, and get that user experience before I say it is required.
Any ideas?

bill

8:48 am on Nov 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The simplest way would be to use something like Opera, and then you could turn on and off support for all plugins with a simple keyboard shortcut.

In IE you have to disable ActiveX to kill Flash.

Powdork

5:41 pm on Nov 29, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In IE you have to disable ActiveX to kill Flash.
Ah, I wasn't sure if that killed it all, or just part of it. Anyway, its not that difficult.
Tools-Internet Options-Security-Custom Level. Then click the radio button marked disable for the first 5 items.