Automatische Pluginerkennung?

Hallo!

Wie kann ich per javascript realisieren, das beim laden der Seite geprüft wird, ob ein Flash-Plugin installiert ist oder nicht?

Wenn es installiert ist, dann soll der Browser auf eine datei leiten, in dr ein flash vorkommt,. Wenn nicht, dann nicht!

T.I.A. Andre!

probier’s mal damit



Shockwave Flash Detection
<!-- hide code

// define pages
flashpage=„flashpage.htm“;
autodetectpage=„autodetect.htm“;
manualdetectpage=„manualdetect.htm“;

// detect browser
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);

// assign base variables
flash = „no“
flashver = „1.0“
action = „ns_exec“

// detect plugin for NS flash 3 version
if (bName==„Netscape“) {
if (navigator.plugins[„Shockwave Flash 2.0“]) {flashver = „2.0“}
else if(navigator.plugins[„Shockwave Flash“]) {flashver = „3.0“}
if (flashver == „3.0“) {flash = „yes“;}
// activate if other release comes out
// flashver = navigator.plugins[„Shockwave Flash“].description.substring(16,19);
} else if (bName ==„Microsoft Internet Explorer“) { action = „ie_exec“ }
//–>


<!--
on error resume next
If action = „ie_exec“ then
FlashInstalled =(IsObject(CreateObject(„ShockwaveFlash.ShockwaveFlash.3“)))
End If
If FlashInstalled = „True“ then
flash = „yes“
End If
//–>

<!-- Actions
if (flash == „yes“) {window.location=flashpage}
else if (flash == „no“)
{
if (navigator.appVersion.indexOf(„4.0“)!=-1) {window.location=autodetectpage}
// Flash can be installed automatic

else {window.location=manualdetectpage}
// Flash needs manual installation
}

//–>
whatever



die drei seiten verstehen sich wie folgt:

flashpage = seite falls plugin installiert

autodetectpage = seite falls kein plugin installiert ist und browser >= version 4 und automatische plugin-installation somit unterstützt wird

manualdetectpage = seite falls kein plugin installiert ist und browser nicht unterstützt wird

gruss

mag

http://www.mag-online.de/

habe hier noch zwei links auf macromedia zur plugin-erkennung.

mit javascript: http://www.macromedia.com/support/flash/how/shock/ja…

ohne javascript: http://www.macromedia.com/support/flash/ts/documents…

gruss

mag

http://www.mag-online.de/

Hi.

Schau mal bei:
http://www.flashworker.de/mggfaq.html

byE:dirk