how to detect flash using SWFObject

后端 未结 2 1434
梦谈多话
梦谈多话 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
    }
    

提交回复
热议问题