View Full Version : When flash not an option, what's alternative?

12-24-2011, 11:26 AM
I’d like to add an animated graphic to my website’s landing page – it has no functional purposes other than simple esthetic reasons. I’ve created the animation in Flash, but I know flash is still incompatible on quite a few devices such as iPads and iPhones…etc.

So is there an alternative that’s compatible with all browsers/devices: Shall I use a movie instead of flash format? I know one alternative is to render it as an animated gif – but I’m hoping for something smoother.

Thanks in advance!

12-24-2011, 12:03 PM
Like you said, an alternative is a GIF image, another ideea is to use the HTML <object> tag. I think it supports SWF and FLV, or MOV.
See here HTML object (http://www.coursesweb.net/html/object-tag) some examples.

12-24-2011, 12:38 PM
No, the object element is not an appropriate alternative (even though it should be). Depending on the complexity of the animation you can create an image sprite, to be used as background of an element, and “animate” the background position (i. e. change the position values dynamically) with JavaScript. An article I found with a quick search is on http://addyosmani.com/blog/jquery-sprite-animation/