intégration swf

Maxime
Invité n'ayant pas de compte PHPfrance

10 août 2006, 10:28

bonjour,

je ne connais presque rien à PHP et j'ai une question. Je souhaiterais remplacer sur notre intranet (fichier inc) une image (bandeauHaut.gif) par une animation flash (bandeauHaut.swf) mais je ne connais pas la syntaxe. Pouvez-vous m'aider ? Pour l'instant voici ce qu'il y a :
$aEcrire .= "<span style=\"width:420px;vertical-align:top;\">";
$aEcrire .= "<img style=\"width:420px;vertical-align:top;\"";
$aEcrire .= " src=\"".RACINESITE."/images/BandeauHaut/bandeauhaut.gif\" />";
$aEcrire .= "</span>";


Merci bcp

Eléphant du PHP | 353 Messages

10 août 2006, 10:36

$aEcrire .= "<span style=\"width:420px;vertical-align:top;\">"; 
$aEcrire .= "<img style=\"width:420px;vertical-align:top;\""; 
$aEcrire .="<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=\"_LARGEUR_DE_TON_SWF_\" height=\"_HAUTEUR_DE_TON_SWF_\">
  <param name=\"movie\" value=\"_URL_DE_TON_FICHIER_SWF_\" />
  <param name=\"quality\" value=\"high\" />
  <embed src=\"_URL_DE_TON_FICHIER_SWF_\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"_LARGEUR_DE_TON_SWF_\" height=\"_HAUTEUR_DE_TON_SWF_\"></embed>
</object>";
$aEcrire .= "</span>"; 

Eléphanteau du PHP | 12 Messages

10 août 2006, 10:39

je n'étais pas loin, merci tic tac je vais essayer !

Eléphant du PHP | 353 Messages

10 août 2006, 10:49

il faut enlever la ligne commençant par <img ! j'ai oublié de l'enlever ;)

Eléphanteau du PHP | 12 Messages

10 août 2006, 11:28

ça roule, merci bieng