Rechercher : dans
Par :

Afficher une image à partir d'un code html

Dernière réponse le 16 jun 2008 à 03:34:07 Lalou, le 3 jun 2008 à 17:20:57 
 Signaler ce message aux modérateurs

Bonjour,

je souhaiterais afficher une image à partir d'un code html. D'après ce qu'on m'a dit, l'image devrait s'afficher automatiquement mais je n'y parviens pas.
Pourriez-vous m'y aider?
Voici le code:

<table width="300" height="66" border="0" cellspacing="0" cellpadding="0" background="http://www.newdealcasting.com/imgv3/promo/fond-grande-image-violet.gif">
<tr>
<td>
<table width="284" height="52" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="52"><a href="http://www.newdealcasting.com/membres/membres-profil.php?id_user=5544" title="Kate89, Mannequin Femme [Newdealcasting]"><img src="http://www.newdealcasting.com/avatar-50/5544.jpg" alt="Photo Kate89, Mannequin Femme" style="border:1px solid #D05BF7;" /></a></td>
<td width="10"></td>
<td><a href="http://www.newdealcasting.com/membres/membres-profil.php?id_user=5544" title="Kate89, Mannequin Femme [Newdealcasting]" style="color:#111111; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; text-decoration:none;"><span style="font-size:20px;">Kate89</span> <br />
Mannequin Femme</a></td>
</tr>
</table>
</td>
</tr>
</table>

D'avance merci,

Lalou (c'est pour ma soeur)

Configuration: Windows XP
Firefox 2.0.0.14

Meilleures réponses pour « Afficher une image à partir d'un code html » dans :
[Webmaster] Afficher facilement le code php/xhtml de vos pages VoirSi vous voulez proposer a vos visiteurs de voir la source de vos fichiers (PHP ou HTML), il y a plusieurs solutions. En php Afficher le code php Afficher le code html En html Informations Voir aussi En php Afficher le code php La...
[Site web] Vérifier, optimiser et nettoyer son code HTML VoirLes logiciels WYSIWYG de création de pages web produisent parfois du contenu HTML rempli de balises HTML inutiles, voire incompatibles avec les recommandations du W3C. Les outils proposés ci-dessous permettent de vérifier la validité du code HTML...

1

Ouaks, le 3 jun 2008 à 17:34:43

C'est beau le copier coller mais relis bien ce que tu fais, il y avait juste une erreur syntaxique, tu avais oublier de fermer les guillemets dans ton background et il y avait des caractères speciaux.

<table width="300" height="66" border="0" cellspacing="0" cellpadding="0" background="http://www.newdealcasting.com/imgv3/promo/fond-grande-image-violet.gif">
<tr>
<td>
<table width="284" height="52" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="52"><a href="http://www.newdealcasting.com/membres/membres-profil.php?id_user=5544" title="Kate89, Mannequin Femme [Newdealcasting]"><img src="http://www.newdealcasting.com/avatar-50/5544.jpg" alt="Photo Kate89, Mannequin Femme" style="border:1px solid #D05BF7;" /></a></td>
<td width="10"></td>
<td><a href="http://www.newdealcasting.com/membres/membres-profil.php?id_user=5544" title="Kate89, Mannequin Femme [Newdealcasting]" style="color:#111111; font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; text-decoration:none;"><span style="font-size:20px;">Kate89</span> <br />
Mannequin Femme</a></td>
</tr>
</table>
</td>
</tr>
</table>

Répondre à Ouaks

2

Ouaks, le 3 jun 2008 à 17:41:41

<table width="300" height="66" border="0" cellspacing="0" cellpadding="0" background="http://www.newdealcasting.com/imgv3/promo/fond-grande-image-violet.gif">

j'ai du faire un mauvais copier coller de ton code rectifié, il faut que tu enleve à la fin de ton lien image le caractere "&qu­ot;" et que tu ferme juste les guillemets, si tu as un problème quelquoncque contact moi.

Répondre à Ouaks

3

malcom, le 16 jun 2008 à 03:29:55

Salut à tous!!
j'ai un probleme avec mon code ,j'arrive pas a afficher l'image. Est ce que quelqu'un peut m'aider? voici mon code ,je travaille avec easy php 1.8.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans titre</title>
</head>

<body>

<table width="80%" border="2" align="center">
<tr height="160"><img src="C:\Users\NDIM\Desktop\images\logugb.jpg">
<td colspan="2"></td>
</tr>
<tr height="390">
<td width="20%"><div align="center"> </div></td>
<td><div align="center"> </div></td>
</tr>
</table>

</body>
</html>

merci de votre attention.je reste à l'ecoute.

Répondre à malcom

4

 cheese42, le 16 jun 2008 à 03:34:07

Slt, tu es sur que l'image est accessible par ton lien????
<img src="C:\Users\NDIM\Desktop\images\logugb.jpg"> La vie ne vaut rien mais rien ne vaut la vie !!!!!

Répondre à cheese42