How to detect browser no flash give alternate with gif

Let see, we have one file .swf and one file .gif and we want display the flash file first, and if the browser doesn't support, it will display the .gif version.
Here is the code.

JAVASCRIPT CODE:

1 comment:

Unknown said...

why wouldn't you just use swfobject? =]

http://blog.deconcept.com/swfobject/