Bonjour à tous,

Je voudrais créer une redirection invisible Flash / HTML.
Les visiteurs qui n'ont pas Flash (possesseur de Iphone ...) seront automatiquement redirigé vers la version HTML, alors que ceux qui ont le plugin flash installé iront vers la version flash.

J'ai utilisé le code suivant :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="refresh" content="2;no_flash.html">
<title>Document sans titre</title>
</head>
<body>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%" margin="0">
  <param name="movie" value="home1.swf" />
  <param name="quality" value="high" />
  <embed src="home1.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%" margin="0"></embed>
</object>
</body>
</html>
Pour tester le code j'ai du supprimer le plugin flash de Firefox (Flash Player Uninstaller : http://www.adobe.com/fr/shockwave/download/alternates/).

Ce code redirige au bout de deux secondes, peut importe que vous ayez ou pas le plug in, vers la version html.

J'ai aussi fait des tests avec le Flash Player Detection Kit, en voici un bout :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
//the url that the visitor should be sent to if they do not have the required version of Flash.
altContentURL = "no_flash.html";
//-------------------
//the url that the visitor should be sent to if they have the required version of Flash.
flashContentURL = "index1.html";
Mais quand le plugin n'est pas installé, il ne s'effectue aucune redirection vers "no_flash.html", et propose d'installer le plugin manquant.

Quelqu'un aurait utilisé le Flash Player Detection Kit (http://www.adobe.com/products/flashp...detection_kit/) pour effectuer une redirection vers une page HTML ?

Je voudrais que la redirection soit invisible.

Merci,
Guillaume