I want to create a photo开发者_运维技巧 browser web widget that can be embedded in a web page (e.g alice's blog) but I am not sure whether I should go the flash or javascript route.
Flickr went with a flash based widget. Why would they do it in flash over javascript?
And conversely, why would you chose js based widget over flash.
Flash
Pros
- Better suited for animations and such.
- No stupid issues like IE 6 png or CSS issues
Cons
- Bad for SEO and usability. Of course you can include everything that is in the Flash as HTML in the page, and read them from Flash.
Apple resists it.
...
Javascript
Pros
- Less obtrusive and more SEO-friendly.
- You don't need to know Flash.
Cons
- Generally you can only achieve a small set of animations and effects that would be possible in Flash.
- You should check your CSS, HTML, and if you plan to support IE 6 (there are still an unnegligible number of users using it), transparent png's.
精彩评论