Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jul 2011
    Posts
    13
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question When flash not an option, what's alternative?

    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!

  • #2
    Regular Coder
    Join Date
    Mar 2011
    Posts
    148
    Thanks
    0
    Thanked 20 Times in 20 Posts
    HI,
    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 some examples.

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,696
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    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/


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •