Akif's profileAkif - akif.tech.aePhotosBlogListsMore ![]() | Help |
|
September 26 JavaScript code to detect the Flash Player 4.0 or laterSometimes it is required that your web page should validate, before displaying swf files, that whether flash plugin is installed on client computer or not. So try below code and enjoy:
var plugin = (navigator.mimeTypes &&
navigator.mimeTypes["application/x-shockwave-flash"] ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0); if (plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4) { //Flash 4 or greater is available } else { //Flash 4 is not available } TrackbacksThe trackback URL for this entry is: http://aakif.spaces.live.com/blog/cns!C8D5222E0E2125AE!580.trak Weblogs that reference this entry
|
|
|