how to detect flash using SWFObject

后端 未结 2 1436
梦谈多话
梦谈多话 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:43

    if (swfobject.hasFlashPlayerVersion("9.0.18")) {
      // has Flash
    }
    else {
      // no Flash
    }
    

    or replace "9.0.18" with the minimum version you require

提交回复
热议问题