Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: Javascript system configuration scripts?
From: Eric Dunham
Date: Sat, 4 Mar 2000 06:46:58 GMT

There are several different properties and methods off different objects
that you can utilize to get this information.
For example,
------------------------------------------------------------------------
<html>
<head>
<title>JavaScript Test</title>
<style>
<!--
td,tr,th,caption,body,p{
font-size:7pt;
font-family:verdana,tahoma,serif;
color:#0e2774;
}
-->
</style>
</head>
<body bgcolor=#ffffff text=#0e2774 link=#0e2774 alink=#0e2774 vlink=#0e2774>
<table border=0 cellspacing=0>
<caption>navigator.plugins</caption>
<tr>
<th>.name</th>
<th>.filename</th>
<th>.description</th>
<th>.mimeTypes</th>
<th>index</th>
</tr>
<script>
<!--
navigator.plugins.refresh(true);
if(navigator.plugins.length){
for(i=0; i<navigator.plugins.length; i++)
{
document.write("<tr>\n");
document.write("<td>\n");
document.write(navigator.plugins[i].name);
document.write("\n</td>\n");
document.write("<td>\n");
document.write(navigator.plugins[i].filename);
document.write("\n</td>\n");
document.write("<td>\n");
document.write(navigator.plugins[i].description);
document.write("\n</td>\n");
document.write("<td>\n");
document.write(navigator.plugins[i].mimeTypes);
document.write("\n</td>\n");
document.write("<td>\n");
document.write(i);
document.write("\n</td>\n");
document.write("</tr>\n");
}
}
else{
document.write("<tr>\n");
document.write("<td colspan=5>no plugins are currently available</td>\n");
document.write("</tr>\n");
}
//-->
</script>
</table>
<br>
<table border=0 cellspacing=3>
<script>
<!--
function elementWrite()
{
for(i=0; i<elementWrite.arguments.length; i++)
{
document.write("<tr>\n<td>\n" + elementWrite.arguments[i] + "
=\n</td>\n");
document.write("<td>\n" + eval(elementWrite.arguments[i]) +
"\n</td>\n</tr>");
}

}
elementWrite(
"document.alinkcolor",
"document.bgColor",
"document.cookie",
"document.fgColor",
"document.lastModified",
"document.linkColor",
"document.referer",
"document.title",
"document.vlinkColor",
"window.history.length",
"window.location.hash",
"window.location.host",
"window.location.hostname",
"window.location.href",
"window.location.pathname",
"window.location.port",
"window.location.protocol",
"window.location.search",
"window.document.images.length",
"window.document.forms.length",
"window.document.anchors.length",
"navigator.appCodeName",
"navigator.appName",
"navigator.appVersion",
"navigator.userAgent",
"navigator.javaEnabled()",
"navigator.plugins.length",
"navigator.mimeTypes.length"
);
//-->
</script>
</table>
</body>
</html>
------------------------------------------------------------------------
This above is some code that I wrote a while back, and I can't necessarily
guarantee that it's 100% awesome code (because I know it's not ;) but this
should get you the information that you're looking for, and if you can't
find the objects that you want, look at developer.netscape.com in the
Client-Side JavaScript Guide, it'll probably have it there.

HTH,
Eric Dunham


<snip>
I'm trying to make a "standard" index page for our websites. On this page I
would like to check as much of the user's system as possible:
Platform, platform version, browserversion, java enabled/disabled, java
virtual machine, monitor configuration (resolution, color depth) and of
course (shockwave) plugins...
Does anyone know a ready made script or a site where I could find usefull
information??
</snip>


flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: Javascript system configurati, Andries van der Leij

Replies
  FLASH: Javascript system configuration s, Andries van der Leij

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]