Autor Zpráva
Vyky
Profil *
Ahoj lidičky... Moc vas prosím o radu... Mam totiž takovej menší problém... Nevim totiž, jak vytvořit script (v php, nebo java) na detekování přítomnosti plug-inu (macromedia flash player)... Byl bych Vám proto moc vděčný, kdyby jste mi poradili... předem děkuji
Fred
Profil
Tady je téměř vše co se zdá zjistit pro Gecko, částečně i pro ostatní prohlížeče, nechce se mi v tom hrabat, vyeliminuj si to
<script type="text/javascript">
<!--
document.write("appCodeName:".bold(),navigator.appCodeName)
document.write("<br />")
document.write("appVersion:".bold(),navigator.appVersion)
document.write("<br />")
document.write("userAgent:".bold(),navigator.userAgent)
document.write("<br />")
document.write("appName:".bold(),navigator.appName)
document.write("<br />")
document.write("screen.availLeft:".bold(),screen.availLeft,":pixels")
document.write("<br />")
document.write("screen.availTop:".bold(),screen.availTop,":pixels")
document.write("<br />")
document.write("screen.pixelDepth:".bold(),screen.pixelDepth,":bits per pixel")
document.write("<br />")
document.write("screen.colorDepth:".bold(),screen.colorDepth,":bits color")
document.write("<br />")
document.write("screen.availHeight:".bold(),screen.availHeight,":pixel s")
document.write("<br />")
document.write("screen.availWidth:".bold(),screen.availWidth,":pixels" )
document.write("<br />")
document.write("screen.height:".bold(),screen.height,":pixels")
document.write("<br />")
document.write("screen.width:".bold(),screen.width,":pixels")
document.write("<br />")
document.write("language:".bold(),navigator.language)
document.write("<br />")
document.write(navigator.plugins.length);
document.write( " Plugins".bold());
document.write("<br />")
document.write("platform:".bold(),navigator.platform)
document.write("<br />")
document.write("securityPolicy:".bold(),navigator.securityPolicy)
document.write("<br />")
document.write("<br />")
document.write("<br />")
document.write("<br />")
document.write("<br />")

//-->
</script>

<script type="text/javascript">
<!--
if (navigator.javaEnabled()) { document.write("You Can Use Java") }
else { document.write("You Can not use Java")}
//-->
</script>
<br />
<script type="text/javascript">
<!--
var L = navigator.plugins.length
document.write("DescriptionList".bold());
document.write("<br />");
for(i=0; i<L; i++){
document.write(navigator.plugins[i].description);
document.write("<br />");
}
//-->
</script>
<script type="text/javascript">
<!--
var L = navigator.plugins.length
document.write("Filename List".bold());
document.write("<br />");
for(i=0; i<L; i++){
document.write(navigator.plugins[i].filename);
document.write("<br />");
}
//-->
</script>

<script type="text/javascript">
<!--
var L = navigator.mimeTypes.length;
document.write( L );
document.write("mimeTypes".bold());
document.write("<br />");
document.write( "Type | Description | Suffixes".bold());
document.write("<br />");
for(i=0; i<L; i++){
document.write(navigator.mimeTypes[i].type);
document.write(" | ".bold());
document.write(navigator.mimeTypes[i].description);
document.write(" | ".bold());
document.write(navigator.mimeTypes[i].suffixes);
document.write("<br />");
}
//-->
</script>


<script type="text/javascript">
<!--
function CPlug(CP) {
for(i=0; i<navigator.plugins.length; i++) {
if (navigator.plugins[i].name.indexOf(CP) != -1) return true
}
return false
}
//-->
</script>

<script type="text/javascript">
<!--
if (CPlug("Flash")) {
document.write("You Can Play Flash Movie");
document.write("<br />");
document.write("<embed src='rocket.swf' pluginspage='http://www.macromedia.com/jp/shockwave/download/' name='frashmv' width='200' height='200' bgcolor='#ffffff'>");
document.write("</embed>");
}
else { document.write("Please Install Shockwave Flash Plugin") }
//-->
</script>


<script type="text/javascript">
<!--
var L = navigator.plugins.length
document.write( L );
document.write("Plugins".bold());
document.write("<br />");
document.write("Name | Filename | description".bold());
document.write("<br />");
for(i=0; i<L; i++){
document.write(navigator.plugins[i].name);
document.write(" | ".bold());
document.write(navigator.plugins[i].filename);
document.write(" | ".bold());
document.write(navigator.plugins[i].description);
document.write("<br />");
}
//-->
</script>

<script type="text/javascript">
<!--
var L = navigator.mimeTypes.length;
document.write( "MimeType Suffixes List".bold());
document.write("<br />");
for(i=0; i<L; i++){
document.write(navigator.mimeTypes[i].suffixes);
document.write("<br />");
}
//-->
</script>

<script type="text/javascript">
<!--
var L = navigator.mimeTypes.length;
document.write( "mimeType List".bold());
document.write("<br />");
for(i=0; i<L; i++){
document.write(navigator.mimeTypes[i].type);
document.write("<br />");
}
//-->
</script>
</body>
Toto téma je uzamčeno. Odpověď nelze zaslat.