A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: JS question -- substitute gif for swf or wishful thinking?

  1. #1
    Junior Member
    Join Date
    Jun 2000
    Posts
    11

    Smile

    Is there a javascript out there somewhere that would do the following or is it just wishful thinking on my part?

    Say for example that I have a 320X120 .swf that i want to include in one page on my site. But I don't want to write three different pages for different browsers - one for users with the Flash player, one for those without Flash and one for the dinosaurs who are using Lynx or Netscape 1.1. For those without Flash I want to insert a 320X120 animated or static gif in place of the swf. I don't want the viewer who doesn't have Flash to be prompted to download the plug-in. So the question is this -- is there a javascript that will say "if the user has Flash, insert swf; if the user doesn't have Flash, insert animated gif in same space; if user is still using an old browser, load a static gif" or something to that effect????


  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    266

    Flash does this for you !

    Hi,

    easy one - check your publish settings.

    Choose flash, html and gif as publish types then on your html tab select Flash 4 with Image in the template section.

    Flash then writes the detection code for you.

    Dan.


  3. #3
    Junior Member
    Join Date
    Jun 2000
    Posts
    11

    Re: Flash does this for you !

    That was easy enuff!

    Thanks, Dan

  4. #4
    Senior Member
    Join Date
    Jul 2000
    Posts
    266

    No Problem !

    No problem.

    Just out of curiosity, if anyone is using Flash 5 would you mind following the steps I detailed above and posting the detection javascript for me - I'm still on V 4

    Dan.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center