Click to See Complete Forum and Search --> : plugin detection / <div> layer visibility


fakerobot
11-04-2003, 11:03 AM
hey there -

i'm wondering if it's possible to check for a plugin (in this case Flash) and based on the result show/hide a layer.

i'm putting together a page that features a layer containing a flash movie which floats over the content of the page. the flash piece is set on a transparency and provides supplemental information about the other elements on the page. so basically, it's non-essential and not something an alternate gif could replicate.

so what i'd like to do is this: set up the page exactly as described above with a layer floating over my content area. onload i'd like to check for the flash plugin - if there, show my layer (<div>) if no plugin, hide layer.

this seems pretty straightforward to me, but my javascript isn't very good and i'm having a lot of difficulty.

any thoughts?