[Javascript] Ik zoek een Flash 4 sniffer

Pagina: 1
Acties:

  • AMD
  • Registratie: Januari 2000
  • Laatst online: 27-08 09:55

AMD

Life is short. Play more

Topicstarter
In Dreamweaver 4 zit een sniffer voor Flash en dan kun je aangeven waar je heen gaat als je het wel of niet hebt.

Ik moet echter een sniffer hebben die hetzelfde doet, maar dan juist kijkt of je Flash 4 of hoger hebt.

Waar kan ik die halen? Of hebben jullie misschien al een code voor me?

Als voorbeeld, dit is wat ik heb en niet wil:
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
25
26
27
28
29
30
31
<html>
<head>
<title>PTT Post Business.nl</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
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>
</head>

<body bgcolor="#FFFFFF" text="#000000" onLoad="MM_checkPlugin('Shockwave Flash','indexflash.htm','indexnoflash.html',false);return document.MM_returnValue">
</body>
<script name="Used by MM_checkPlugin" language="javascript">
<!--
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>
</html>

  • mbravenboer
  • Registratie: Januari 2000
  • Laatst online: 06-11-2025
Javascript (en flash) horen in W&G:

Moved van uit P&W naar W&G

Blog, Stratego/XT: Program Transformation, SDF: Syntax Definition, Nix: Software Deployment


  • AMD
  • Registratie: Januari 2000
  • Laatst online: 27-08 09:55

AMD

Life is short. Play more

Topicstarter
thnx!!
Gooi maar een slotje er op

  • OzBoz
  • Registratie: Maart 2000
  • Laatst online: 09-09 19:36

OzBoz

.:.H.:.I.:.P.:.

Op woensdag 13 februari 2002 16:19 schreef AMD het volgende:
thnx!!
Gooi maar een slotje er op
Dat doen we niet als het probleem opgelost is..

My Fizion | My 3D prints | LinkedIn