Mega Code Archive

 
Categories / JavaScript Tutorial / Document
 

IE Plugin

< html> <head> <script language="Javascript" type = "text/javascript"> <!-- if ((navigator.userAgent.indexOf('MSIE') != -1) &&  (navigator.userAgent.indexOf('Win') != -1)){   document.writeln('<script language="VBscript">');   document.writeln('Function IEPluginDetect(pluginname)');   document.writeln('  on error resume next');   document.writeln('     IEPluginDetect = False');   document.writeln('     IEPluginDetect = IsObject(CreateObject(pluginname))');   document.writeln('     If (err) then');   document.writeln('        IEPluginDetect = False');   document.writeln('     End If');   document.writeln('End Function');   document.writeln('</script>'); } //--> </script> </head> <body> <script> <!--     document.write('<b>Macromedia Flash Plugin: </b>'  + IEPluginDetect('ShockwaveFlash.ShockwaveFlash')); // --> </script> </body> </html>