Toon posts:

Oud Flash detectie JScript ziet Flash 6 player op Mac niet

Pagina: 1
Acties:
  • 35 views sinds 30-01-2008

Verwijderd

Topicstarter
Net zelf ervaren, dus gebruik het volgende script altijd!

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
    <script language="JavaScript"><!--
    // Flash detectie voor non-IE browsers
        function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0
          var ok=false; document.MM_returnValue = false;
          with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) {
            ok=(plugins && plugins[plgIn]);
          } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1
            if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
            else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
            else ok=autoGo; }
          if (!ok) theURL=altURL; if (theURL) window.location=theURL;
        }
    //--></script>

<body topmargin="0" onLoad="MM_checkPlugin('Shockwave Flash','flash.html','nonflashed.html',false)">


<script name="Used by MM_checkPlugin" language="javascript"><!--
// Flash detectie voor IE browsers
    with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+
    '<scr'+'ipt language="VBScript">\nOn error resume next\n'+
    'MM_dir = IsObject(CreateObject("SWCtl.SWCtl.1"))\n'+
    'MM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>');
//--></script>

Verwijderd

op virtual-fx.net staat een goede versie check, die alle versie checked

Verwijderd

Leuk, maar dit lokt niet echt een discussie uit of iets dergelijks.

Dit topic is gesloten.