\n');
}
return result;
}
function DetectObject(ClassID, Name) {
if (ie) {
if (IEDetectObject(ClassID)) {
return true;
} else {
return false;
}
}
}
function writeDetectProp(property, Name)
{
document.write("
| ");
if (Name)
document.write(Name);
else
document.write(property);
document.write(" | ");
if (eval(property))
document.write(eval(property));
else
document.write("not available");
document.write(" |
");
}
function writePlugins()
{ // The number of plugins
var numPlugins = 0;
if (navigator.plugins)
numPlugins = navigator.plugins.length;
for (var i=0; i < numPlugins; i++)
{
currentPlugin = navigator.plugins[i];
writeDetectProp("currentPlugin.name");
writeDetectProp("currentPlugin.description");
writeDetectProp("currentPlugin.filename");
// The number of mime-types associated with this plugin
numTypes = currentPlugin.length
// Write the mime-types
for (j = 0; j < numTypes; j++)
{
writeDetectProp("currentPlugin[j].type")
writeDetectProp("currentPlugin[j].enabledPlugin")
writeDetectProp("currentPlugin[j].description")
writeDetectProp("currentPlugin[j].suffixes")
}
}
}
if (ie) {
acro3 = DetectObject("PDF.PdfCtrl.3", "Adobe Acrobat Viewer 3");
acro4 = DetectObject("PDF.PdfCtrl.4", "Adobe Acrobat Viewer 4");
acro5 = DetectObject("PDF.PdfCtrl.5", "Adobe Acrobat Viewer 5");
acro6 = DetectObject("PDF.PdfCtrl.6", "Adobe Acrobat Viewer 6");
flash4 = DetectObject("ShockwaveFlash.ShockwaveFlash.4", "Flash 4");
flash5 = DetectObject("ShockwaveFlash.ShockwaveFlash.5", "Flash 5");
flash6 = DetectObject("ShockwaveFlash.ShockwaveFlash.6", "Flash 6");
flash7 = DetectObject("ShockwaveFlash.ShockwaveFlash.7", "Flash 7");
quickt = DetectObject("QuickTimeCheckObject.QuickTimeCheck.1", "QuickTime");
}
This page was last modified: October 18 2006 14:09:58.
|
|