Forum Moderators: mack

Message Too Old, No Replies

Detect Flash replace with HTML

         

limbo

10:27 am on Nov 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is there a snippet of code that will detect if a user has a version of flash and either play the flash movie or replace with html instead.

In this instance I want to use a flash menu as opposed to GIFS rollover Jscript - but I am aware of the % of users who won't be able to view it.

Ta

Limbo

benihana

12:02 pm on Nov 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi limbo
theres lots of scripts to do this kind of thing, but i think your into the realm of javascript, which obviously has its own issues i.e. maybe disabled.

i think possibly the safest option would be to use js to check for flash, and also put your replacement html in the <noscript> tags.

cheers
ben

limbo

10:11 am on Nov 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks Ben

I had assumed that JS was the way to do it but was hoping for a specific script or tutorial as I can't find anything of merit.

I use javascript in most of my sites in one level or another and test using JS disabled browser to check for that it degrades faultlessly.

I wonder how many users have JS turned off? Are companies like AOL, who are championing user control like popup killers actually having an adverse effect on the design of web pages by limiting the tools at our disposal?