File indexing completed on 2024-05-12 15:40:06

0001 <HTML>
0002 <HEAD>
0003 <TITLE>About Plug-ins</TITLE>
0004 </HEAD>
0005 <BODY>
0006 <SCRIPT language="javascript">
0007 
0008 
0009 <!-- JavaScript to enumerate and display all installed plug-ins -->
0010 
0011 <!-- First, refresh plugins in case anything has been changed recently in prefs:                        -->
0012 <!-- (The "false" argument tells refresh not to reload or activate any plugins that would       -->
0013 <!-- be active otherwise.  In contrast, one would use "true" in the case of ASD instead of      -->
0014 <!-- restarting)                                                                                                                                                        -->
0015 navigator.plugins.refresh(false);
0016 
0017 
0018 numPlugins = navigator.plugins.length;
0019 
0020 if (numPlugins > 0)
0021         document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
0022 else
0023         document.writeln("<b><font size=+2>No plug-ins are installed.</font></b><br>");
0024 
0025 document.writeln("For more information on Netscape plug-ins, <A HREF=http://home.netscape.com/plugins/>click here</A>.<p><hr>");
0026 
0027 for (i = 0; i < numPlugins; i++)
0028 {
0029         plugin = navigator.plugins[i];
0030         
0031         document.write("<center><font size=+1><b>");
0032         document.write(plugin.name);
0033         document.writeln("</b></font></center><br>");
0034         
0035         document.writeln("<dl><dd>File name:");
0036         document.write(plugin.filename);
0037         document.write("<dd><br>");
0038         document.write(plugin.description);
0039         document.writeln("</dl><p>");
0040 
0041         document.writeln("<table width=100% border=2 cellpadding=5>");
0042         document.writeln("<tr><th width=20%><font size=-1>Mime Type</font></th>");
0043         document.writeln("<th width=50%><font size=-1>Description</font></th>");
0044         document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
0045         document.writeln("<th><font size=-1>Enabled</th></tr>");
0046         numTypes = plugin.length;
0047         for (j = 0; j < numTypes; j++)
0048         {
0049                 mimetype = plugin[j];
0050                 
0051                 if (mimetype)
0052                 {
0053                         enabled = "No";
0054                         enabledPlugin = mimetype.enabledPlugin;
0055                         if (enabledPlugin && (enabledPlugin.name == plugin.name))
0056                                 enabled = "Yes";
0057 
0058                         document.writeln("<tr align=center>");
0059                         document.writeln("<td>" + mimetype.type + "</td>");
0060                         document.writeln("<td>" + mimetype.description + "</td>");
0061                         document.writeln("<td>" + mimetype.suffixes + "</td>");
0062                         document.writeln("<td>" + enabled + "</td>");
0063                         document.writeln("</tr>");
0064                 }
0065         }
0066         
0067         document.write("</table><p><hr><p>");
0068 }
0069 
0070 
0071 </SCRIPT>
0072 </BODY>
0073 </HTML>