home *** CD-ROM | disk | FTP | other *** search
/ Your Business Pak / BusinessPak2.iso / Netscape / CD / comm.z / resdll.dll / RCDATA / ABOUTPLG next >
Text File  |  1998-10-20  |  2KB  |  72 lines

  1. <HTML>
  2. <HEAD>
  3. <TITLE>About Plug-ins</TITLE>
  4. </HEAD>
  5. <BODY>
  6. <SCRIPT language="javascript">
  7.  
  8. <!-- JavaScript to enumerate and display all installed plug-ins -->
  9.  
  10. <!-- First, refresh plugins in case anything has been changed recently in prefs:            -->
  11. <!-- (The "false" argument tells refresh not to reload or activate any plugins that would    -->
  12. <!-- be active otherwise.  In contrast, one would use "true" in the case of ASD instead of    -->
  13. <!-- restarting)                                                                            -->
  14. navigator.plugins.refresh(false);
  15.  
  16.  
  17. numPlugins = navigator.plugins.length;
  18.  
  19. if (numPlugins > 0)
  20.     document.writeln("<b><font size=+3>Installed plug-ins</font></b><br>");
  21. else
  22.     document.writeln("<b><font size=+2>No plug-ins are installed.</font></b><br>");
  23.  
  24. document.writeln("For more information on Netscape plug-ins, <A HREF=http://home.netscape.com/plugins/>click here</A>.<p><hr>");
  25.  
  26. for (i = 0; i < numPlugins; i++)
  27. {
  28.     plugin = navigator.plugins[i];
  29.     
  30.     document.write("<center><font size=+1><b>");
  31.     document.write(plugin.name);
  32.     document.writeln("</b></font></center><br>");
  33.     
  34.     document.writeln("<dl><dd>File name:");
  35.     document.write(plugin.filename);
  36.     document.write("<dd><br>");
  37.     document.write(plugin.description);
  38.     document.writeln("</dl><p>");
  39.  
  40.     document.writeln("<table width=100% border=2 cellpadding=5>");
  41.     document.writeln("<tr><th width=20%><font size=-1>Mime Type</font></th>");
  42.     document.writeln("<th width=50%><font size=-1>Description</font></th>");
  43.     document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
  44.     document.writeln("<th><font size=-1>Enabled</th></tr>");
  45.     numTypes = plugin.length;
  46.     for (j = 0; j < numTypes; j++)
  47.     {
  48.         mimetype = plugin[j];
  49.         
  50.         if (mimetype)
  51.         {
  52.             enabled = "No";
  53.             enabledPlugin = mimetype.enabledPlugin;
  54.             if (enabledPlugin && (enabledPlugin.name == plugin.name))
  55.                 enabled = "Yes";
  56.  
  57.             document.writeln("<tr align=center>");
  58.             document.writeln("<td>" + mimetype.type + "</td>");
  59.             document.writeln("<td>" + mimetype.description + "</td>");
  60.             document.writeln("<td>" + mimetype.suffixes + "</td>");
  61.             document.writeln("<td>" + enabled + "</td>");
  62.             document.writeln("</tr>");
  63.         }
  64.     }
  65.     
  66.     document.write("</table><p><hr><p>");
  67. }
  68.  
  69. </SCRIPT>
  70. </BODY>
  71. </HTML>