Greetings,

I am using SWFObject API in a site where I want to replace the entire content section of the site by a Flash-object (in order to create a text-only version of the site for search engines and for better usability support). Since the Flash-version of the site contains not only the page content but also all navigational items, I do not want to replace just a part of the HTML within #node-xx but an element much higher in the DOM (in my case #wrapper-main containing the content block as well as left/right sidebar).

In cases where the visitor doesn't have Flash enabled (or in case of a search engine) I want to display the entire body HTML as alternative text and do not need SWFObject API to display "Sorry, you need to install flash to see this content". Therefore I have commented out the "return $html" at the end of the module.

Maybe it is a good option to make the "no_flash" alternative optional?

Greetings,

Marcel

Comments

arthurf’s picture

Status: Active » Closed (works as designed)

You can actually just in $params['no_flash'] =''; which will override the default display.