IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Compatibilité IE&FF pour object et embed


Sujet :

Langage PHP

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Juillet 2010
    Messages
    88
    Détails du profil
    Informations personnelles :
    Localisation : Suisse

    Informations forums :
    Inscription : Juillet 2010
    Messages : 88
    Points : 37
    Points
    37
    Par défaut Compatibilité IE&FF pour object et embed
    J'ai une animation flash nommée carte. En mettant ce code
    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 IE: affichage uniquement de la carte quand le plugin flash est activé et uniquement affichage du texte alternatif quand il est désactivé.
    sous FF: affichage uniquement du texte alternatif que le plugin soit activé ou non

    je rajoute donc un embed:
    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 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.
    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 !

  2. #2
    Membre habitué
    Profil pro
    Inscrit en
    Octobre 2010
    Messages
    41
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Octobre 2010
    Messages : 41
    Points : 134
    Points
    134
    Par défaut
    Tu devrais poster dans 'HTML', voire 'FLASH'

  3. #3
    Membre émérite
    Avatar de Eric2a
    Homme Profil pro
    Technicien
    Inscrit en
    Septembre 2005
    Messages
    1 225
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 53
    Localisation : France, Corse (Corse)

    Informations professionnelles :
    Activité : Technicien

    Informations forums :
    Inscription : Septembre 2005
    Messages : 1 225
    Points : 2 411
    Points
    2 411
    Par défaut
    Salut,

    Essaie comme ceci...

    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
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    <object data="carte.swf" type="application/x-shockwave-flash" width="626" height="600">
    	<param name="movie" value="carte.swf" />
    	<param name="quality" value="high" />
    	<table border="1" width="626px" align="center">
    	<tr>
    		<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>
    	<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>
    </object>

  4. #4
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Juillet 2010
    Messages
    88
    Détails du profil
    Informations personnelles :
    Localisation : Suisse

    Informations forums :
    Inscription : Juillet 2010
    Messages : 88
    Points : 37
    Points
    37
    Par défaut
    Merci beaucoup ! Je cherchais trop loin finalement

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Compatibilité IE&FF pour object et embed
    Par marycandy dans le forum Intégration
    Réponses: 0
    Dernier message: 13/10/2010, 17h17
  2. Balise <object> ou <embed> ?
    Par larleuch dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 07/06/2008, 17h54
  3. [HTML] [Firefox][IE] Vidéo sur une page html en Object ou embed.
    Par Maxoo dans le forum Balisage (X)HTML et validation W3C
    Réponses: 15
    Dernier message: 10/07/2007, 08h53
  4. [Video] Object ou Embed ?
    Par jak0 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 7
    Dernier message: 20/01/2006, 21h02

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo