Bonjour voila je voudrai savoir si il est possible d'integrer une photo dans unt exte dynamique (on peut bien rendre le texte au format HTML donc pk pas une photo..)
j'ai fait quelque chose (qui aparement me semble bon) mais j'ai pas la photo
CODE :
fichier = "Members/members.php";
chargement = new LoadVars();
chargement.onLoad = function() {
_root.gates.pages.page2.messages.text = "";
for (i=1; i<=this.entrees; i++) {
_root.gates.pages.page2.messages.htmlText += "<P ALIGN='CENTER'><IMG SRC='"+this["photof"+i]+"' WIDTH='200' HEIGHT='200'></P><br />";
_root.gates.pages.page2.messages.htmlText += "<P ALIGN='CENTER'><B><U>Informations Personelles</B></U></P><br />";
_root.gates.pages.page2.messages.htmlText += "Pseudo : "+this["pseudof"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Prénom : "+this["prenomf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Né le : "+this["ddnf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Ville : "+this["villef"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Pays : "+this["paysf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "MSN : "+this["msnf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "<P ALIGN='CENTER'><B><U>Configurations Matériels</B></U></P><br />";
_root.gates.pages.page2.messages.htmlText += "Carte mere : "+this["cmf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Processeur : "+this["procf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Memoire : "+this["memf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Carte Graphique : "+this["cgf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Carte Son : "+this["csf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Clavier : "+this["clavierf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Souris : "+this["sourisf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Resolution : "+this["resolutionf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Sensibilite : "+this["sensif"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Connection Internet : "+this["cof"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "<P ALIGN='CENTER'><B><U>Configurations Counter-Strike</B></U></P><br />";
_root.gates.pages.page2.messages.htmlText += "Sensibilite : "+this["sensi_csf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Resolution : "+this["resolution_csf"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "Arme : "+this["armef"+i]+"<br />";
_root.gates.pages.page2.messages.htmlText += "CFG : <A HREF='"+this["cfgf"+i]+"'>config.cfg</A><br />";
_root.gates.pages.page2.messages.htmlText += "<P ALIGN='CENTER'><FONT COLOR='#FF0000'><b>---------------------------------------</b></FONT></P><br/><br />";
}
_root.gates.pages.page2.messages.scroll = 0;
};
function lire() {
chargement.load(fichier);
}
lire();
stop();
Le texte s'affiche bien le HTML (<P align='center'> <br />) fonctionne bien mais la photo ne saffiche pas..
les variable son recup sur une BDD via un fichier PHP
le champ photo est un champ texte contenant le lien de la photo
ex : http://www.monsite.com/maphoto.jpg
Donc voila j'aimerai savoir si de une c'est faisable et si oui ou est mon erreur...
D'avance merci...