Chat with us, powered by LiveChat
Progressive enhancement ( SWFobject )

Progressive enhancement ( SWFobject )

Progressive enhancement using SWFObject

Most websites today uses some sort of Shockwave/Flash animation components
but just think “What if some of web surfer doesn’t have the Flash player
installed on their system, – what do they see?”
Unfortunately, they just see a big, blank space! It may happen due to
absence of Flash player or due to their security settings set to block
ActiveX components. Another issue with Flash movies is that the code used to
embed a Flash file into your web page does not validate according to the W3C
HTML or XHTML specifications.Due to these reasons we normally avoid Flash,
deleting all that beautiful Flash work off our web site.But now you can venture into the arena of Flash detection by using SWFObject.

If you are building Flash sites professionally, you probably move all your
content out of your Flash movie and into an XML file or keep it in a
database. This makes it much easier to allow Google to index this content by
using progressive enhancement.

Progressive enhancement is a method of web development that goes hand in
hand with Web Standards. You start with your HTML (your content), then add
CSS (your look and feel), then add in additional behavior (Javascript, Ajax,
Flash, any other interactivity that isn’t handled automatically by the
browser).
The best way to add Flash progressively is by using Javascript, or more
specifically, a script like FlashObject (SWFObject).
SWFObject is a small Javascript file used for embedding Macromedia Flash
content. The script can detect the Flash plug-in in all major web browsers
and for different Platforms ( Mac and PC ).SWFObject can make embedding
Flash movies very easily.It is also very search engine friendly,can be used
in valid HTML and XHTML1.0 documents.
SWFObject is used for detecting the Flash plugin and embedding it into your
web page.

First you lay out your page as if you are not using Flash. If you are using
a database for your content, you can spit out that data as HTML where the
Flash movie will go on the page (or maybe just a preview of the content, it’
s up to you to show Google the content you would like indexed). Then you use
SWFObject to replace this content.This causes Google to skip the Flash swf
files and only index the HTML (the content!) you place on the page. You can
place links to other pages, images, whatever you want Google to index, and
when a viewer with a browser that supports Flash visits your site, they will
then see the Flash content. This gives you full control and much greater
predictability over what content Google will index…..and its done.

Sharing

Leave your comment

Pin It on Pinterest

Share This