utilise pas une fonction de dreamweaver utilise plutot le script de détection fourni dans flash mx celui-la il marche c sur.
Houzéf@ - www.123toto.com-------------------------------
Réponse au message :
-------------------------------
> si l'utilisateur a le plugin je lui balance un titre en flash sinon je lui balance en html. Voici mon script mais cela ne marche pas :
>
> <HTML><HEAD>
> <TITLE>Détection plugin flash</TITLE>
> <script language="JavaScript">
> <!--
> function MM_checkPlugin(plgIn, 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) { document.getElementById('flash').visibility = visible; } else {document.getElementById('html').visibility = visible;}
> }
> //-->
> </script>
> </head>
>
> <body bgcolor="#FFFFFF" text="#000000" onLoad="MM_checkPlugin('Shockwave Flash',true);return document.MM_returnValue">
> <div id="flash" style="visibility : hidden"><embed src=".swf"></embed></div>
> <div id="html" style="visibility : hidden"><h1>Tu dois télécharger le plug in etc..</h1></div>
> </BODY></HTML>
>
>
>
> bogosse
