0

I've been using SWFObject for years via the static publishing method, but wanted to know if there was some variable I can check to see if Flash is available/installed when the user visits a page.

I want my JavaScript or jQuery to show mobile users alternative content, which will be different than what desktop users get as alternative content.

hardbizkit
  • 37
  • 7
  • 1
    http://stackoverflow.com/a/3336320/909180 – Kristoffer Jälén Oct 01 '14 at 20:14
  • Possible duplicate of [How can I detect if Flash is installed and if not, display a hidden div that informs the user?](http://stackoverflow.com/questions/998245/how-can-i-detect-if-flash-is-installed-and-if-not-display-a-hidden-div-that-inf) – Zze Dec 01 '16 at 05:24

2 Answers2

0

Probably navigator.mimeTypes could help you (if i understands your properly)

'application/x-shockwave-flash' in navigator.mimeTypes
Lesha Ogonkov
  • 1,218
  • 8
  • 20
0

You could do it this way in JQuery as well using
<script type="text/javascript" src="jquery.jqplugin.1.0.2.min.js"></script> if ($.browser.flash == true) { alert("WE HAVE FLASH :D"); }

For further help: http://madhavvyas.blogspot.com.au/2011/03/detect-flash-using-jquery.html

Zze
  • 18,229
  • 13
  • 85
  • 118