|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 Thanks! |
|
#2
|
|||
|
|||
|
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:
<HTML> <HEAD> <TITLE>Detecting Plugins</TITLE> <SCRIPT LANGUAGE=JAVASCRIPT TYPE="TEXT/JAVASCRIPT"> <!-- Hide script from old browsers present = navigator.mimeTypes["application/x-shockwave-flash"]; if (present) document.write("You have plugin"); else document.write("You dont have plugin"); // End hiding script from old browsers --> </SCRIPT> </HEAD> <BODY> </BODY> </HTML> 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. Spookster |
|
#3
|
|||
|
|||
|
At http://www.hotwired.com/webmonkey/javascript/code_library/
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). |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Detect plug-in |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|