November 8th, 1999, 08:56 AM
How can I detect if a plug-in is in the client-browser??
I need to change between a gif image an a flash object, in order the flash plug-in is oris not in the client browser
November 8th, 1999, 01:20 PM
This will detect if flash is present in Netscape but for IE things work differerntly for detection since they use Active X. Here is for NS:
<!-- Hide script from old browsers
present = navigator.mimeTypes["application/x-shockwave-flash"];
document.write("You have plugin");
document.write("You dont have plugin");
// End hiding script from old browsers -->
You can also use navigator.plugins["name of plugin"] to detect the plugin but you need to know the name of the plugin. Still this only works in NS. Cant help you on IE.
November 9th, 1999, 04:43 PM
you can find a nice vbscript that checks out plugins (flash, shockwave, real, quicktime) and then you can redirect or do a document.write(). This one works very well with IE5 and no complaints yet from IE4 folks. I dont know about Netscape but it does have coding to check Netscape so assume it works (if statement).