how to detect flash using SWFObject

后端 未结 2 1350
梦谈多话
梦谈多话 2020-12-17 15:56

I have downloaded SWFObject, and included it in my website. Now I want to simply get a true or false value based on whether or not Flash is install

相关标签:
2条回答
  • 2020-12-17 16:41

    If You use jQuery SWFObject you could use:

    if (!$.flash.hasVersion('9')) {
     //has Flash
    }
    else {
     //no_flash
    }
    
    0 讨论(0)
  • 2020-12-17 16:43
    if (swfobject.hasFlashPlayerVersion("9.0.18")) {
      // has Flash
    }
    else {
      // no Flash
    }
    

    or replace "9.0.18" with the minimum version you require

    0 讨论(0)
提交回复
热议问题