Timo Ballin: Plugins erkennen beim IE ?

Wie ich beim Netscape Navigator rausfinde welche Plugins instaliert sind weiß ich. Aber wie kriege ich das beim IE hin ?
Hat da irgend jemand ein lösung parat, oder weiß wo ich sie finde ?

In freudiger Erwartung Eurer genialen Ideen,

Timo

  1. Hallo Timo,

    Wie ich beim Netscape Navigator rausfinde welche Plugins instaliert sind weiß ich. Aber wie kriege ich das beim IE hin ?

    Geht meines Wissens nicht. Das plugins-Objekt kennt er noch nicht, und andere Befehle gibt es dafuer glaube ich auch nicht.

    Viele Gruesse
      Stefan Muenz

    1. Hallo Stefan,

      Geht meines Wissens nicht. Das plugins-Objekt kennt er noch nicht, und andere Befehle gibt es dafuer glaube ich auch nicht.

      Viele Gruesse
        Stefan Muenz

      Ich war in Zwischenzeit nicht untätig und habe mich durch ein paar Web-Site gewühlt. Dabei bin ich auch bei der macromedia Seite vorbeigekommen und habe bei den Shockrave-Seiten eine plugin test seite gefunden.
      Leider läuft die lösung über VBScript - von dem ich keine ahnung habe.
      zu dem script habe ich drei fragen:
      1. Der Selbe Variablenraum für VBScript und JavaScript ?
      2. Wird das VBSript sofort ausgeführt wenn es mit Document write geschrieben wird ?
               Gilt das immer für Scripte wenn sie so geschrieben werden ?
      3. Der Ausdruck in VBScript IsObject(CreateObject("blabla")) ist wohl der schlüssel in diesem falle, aber: was soll das ?

      Naja, wenn ihr ahnung habt last es mich wissen.

      Timo

      //________________________________ Microsoft Explorer stuff ___________________________
      // Mac IE can't use visual basic... IE3.02 is unreliable.  So rely on ActiveX.
      // If IE4/win95, try this tricky Javascript writing VisualBasic stuff.
      //_____________________________________________________________________________________

      var realOnPC
      var waveOnPC
      var flashOnPC

      if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0) {

      if (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows NT")>=0) {
                      document.write('<SCRIPT LANGUAGE=VBScript> \n');
                      document.write('on error resume next \n');
                      document.write('flashOnPC = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.1")) \n');
                      document.write('waveOnPC = IsObject(CreateObject("SWCtl.SWCtl.1")) \n');
                      document.write('If ( waveOnPC Is FALSE ) Then waveOnPC = IsObject(CreateObject("Macromedia.ActiveShockwave.1")) \n');
                      document.write('realOnPC = IsObject(CreateObject("RealVideo.RealVideo(tm) ActiveX Control (32-bit).1")) \n');
                      document.write('</XMP><PRE><B><<FONT SIZE=+0 COLOR="#551A8B">/SCRIPT</FONT>></B> \n');
                      if ( waveOnPC ) {
                              waveHTML = onHTML + startWaveHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>ActiveX controls found for Director.'
                      } else {
                              waveHTML = waveActivex + startWaveHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>ActiveX controls not autodetected.<B><<FONT SIZE=+0 COLOR="#551A8B">br</FONT>></B> Attempting to display director movie...'
                      }
                      if ( flashOnPC ) {
                              flashHTML = onHTML + startFlashHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>ActiveX controls found for Flash.'
                      } else {
                              flashHTML = flashActivex + startFlashHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>ActiveX controls not autodetected.<B><<FONT SIZE=+0 COLOR="#551A8B">br</FONT>></B> Attempting to display flash movie...'
                      }
                      if ( realOnPC ) {
                              realHTML = onHTML + startRealHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>ActiveX controls found for RealPlayer.'
                      } else {
                              realHTML = realEmbed + startRealHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>ActiveX controls not autodetected.<B><<FONT SIZE=+0 COLOR="#551A8B">br</FONT>></B> Attempting to display RealFlash content...<B><<FONT SIZE=+0 COLOR="#551A8B">br</FONT>></B> Get the RealPlayer '
                              realHTML += getPlayer + ' if you do not see a green light to the left.'
                      }

      } else {
                      if(navigator.userAgent.indexOf("Mac")>=0) {
                               flashHTML = flashEmbed + startFlashHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>If you do not see a green light, you may need to download the Shockwave ' + getShockwaveHTML;
                              waveHTML = waveEmbed + startWaveHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>Warning: The Director plug-in for Internet Explorer is unstable on the Mac.  Please use a Netscape browser on Mac computers.';
                              realHTML =  startRealHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>If , you may need to download the ndow on the left is blank, you may need to download the RealPlayer ' + getPlayer + realEmbed;
                      } else {
                              flashHTML = flashEmbed + startFlashHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>If you do not see a green light, you may need to download the Flash Only ' + getFlashOnly;
                              waveHTML = waveEmbed + startWaveHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>If you do not see a green light, you may need to download the Shockwave ' + getShockwaveHTML;
                              realHTML = realEmbed + startRealHTML + '<B><<FONT SIZE=+0 COLOR="#551A8B">p</FONT>></B>If you do not see a green light, you may need to download the RealPlayer ' + getPlayer;
                      }
              }
      }