PDA

View Full Version : swf or jpg


many_tentacles
03-06-2006, 01:29 PM
Hi

I want to set up a page which includes a small swf animation, but if the user does not have the plugin installed, i want this to be replaced by a plain jpg. Is this possible??... i think i've seen similar things on other sites but can't work out how it's been achieved.

If anyone could point me in the right direction, that would be great stuff.

thanks

SAND
03-06-2006, 04:40 PM
Not that I know of. Why don`t you make the small .swf into a .gif so all users can see it?

many_tentacles
03-06-2006, 05:25 PM
it's a small swf but not that small! the gif would be crazy large!

Beagle
03-06-2006, 06:24 PM
Javascript has access to the plugins array of the browser. Unfortunately, it's not standard across browsers. You'll have to do a lot of digging for it.

Google for "JavaScript detecting Flash Plugin"