My website has a flash header and as you’d very well know it doesn’t work on Chrome or IE. Is there any way to substitute the flash object with an image in case the browser cannot visualize it? Like some sort of html “alt” attribute or any script that allows you to do manually the change (with a button for instance)?
To some extent you can supply a fallback when flash fails—including text or images. Please provide an example of your code, though, as it depends on how you are doing this.
Might be better to ditch the flash altogether, though, as it’s not really viable these days. There are better alternatives.
You can set fallbacks for when Flash doesn’t work. Here’s an example (which you’d have to test, though, as I haven’t done this for a long time). It sets a fallback image for when flash is not available.
Might be better to ditch the flash altogether, though, as it’s not really viable these days. There are better alternatives.
I agree. In my experience that is the case almost all the time. Actually I’m only saying “almost” to account for situations that I couldn’t anticipate…
By the way, did you forget to close the embed tag? In case you did, do I need to close it after or before your suggestion (<object type="image/jpg" data="fallback.jpg"></object>)?
I kind of aggre too, even if I’m not feeling its lack of viability except when the browser doesn’t run it. Could you get the same sort of animation with CSS or other more viable ways?
I think that’s the lack of viability, to me. If it’s problem-causing, or non functional, for a large group of users, it’s not viable.
Editing to add a useful answer to question:
There’s a random example of a CSS/JS butterfly animation from a few-second Google search. I’m sure there’s other similar CSS and/or JS scripts out there that might fit your needs more exactly than this one does, though, if you take a look