Reputation: 127
If flash is not installed, i want to replace the flash animation with a jquery animation. BUT if flash and js are not installed, i want to display a div with a message to the user. how is it possible to check if flash is not running at the clientside without using js?
kind regards,
Upvotes: 3
Views: 522
Reputation: 22604
Do it the other way around:
If JavaScript is on, replace the div with either:
a) a Flash animation, if Flash is installed or
b) a jQuery based animation
Upvotes: 1
Reputation: 17524
Use a javascript event to replace your message with the Flash animation. If Javascript is not running, you will see the message instead.
SWFObject is a great little tool for completing exactly what you want.
Upvotes: 3
Reputation: 4225
Add to HTML body classes: "no_flash no_js". They will be your default when js & flash not available.
Then when you have js, with it's help remove no_js class. With help of js try to determine flash and if it's present, show flash else -- js animation.
Upvotes: 1