Results 1 to 2 of 2
Aug 16, 2010, 02:27 #1
Image instead of Flash if Flash is not enabled
I have one flash on my site but many users dont have flash installed on the store so i have decided to show image instead of flash in such situation.
If user dont have flash installed then show normal image else show the flash but how to check if user dont have flash enabled?
Aug 16, 2010, 04:29 #2
- Join Date
- Mar 2006
- Yorkshire, UK
- 93 Post(s)
- 1 Thread(s)
It's very easy!
Inside the <object>...</object> you probably have a load of parameter tags - you may also have some text along the lines of "Download Macromedia Flash".
What this does is means that if the browser can't render the Flash object, it will instead render any text or elements that are inside the <object> that it understands.
So you need to have something along the lines of:
<img src="alternative.png" alt=.........>
That way, any browser that can show the Flash will do, and any that can't will show the image, and any that can't show the image will show the alt text.