J'ai une animation flash nommée carte. En mettant ce code
sous IE: affichage uniquement de la carte quand le plugin flash est activé et uniquement affichage du texte alternatif quand il est désactivé.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
32 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="626" height="600" align="middle"> <param name="movie" value="carte.swf"> <param name="quality" value="high"> <p><table border="1" width="626px" align="center"><tr> http://www.macromedia.com/go/getflashplayer <td><a href="?canton=AG">AG : Argovie - Aargau</a></td> <td><a href="?canton=AI">AI : Appenzell Rhodes intérieures - Inner-Rhoden</a></td> <td><a href="?canton=AR">AR : Appenzell Rhodes extérieures - Ausser-Rhoden</a></td></tr><tr> <td><a href="?canton=BE">BE : Berne - Bern</a></td> <td><a href="?canton=BL">BL : Bâle Campagne - Basel Land</a></td> <td><a href="?canton=BS">BS : Bâle Ville - Basel Stadt</a></td></tr><tr> <td><a href="?canton=FR">FR : Fribourg - Freiburg</a></td> <td><a href="?canton=GE">GE : Genève - Genf</a></td> <td><a href="?canton=GL">GL : Glaris - Glarus</a></td></tr><tr> <td><a href="?canton=GR">GR : Grisons - Graubuenden</a></td> <td><a href="?canton=JU">JU : Jura</a></td> <td><a href="?canton=LU">LU : Lucerne -Luzern</a></td><tr> <td><a href="?canton=NE">NE : Neuchâtel - Neuenburg</a></td> <td><a href="?canton=NW">NW : Nidwald - Nidwalden</a></td> <td><a href="?canton=OW">OW : Obwald - Obwalden</a></td></tr><tr> <td><a href="?canton=SG">SG : Saint-Gall - Sankt Gallen</a></td> <td><a href="?canton=SH">SH : Schaffhouse - Schaffausen</a></td> <td><a href="?canton=SO">SO : Soleure - Solothurn</a></td></tr><tr> <td><a href="?canton=SZ">SZ : Schwyz</a></td> <td><a href="?canton=TG">TG : Thurgovie - Thurgau</a></td> <td><a href="?canton=TI">TI : Ticino - Tessin</a></td></tr><tr> <td><a href="?canton=UR">UR : Uri</a></td> <td><a href="?canton=VD">VD : Vaud - Waadt</a></td> <td><a href="?canton=VS">VS : Valais - Vallis</a></td></tr><tr> <td><a href="?canton=ZG">ZG : Zug</a></td> <td><a href="?canton=ZH">ZH : Zurich - Zürich</a></td> </tr></table></p></object>
sous FF: affichage uniquement du texte alternatif que le plugin soit activé ou non
je rajoute donc un embed:
sous IE: affichage de la carte quand le plugin flash est activé et quand il est désactivé: affichage de la zone de l'animation flash et le texte alternatif en dessous.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
32
33 <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="626" height="600" align="middle"> <param name="movie" value="carte.swf"> <param name="quality" value="high"> <embed src="carte.swf" width="626" height="600" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed> <p><table border="1" width="626px" align="center"><tr> http://www.macromedia.com/go/getflashplayer <td><a href="?canton=AG">AG : Argovie - Aargau</a></td> <td><a href="?canton=AI">AI : Appenzell Rhodes intérieures - Inner-Rhoden</a></td> <td><a href="?canton=AR">AR : Appenzell Rhodes extérieures - Ausser-Rhoden</a></td></tr><tr> <td><a href="?canton=BE">BE : Berne - Bern</a></td> <td><a href="?canton=BL">BL : Bâle Campagne - Basel Land</a></td> <td><a href="?canton=BS">BS : Bâle Ville - Basel Stadt</a></td></tr><tr> <td><a href="?canton=FR">FR : Fribourg - Freiburg</a></td> <td><a href="?canton=GE">GE : Genève - Genf</a></td> <td><a href="?canton=GL">GL : Glaris - Glarus</a></td></tr><tr> <td><a href="?canton=GR">GR : Grisons - Graubuenden</a></td> <td><a href="?canton=JU">JU : Jura</a></td> <td><a href="?canton=LU">LU : Lucerne -Luzern</a></td><tr> <td><a href="?canton=NE">NE : Neuchâtel - Neuenburg</a></td> <td><a href="?canton=NW">NW : Nidwald - Nidwalden</a></td> <td><a href="?canton=OW">OW : Obwald - Obwalden</a></td></tr><tr> <td><a href="?canton=SG">SG : Saint-Gall - Sankt Gallen</a></td> <td><a href="?canton=SH">SH : Schaffhouse - Schaffausen</a></td> <td><a href="?canton=SO">SO : Soleure - Solothurn</a></td></tr><tr> <td><a href="?canton=SZ">SZ : Schwyz</a></td> <td><a href="?canton=TG">TG : Thurgovie - Thurgau</a></td> <td><a href="?canton=TI">TI : Ticino - Tessin</a></td></tr><tr> <td><a href="?canton=UR">UR : Uri</a></td> <td><a href="?canton=VD">VD : Vaud - Waadt</a></td> <td><a href="?canton=VS">VS : Valais - Vallis</a></td></tr><tr> <td><a href="?canton=ZG">ZG : Zug</a></td> <td><a href="?canton=ZH">ZH : Zurich - Zürich</a></td> </tr></table></p></object>
Sous FF: affichage de la carte + texte avec le plugin activé et uniquement le texte affiché lorsque le plugin est désactivé.
Comment faire pour avoir cette solution partout: affichage uniquement de la carte quand le plugin flash est activé et uniquement affichage du texte alternatif quand il est désactivé ?
Merci !
Partager