Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Serving alternative html pages for flash sites



9:12 pm on Jan 28, 2009 (gmt 0)

5+ Year Member

Some artists etc. who use lots of flash on their entire domains have started serving alternative, html rich and meta tag rich pages to crawlers. They determine which page to serve by checking if the visitor can view flash. This is a really a form of cloaking since content is entirely different (usually no HTML is added to the flash pages). Anyone have any experience in how SE's treat these cases in reality? I have seen both good and bad results for these sites.


7:25 am on Jan 29, 2009 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

you want this:
swfobject - Google Code [code.google.com]

if you present essentially the same content in html that the flash enabled user sees you will not be penalized for cloaking.


3:43 pm on Jan 29, 2009 (gmt 0)

5+ Year Member

Thanks phranque.


11:45 am on Feb 2, 2009 (gmt 0)

5+ Year Member

this is only my way to do it
when you're using swf object and want to determine alternative content you should set _SESSION variables by javascript and unless you want to wait till next browser hard refresh -> execute refresh/redirect on a browser
then, you may want paste some code in your php:


<div id="example" style=" width: 680px; height: 100px; z-index:26;" >
if ( $_COOKIE["hasFlash"] != 1 ) {
Alternative content example
<script type="text/javascript">
swfobject.embedSWF("test.swf", "example",
"680", "100", "9.0.0","expressInstall.swf" );
var playerVersion = swfobject.getFlashPlayerVersion();
if ( Number ( playerVersion.major ) >= 9 ) {


[edited by: eelixduppy at 2:33 pm (utc) on Feb. 2, 2009]
[edit reason] no URLs, please [/edit]


Featured Threads

Hot Threads This Week

Hot Threads This Month