2001-05-09 11:56:23 +04:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><!-- -*- Mode: HTML; tab-width: 2; indent-tabs-mode: nil -*-
|
|
|
|
The contents of this file are subject to the Netscape Public License
|
|
|
|
Version 1.0 (the "NPL"); you may not use this file except in
|
|
|
|
compliance with the NPL. You may obtain a copy of the NPL at
|
|
|
|
http://www.mozilla.org/NPL/
|
|
|
|
|
|
|
|
Software distributed under the NPL is distributed on an "AS IS" basis,
|
|
|
|
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
|
|
|
for the specific language governing rights and limitations under the
|
|
|
|
NPL.
|
|
|
|
|
|
|
|
The Initial Developer of this code under the NPL is Netscape
|
|
|
|
Communications Corporation. Portions created by Netscape are
|
|
|
|
Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
|
|
|
Reserved.
|
|
|
|
|
|
|
|
Contributors:
|
|
|
|
Mark Olson <maolson@earthlink.net>
|
|
|
|
Alexey Chernyak <alexeyc@bigfoot.com>
|
2000-09-22 11:51:47 +04:00
|
|
|
-->
|
2001-05-09 11:56:23 +04:00
|
|
|
|
|
|
|
<html lang="en" dir="ltr">
|
2000-09-29 04:04:23 +04:00
|
|
|
<head>
|
2001-09-05 05:21:27 +04:00
|
|
|
<title>About Plug-ins</title>
|
2001-05-09 11:56:23 +04:00
|
|
|
<style type="text/css">
|
|
|
|
span#plugs {
|
|
|
|
font-size: xx-large;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
span#noplugs {
|
|
|
|
font-size: x-large;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
div div {
|
|
|
|
font-size: large;
|
|
|
|
font-weight: bold;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
table, th, td {
|
|
|
|
border-color: gray;
|
|
|
|
border-style: solid;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
table {
|
|
|
|
border-width: 2px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
th, td {
|
|
|
|
border-width: 1px;
|
|
|
|
padding: 5px 0;
|
|
|
|
}
|
|
|
|
th {
|
|
|
|
font-size: small;
|
|
|
|
}
|
|
|
|
th.type, th.suff {
|
|
|
|
width: 20%;
|
|
|
|
}
|
|
|
|
th.desc {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
</style>
|
2000-09-29 04:04:23 +04:00
|
|
|
</head>
|
|
|
|
<body>
|
2001-05-09 11:56:23 +04:00
|
|
|
<div>
|
|
|
|
<script type="application/x-javascript">
|
|
|
|
<!--
|
2000-09-22 11:51:47 +04:00
|
|
|
|
2001-05-09 11:56:23 +04:00
|
|
|
/* JavaScript to enumerate and display all installed plug-ins
|
2000-09-22 11:51:47 +04:00
|
|
|
|
2001-05-09 11:56:23 +04:00
|
|
|
* First, refresh plugins in case anything has been changed recently in
|
|
|
|
* prefs: (The "false" argument tells refresh not to reload or activate
|
|
|
|
* any plug-ins that would be active otherwise. In contrast, one would
|
|
|
|
* use "true" in the case of ASD instead of restarting)
|
|
|
|
*/
|
2000-09-22 11:51:47 +04:00
|
|
|
navigator.plugins.refresh(false);
|
|
|
|
|
|
|
|
|
2001-05-09 11:56:23 +04:00
|
|
|
var numPlugins = navigator.plugins.length;
|
2000-09-22 11:51:47 +04:00
|
|
|
|
|
|
|
if (numPlugins > 0)
|
2001-09-05 05:21:27 +04:00
|
|
|
document.writeln("<span id=\"plugs\">Installed plug-ins<\/span><br>");
|
2000-09-22 11:51:47 +04:00
|
|
|
else
|
2001-09-05 05:21:27 +04:00
|
|
|
document.writeln("<span id=\"noplugs\">No plug-ins are installed.<\/span><br>");
|
2000-09-22 11:51:47 +04:00
|
|
|
|
2001-09-05 05:21:27 +04:00
|
|
|
document.writeln("Find more information about browser plug-ins at ");
|
2001-10-09 11:10:20 +04:00
|
|
|
document.writeln("<a href=\"http://home.netscape.com/plugins/index.html\">Netscape.com<\/a>.");
|
2001-05-09 11:56:23 +04:00
|
|
|
document.writeln("<p><\/p><hr>");
|
2000-09-22 11:51:47 +04:00
|
|
|
|
2001-05-09 11:56:23 +04:00
|
|
|
for (var i = 0; i < numPlugins; i++)
|
2000-09-22 11:51:47 +04:00
|
|
|
{
|
2001-05-09 11:56:23 +04:00
|
|
|
var plugin = navigator.plugins[i];
|
|
|
|
|
|
|
|
if (plugin) {
|
|
|
|
document.write("<div>");
|
|
|
|
document.write(plugin.name);
|
|
|
|
document.writeln("<\/div><br>");
|
|
|
|
|
2001-09-05 05:21:27 +04:00
|
|
|
document.writeln("<dl><dd>File name:");
|
2001-05-09 11:56:23 +04:00
|
|
|
document.write(plugin.filename);
|
|
|
|
document.write("<\/dd><dd><br>");
|
|
|
|
document.write(plugin.description);
|
|
|
|
document.writeln("<\/dd><\/dl><p><\/p>");
|
|
|
|
|
|
|
|
document.writeln("<table>");
|
2001-09-05 05:21:27 +04:00
|
|
|
document.writeln("<tr><th class=\"type\">Mime Type<\/th>");
|
|
|
|
document.writeln("<th class=\"desc\">Description<\/th>");
|
|
|
|
document.writeln("<th class=\"suff\">Suffixes<\/th>");
|
|
|
|
document.writeln("<th>Enabled<\/th><\/tr>");
|
2001-05-09 11:56:23 +04:00
|
|
|
|
|
|
|
var numTypes = plugin.length;
|
|
|
|
var mimetype;
|
|
|
|
var enabled;
|
|
|
|
var enabledPlugin;
|
|
|
|
for (var j = 0; j < numTypes; j++)
|
|
|
|
{
|
|
|
|
mimetype = plugin[j];
|
|
|
|
|
|
|
|
if (mimetype)
|
|
|
|
{
|
2001-09-05 05:21:27 +04:00
|
|
|
enabled = "No";
|
2001-05-09 11:56:23 +04:00
|
|
|
enabledPlugin = mimetype.enabledPlugin;
|
|
|
|
if (enabledPlugin && (enabledPlugin.name == plugin.name))
|
2001-09-05 05:21:27 +04:00
|
|
|
enabled = "Yes";
|
2001-05-09 11:56:23 +04:00
|
|
|
|
|
|
|
document.writeln("<tr>");
|
|
|
|
document.writeln("<td>" + mimetype.type + "<\/td>");
|
|
|
|
document.writeln("<td>" + mimetype.description + "<\/td>");
|
|
|
|
document.writeln("<td>" + mimetype.suffixes + "<\/td>");
|
|
|
|
document.writeln("<td>" + enabled + "<\/td>");
|
|
|
|
document.writeln("<\/tr>");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
document.write("<\/table><p><\/p><hr><p><\/p>");
|
|
|
|
}
|
2000-09-22 11:51:47 +04:00
|
|
|
}
|
|
|
|
|
2001-05-09 11:56:23 +04:00
|
|
|
//-->
|
2000-09-29 04:04:23 +04:00
|
|
|
</script>
|
2001-05-09 11:56:23 +04:00
|
|
|
</div>
|
2000-09-29 04:04:23 +04:00
|
|
|
</body>
|
|
|
|
</html>
|