Flash / Animated Gifs

Hi all,
I am currently redesigning a website for someone, but they are not too keen on the use of Flash. This includes external company banners, as well as nav etc on their own site.

Except for the nav side of things, is there anyway that a Flash banner can be automatically replaced by an animated gif, if the user does not have the Flash player.

I am looking for a way that this can be done without A) The user being redirected to a pure HTML version of the site, as it is not a full Flash site to begin with , and B) without the user getting prompted to download Flash Player.

Any help/suggestions would be greatly appreciated . . . . .

cheers

Yes. :slight_smile:

I needed to do this the other day… There is a handy little piece of JavaScript that will detect whether or not the Flash Player is installed on a user’s machine. If it is, then it will display the movie. If not, it replaces it with a gif (which can be an animated gif)

Give me a moment and I’ll find the code for you. :slight_smile:

read here for more info buddy it has two ways of doing it refer to the Flash image or animation section

http://www.kirupa.com/developer/mx/detection.htm

Right, this is the code that I used…

      <OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" CODEBASE="http://active.macromedia.com/flash/cabs/swflash.cab#version=3,0,0,11" WIDTH="1000" HEIGHT="200" NAME="sw" ID="sw">
  <PARAM NAME="Movie" VALUE="flash/intro_csg.swf">
  <PARAM NAME="quality" VALUE="high">
  <PARAM NAME="Loop" VALUE="true">
  <PARAM NAME="play" VALUE="true">

  <SCRIPT LANGUAGE="JavaScript">
  if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]){
    document.write('<EMBED SRC="flash/intro_csg.swf" WIDTH="1000" HEIGHT="200" LOOP="true" QUALITY="high">');
  }
  else {
    document.write('<IMG SRC="img/img_banner_01.gif" width="250" height="200" ALT="Non-Flash Welcome">');	 
  }
  </SCRIPT>

</OBJECT>

So this runs a quick check to detect for Flash. If it finds it, it will embed the movie. If not, it writes an IMG SRC into the HTML. You should be able to tweak this about a bit to suit your needs. :slight_smile:

Thanks a stack, guys.
I think that is exactly what I need.

Cheers:)