Here we encounter a new complication: Explorerson Mac do not support VBScript, so it is fundamentally impossible to detect any plugin in Explorer 3 and 4on Mac. The only way to check for plugins in Explorer is by using VBScript. The only exception to thisrule is Explorer 5 on Mac, which supports both arrays (sensible decision!). Since Opera on Mac and Linux, iCab and Hotjava only support the mimeTypes array, detectingwhich Flash version is present is not possible in these browsers.Įxplorer confuses the issue by leaving the arrays empty, even though both exist, so that according toJavaScript Explorer never has any plugins and does not support any mime types. The mime typehasn't changed with Flash versions, though, so you cannot tell which version of Flashthe user has. The plugins array is by far the most interesting because it also contains versioninformation, while the mimeTypes array only tells us whether the browser can handle the application/x-shockwave-flash mime type (= if Flash is installed). Netscape 2 and Konqueror do not support either array, so you cannot detect Flashin those browsers. The theoretical way to detect the Flash plugin is to checkeither the array ugins or arrays are filled with all plugins and mime types the browsercan handle and you can check them to see if it can deal with Flash movies. This combination of JavaScript and VBScript will detect if your users have installed theFlash plugin and, if so, which version.After you have detected the presence/absence of the plugin, you can take appropriate measures.įirst of all, let's see if you have Flash installed and, if so, which version: So this script definitely works for more plugins than just Flash. Interestingly, Apple has created a Quicktime detection script that is essentially the same as my scriptand may be based on it. I have heard (but not tested) that detecting the Flash version works in iCab 2.7.1.The Flash version cannot be detected in Opera 5 on Mac and Linuxand Hotjava.Flash cannot be detected in Netscape 2, Explorer 3 and 4 on Mac, Konqueror and Ice Browser.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |