homepage Welcome to WebmasterWorld Guest from 54.145.209.77
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
Serving alternative html pages for flash sites
MarieN

5+ Year Member



 
Msg#: 3836826 posted 9:12 pm on Jan 28, 2009 (gmt 0)

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.

 

phranque

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



 
Msg#: 3836826 posted 7:25 am on Jan 29, 2009 (gmt 0)

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.

MarieN

5+ Year Member



 
Msg#: 3836826 posted 3:43 pm on Jan 29, 2009 (gmt 0)

Thanks phranque.

grouch

5+ Year Member



 
Msg#: 3836826 posted 11:45 am on Feb 2, 2009 (gmt 0)

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:

<?php

<div id="example" style=" width: 680px; height: 100px; z-index:26;" >
<?php
if ( $_COOKIE["hasFlash"] != 1 ) {
?>
Alternative content example
<?php
}
?>
</div>
<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 ) {
setCookie("hasFlash",1);
}
</script>

?>

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved