Providing alternative images if Adobe Flash isn't available

前端 未结 6 1305
我寻月下人不归
我寻月下人不归 2020-12-24 14:09

Are there any ways providing an alternate GIF/PNG image, in case the user has no Adobe Flash installed and/or deactivated. I’ve found recommendations, like the following fro

6条回答
  •  庸人自扰
    2020-12-24 15:12

    I don't know why you want to avoid javascript, it is the best solution when dealing with Flash.

    using the SWFObjects Library (the best known so far for the matter) you can do this:

     
     
     
      My Home Page  
      
      
     
     
     

    what the script does is replace the splashintro div with the flash file, if the browser does not support Flash, then does nothing and the splash_noflash.png will be shown.

    P.S. With this technique you are ready for the iPhone, instead of showing the blue cube, it will show the image :)

提交回复
热议问题