PDA

View Full Version : flash <noscript> ?


guermantes
12-18-2009, 02:54 PM
Hi,
For javascript one can declare a <noscript> that kicks in if the user has javascript turned off.

Is there a similar function for flash?

Imagine a site header with flash content. Users without the flash plugin installed could be presented with a static image as header (instead of the "download flash plugin" symbol), whereas users with the flash plugin installed would see the animated header.

Is such a thing possible?

Thanks!

Apostropartheid
12-18-2009, 03:27 PM
The object element by default uses a "fallback" mechanism: if it cannot be displayed, the next set of content inside will; if that can't, the next will, &c. &c.

_Aerospace_Eng_
12-18-2009, 07:45 PM
Hi,
For javascript one can declare a <noscript> that kicks in if the user has javascript turned off.

Is there a similar function for flash?

Imagine a site header with flash content. Users without the flash plugin installed could be presented with a static image as header (instead of the "download flash plugin" symbol), whereas users with the flash plugin installed would see the animated header.

Is such a thing possible?

Thanks!
For your purposes I think using swfobject is the way to go. It will show the alternative content if they can't load the flash for whatever reason whether they have js turned off or they don't have the correct flash version installed.

http://code.google.com/p/swfobject/