PDA

View Full Version : Alternative Content using AC_RunActiveContent.js


MSR
03-06-2008, 06:29 PM
Hi,

I am using Adobe's AC_RunActiveContent.js to embed Flash content on my pages and I'm wondering if it's possible to display alternative content if a user doesn't have Flash using that method, e.g. an alternative image and text.

Thanks for your help.

asf8
03-06-2008, 07:45 PM
Hi,

I am using Adobe's AC_RunActiveContent.js to embed Flash content on my pages and I'm wondering if it's possible to display alternative content if a user doesn't have Flash using that method, e.g. an alternative image and text.

Thanks for your help.

You might want to consider switching to SWFobject (much simpler)
http://blog.deconcept.com/swfobject/ You can find everything you need at that link, instructions, samples etc..

<div id="flashcontent">
This text is replaced by the Flash movie.
You can put whatever you like here.
</div>

You might also like the redirectUrl

redirectUrl - If you wish to redirect users who don't have the correct plug-in version, use this parameter and they will be redirected.

Again that link has everything you need.

MSR
03-07-2008, 03:16 PM
Thanks, SWFObject seems great except for one thing:

If a user has Flash installed but no JavaScript they will see the alternative content rather than the Flash. Is there anyway around this?

Thanks again