Julius Mittenzwei: Optimale Flasheinbindung ...

Hallo ...
Ist es möglich in Javascript herauszufinden, ob ein IExplorer Flash unterstützt oder nicht.
Beim Netscape selber is das kein Problem.
[navigator.plugins[i].description.indexOf("Flash 3")) oder so ähnlich].

Selbst auf der macromedia-Seite wird nur nach dem Shockwave Plugin gesucht und sonst die Seite mit Gif's angezeigt.

Danke schonmal ...
cu
Julius

  1. Hallo Julius
    hier hast Du die Abfrage für das Shockwave und Flashplayer Plugin.
    Ist das Plugin in einem Browser, egal ob unter Windows oder Mac nicht installiert, wird automatisch das Plugin von Macromedia angefordert. Nach der Installation ist die swf- Datei sichtbar.
    Setze die Funktion am besten zwischen dem Object- und dem EmbedTag der ersten Flashdatei die angezeigt werden soll.

    <!--
    function checkForShockwave()
    {
    navigator.plugins.refresh();
    if ( navigator.plugins["Shockwave Flash"] ){
      parent.location.reload();
    } else {
      setTimeout( "checkForShockwave()", 1000 );
    }
    }
    var ShockMode = 0;
    if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) {
    if (navigator.plugins && navigator.plugins["Shockwave Flash"])
      ShockMode = 1;
    }
    if (!ShockMode && navigator.appName && navigator.appName.indexOf("Netscape") != - 1 && navigator.appVersion.indexOf("4.") != - 1
    && navigator.javaEnabled() && netscape.softupdate.Trigger.UpdateEnabled() && document.cookie.indexOf("StartedShockwaveInstall") == -1) {
    var jarPath = new String("");
    if (navigator.platform.indexOf("Win32") >= 0 )
      jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash32.jar"
    else if (navigator.platform.indexOf("Win16") >= 0 )
      jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflash16.jar"
    else if (navigator.platform.indexOf("MacPPC") >= 0 )
      jarPath = "http://download.macromedia.com/pub/shockwave/jars/english/silentflashppc.jar"
    if (jarPath.length) {
      netscape.softupdate.Trigger.StartSoftwareUpdate (jarPath, netscape.softupdate.Trigger.FORCE_MODE);
      document.cookie='StartedShockwaveInstall;path=/;'
      setTimeout("checkForShockwave()", 1000);
    }
    }
    //-->
    </SCRIPT>

    Viel Spaß mit Flash
    Ludger