Search Engine Optimizing and Accessible Flash Get the Trellian Seo Toolkit
Get our FREE SEO Guide
Subscribe to our newsletter to receive useful SEO tips, tricks, strategies, free ebooks that are available only to our subscribers and get this amazing SEO guide for free!

Your email is safe and will NEVER be shared with any other parties. And of course, you can unsubscribe at any time.

Name:
Email:
SEO Elite - #1 SEO Software

Who Else Wants To Finally Get A #1 Google Ranking In As Little As 7 Days... And Drive A Minimum Of 789 Unique Visitors To Your Websites Per Day?

Super Affiliate Wizard - 100 magical ways to increase your affiliate comissions

A must for every affiliate marketer - top 100 ways to increase your affiliate commissions

Only $9.95
Coming soon ...


Self SEO Store  
SEO forum
Website templates
Flash templates
Best hosting reviews.
Free Internet & IT Magazines.
Articles archive

Submit your article

Register
Login

Search
XML news feeds
Free RSS news reader
Contact


AddThis Feed Button

Search Engine Optimizing and Accessible Flash

Posted by Ross Johnson on: 2006-05-06 17:15:28

Self SEO > Search Engine Optimization Articles


One of the huge drawbacks to flash is the inaccessibility, and the hard time that search engines have in understanding flash sites (which lead to poor search rankings). Most of the recommendations designers have towards making it accessible and search engine friendly is to simply use flash sparingly and never use it to provide functional elements like navigation.


However this really limits what you can do with flash, and prevents you from taking advantage of all that flash can offer. There are many ways you can make flash accessible and search engine friendly while using it for more than simple design aspects.

The Basics -

If you feel your whole site needs to be flash, you should at least break it up into several pages and add an html sitemap. You can link to the sitemap at the bottom of every page so that search engines with then acknowledge that the other pages even exist. Another less than optimal, but acceptable method is creating an alternative text-only or html duplicate of your flash site.

I don't find either of these to be great ways to deal with flash. Instead breaking up flash elements, and having a mix of HTML and flash allows much more remote to provide accessible alternatives. Most designers will be saying “Well Duh” at this point, but I am talking about doing more than just using flash for banners or simple animation.

Most designers will tell you that using flash for navigation is an accessibility and search engine death wish. However, with new CSS methods you can now have navigation hidden behind flash. With these methods, users with flash see the bells and whistles that you spend so much time working on, and those who do not can still navigate normally (including search engines).

This is often refered to as Fharner Image Replacement, but instead of using a display: none box – it uses a span with a large text indent and overflow: hidden to hide the navigation and/or text. (developed by Mike Rundle)

CSS

#navigation { /* FLASH DETAILS */ }

#navigation span { text-indent: -9000px; overflow: hidden; display:inline; }

HTML

Home

The drawbacks:

This will work great for those who can not run CSS, have screen readers, and search engines. However, those who do not have flash or have flash disabled it will not show the navigation by default. To work around this, we can use javascript to enable/disable the flash and text replacement. I recommend using the Flash Detection script by Dithered.com

CSS [flash.css]

#flash_hold { }

#flash_hold span { text-indent: -9000px; overflow: hidden; display:inline; }

non-flash CSS [nonflash.css]

#flash_hold object{ display: none; }

/* Remove the text indent, so menu is visible */

#flash_hold span { text-indent: 0px; }

Javascript This will make the menu visible, with only a little increase in effort for the viewer.

Now we just need a Script to switch the CSS between Flash & Non-flash, this can be linked in the head tags

http://www.3point7designs.com/seoflash/ Here is a working example of an accessible and search engine friendly page, using this technique!

Ross Johnson is co-founder of Ann Arbor Web Design company 3.7 Designs. He also runs a Website Success Strategies blog for designers and non-designers.




Print this article    Tell a friend
Related Articles

Post New Comment

This site does not allow anonymous comments. Registered members can login to participate. Registration is free and takes only a few seconds