// 이 스크립트는 클라이언트 브라우저에 설치된 플러그인들을 찾아 보여줍니다
// 객체 공부에도 유용하게 사용하세요
// 아래의 코드를 원하는 위치에 복사 해 넣으세요
<script language="JavaScript">
<!--
numPlugins = navigator.plugins.length;// 브라우저의 플러그인 갯수 정의
if (numPlugins > 0)
document.writeln("<b><font size=+3>설치된 플러그인</font></b><br>");
else
document.writeln("<b><font size=+2>설치된 플러그인이 없습니다");
document.writeln("</font></b><br>");
document.writeln("<hr>");
for (i = 0; i < numPlugins; i++) {
plugin = navigator.plugins[i];
document.write("<center><font size=+1><b>");
document.write(plugin.name);
document.writeln("</b></font></center><br>");
document.writeln("<dl>");
document.writeln("<dd>File name:");
document.write(plugin.filename);
document.write("<dd><br>");
document.write(plugin.description);
document.writeln("</dl>");
document.writeln("<p>");
document.writeln("<table width=100% border=2 cellpadding=5>");
document.writeln("<tr>");
document.writeln("<th width=20%><font size=-1>Mime Type</font></th>");
document.writeln("<th width=50%><font size=-1>Description</font></th>");
document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
document.writeln("<th><font size=-1>Enabled</th>");
document.writeln("</tr>");
numTypes = plugin.length;
for (j = 0; j < numTypes; j++) {
mimetype = plugin[j];
if (mimetype) {
enabled = "No";
enabledPlugin = mimetype.enabledPlugin;
if (enabledPlugin && (enabledPlugin.name == plugin.name))
enabled = "Yes";
document.writeln("<tr align=center>");
document.writeln("<td>");
document.write(mimetype.type);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.description);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.suffixes);
document.writeln("</td>");
document.writeln("<td>");
document.writeln(enabled);
document.writeln("</td>");
document.writeln("</tr>");
}
}
document.write("</table>");
document.write("<p><hr><p>");
}
// -->
</script>
// 여기까지 <!---->
// 객체 공부에도 유용하게 사용하세요
// 아래의 코드를 원하는 위치에 복사 해 넣으세요
<script language="JavaScript">
<!--
numPlugins = navigator.plugins.length;// 브라우저의 플러그인 갯수 정의
if (numPlugins > 0)
document.writeln("<b><font size=+3>설치된 플러그인</font></b><br>");
else
document.writeln("<b><font size=+2>설치된 플러그인이 없습니다");
document.writeln("</font></b><br>");
document.writeln("<hr>");
for (i = 0; i < numPlugins; i++) {
plugin = navigator.plugins[i];
document.write("<center><font size=+1><b>");
document.write(plugin.name);
document.writeln("</b></font></center><br>");
document.writeln("<dl>");
document.writeln("<dd>File name:");
document.write(plugin.filename);
document.write("<dd><br>");
document.write(plugin.description);
document.writeln("</dl>");
document.writeln("<p>");
document.writeln("<table width=100% border=2 cellpadding=5>");
document.writeln("<tr>");
document.writeln("<th width=20%><font size=-1>Mime Type</font></th>");
document.writeln("<th width=50%><font size=-1>Description</font></th>");
document.writeln("<th width=20%><font size=-1>Suffixes</font></th>");
document.writeln("<th><font size=-1>Enabled</th>");
document.writeln("</tr>");
numTypes = plugin.length;
for (j = 0; j < numTypes; j++) {
mimetype = plugin[j];
if (mimetype) {
enabled = "No";
enabledPlugin = mimetype.enabledPlugin;
if (enabledPlugin && (enabledPlugin.name == plugin.name))
enabled = "Yes";
document.writeln("<tr align=center>");
document.writeln("<td>");
document.write(mimetype.type);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.description);
document.writeln("</td>");
document.writeln("<td>");
document.write(mimetype.suffixes);
document.writeln("</td>");
document.writeln("<td>");
document.writeln(enabled);
document.writeln("</td>");
document.writeln("</tr>");
}
}
document.write("</table>");
document.write("<p><hr><p>");
}
// -->
</script>
// 여기까지 <!---->
'java script' 카테고리의 다른 글
방문자 웹브라우저의 버전정보 알려주기 (0) | 2011.01.07 |
---|---|
설치된 플러그인 목록을 경고창에서 알려주기 (0) | 2011.01.07 |
방문자의 기본 정보 몇가지 알아보기 (0) | 2011.01.07 |
오늘 날짜가 하이라이트 되는 달력 (0) | 2011.01.07 |
간단한 곱하기 계산 스크립트 (0) | 2011.01.07 |