Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Général Conception Web > Débuter
Débuter Forum d'entraide pour débuter dans la création de sites Web
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 26/11/2010, 10h39   #1
Invité de passage
 
Inscription : novembre 2010
Messages : 44
Détails du profil
Informations forums :
Inscription : novembre 2010
Messages : 44
Points : 0
Points : 0
Par défaut Aide pour mise en page

Salut à tous,

j'ai créé une mise en page pour une annonce sur un site de vente aux enchères pour lequel le rendu présentait des problèmes. Après avoir contacté le service client, ce dernier m'a répondu ceci:

Nous avons trouvé des STYLE Tags et des SCRIPT Tags, qui ne sont pas acceptés par notre système.
Vous pouvez utiliser le CSS Style mais ce dernier ne peut qu'être utilisé sur le tag ( dans la ligne du texte) concerné.

actuellement j'ai ce rendu dans mon annonce: http://data.imagup.com/2/1105435367.jpg

Et donc ma question est de savoir s'il est possible, avec une modification de mon code, d'obtenir un rendu identique et susceptible d'être autorisé par ces derniers.

Merci d'avance pour vos infos


Code html :
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<style type="text/css">
#CP {
	width: 780px;
	margin-right: auto;
	margin-left: auto;
	line-height: 13px;
}
#C1 {
	width: 780px;
	text-align: center;
}
#C1 img {
	cursor:pointer;
}	
#E1 {
	height: 30px;
	width: 780px;
	clear: both;
}
#C3 {
	text-align: center;
	width: 780px;
	font-family: "Lucida Grande";
	line-height: 16px;
}
#E2 {
	height: 40px;
	width: 780px;
}
#C4 {
	width: 780px;
}
#E3 {
	height: 40px;
	width: 780px;
	clear: both;
}
#C5 {
	text-align: justify;
	width: 780px;
	overflow: auto;
	font-family: "Century Gothic";
	font-size: 11px;
	border: 1px solid #CCC;
}
#E4 {
	height: 30px;
	width: 780px;
}
#C6 {
	text-align: center;
	width: 700px;
	float: left;
	font-family: "Century Gothic";
	font-size: 11px;
	text-decoration: none;
}
#C7 {
	width: 80px;
	float: left;
}
#C8 {
	height: 400px;
	width: 700px;
	float: left;
	background-image: url(<a href="http://data.imagup.com/2/1105402426.jpg);" target="_blank">http://data.imagup.com/2/1105402426.jpg);</a>
}
#C9 {
	float: left;
	width: 80px;
	text-align: right;
}
#C9 img {
	cursor:pointer;
}
#E5 {
	height: 30px;
	width: 780px;
	clear: both;
}
#C10 {
	text-align: center;
	width: 780px;
	font-family: "Lucida Grande";
	line-height: 16px;
}
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
</style>
<script language="javascript">
function remplace(image) {
document.getElementById("C8").innerHTML="<img src='"+image+"'>";
}
</script>
<script language="javascript">  
function affiche_text(id) {   
 
    if (id == "C1"){  
        var text1 = "<strong style='color: rgb(68, 68, 68);'><span style='font-size: 14px;'>XXX</span></strong><br /><strong style='color: rgb(68, 68, 68);'><span style='font-size: 14px;'>XXX</span></strong><br /><br /><strong style='color: rgb(68, 68, 68);'><font color='#9900cc'><strong><span style='font-size: 12px;'>XXX</span></strong></font>";  
        var text2 = "<span style='font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);'>XXX</span><br /><span style='font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);'>XXX</span><br /><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> CXXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> Autre:</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span>";
		var text3 = "<strong style='color: rgb(68, 68, 68);'>XXX</strong><br /><br /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'>XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br /><br /><br /><strong style='color: rgb(68, 68, 68);'>XXX</strong><br /><br /><span style='color: rgb(102, 102, 102);'>XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span>";
		var text4 = "<strong style='color: rgb(68, 68, 68);'><span style='font-size: 10px;'>XXX</span></strong>";  
    }  
 
    else{  
        var text1 = "<strong style='color: rgb(68, 68, 68);'><span style='font-size: 14px;'>XXX</span></strong><br /><strong style='color: rgb(68, 68, 68);'><span style='font-size: 14px;'>XXX</span></strong><br /><br /><strong style='color: rgb(68, 68, 68);'><font color='#9900cc'><strong><span style='font-size: 12px;'>XXX</span></strong></font>";  
        var text2 = "<span style='font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);'>XXX</span><br /><span style='font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);'>XXX</span><br /><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> CXXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> Autre:</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span>";
		var text3 = "<strong style='color: rgb(68, 68, 68);'>XXX</strong><br /><br /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'>XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br /><br /><br /><strong style='color: rgb(68, 68, 68);'>XXX</strong><br /><br /><span style='color: rgb(102, 102, 102);'>XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span>";
		var text4 = "<strong style='color: rgb(68, 68, 68);'><span style='font-size: 10px;'>XXX</span></strong>";  
    }  
    document.getElementById("C3").innerHTML = text1;
	document.getElementById("TC2").innerHTML = text2;
	document.getElementById("C5").innerHTML = text3;
	document.getElementById("C10").innerHTML = text4;  
}  
</script>
</head>
 
<body>
<div id="CP">
  <div id="C1">
  <img src="http://data.imagup.com/2/1105182592.png" onclick="affiche_text('C1');" width="41" height="12" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  <img src="http://data.imagup.com/3/1105182610.png" onclick="affiche_text('C3');" width="42" height="12" /></div>
  <div id="E1"></div>
  <div id="C3"><strong style="color: rgb(68, 68, 68);"><span
  style="font-size: 14px;">XXX</span></strong><br />
  <strong style="color: rgb(68, 68, 68);"><span style="font-size: 14px;">XXX</span></strong><br />
  <br />
  <font color="#9900cc"><strong><span style="font-size: 12px;">XXX</span></strong></font></div>
  <div id="E2"></div>
  <div id="C4"><table width="780" border="0" cellspacing="0" cellpadding="0">
  <tr>
<td width="100">&nbsp;</td>
<td id="TC2" style="font-family: Century Gothic; font-size: 11px;"
width="290"><span
style="font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);">XXX</span><br />
<span
style="font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);">
XXX</span><br />
<br />
<br />
<span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">XXX</span><br />
<br />
<span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);"> XXX</span><br />
<span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
<span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
<span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
<br />
<span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);"> XXX</span><br />
<span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
<br />
<span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">
XXX</span><br />
<span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
<br />
<span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);"> XXX</span><br />
<span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
<span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
<br />
<span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">
XXX</span><br />
<span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
<br />
<span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);"> XXX</span><br />
<span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span> </td>
<td width="0">&nbsp;</td>
<td style="text-align: center;" width="380"><br />
</td>
</tr>
</table>
</div>
  <div id="E3"></div>
  <div id="C5"><strong style="color: rgb(68, 68, 68);">XXX</strong><br />
  <br />
    <span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
    <br style="color: rgb(102, 102, 102);" />
    <span style="color: rgb(102, 102, 102);"> XXX</span><br
    style="color: rgb(102, 102, 102);" />
    <br style="color: rgb(102, 102, 102);" />
    <span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
    <br style="color: rgb(102, 102, 102);" />
    <span style="color: rgb(102, 102, 102);"> XXX</span><br />
  <br />
  <br />
    <strong style="color: rgb(68, 68, 68);">XXX</strong><br />
  <br />
    <span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
  <br style="color: rgb(102, 102, 102);" />
    <span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
  <br style="color: rgb(102, 102, 102);" />
    <span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
  <br style="color: rgb(102, 102, 102);" />
    <span style="color: rgb(102, 102, 102);"> XXX</span></div>
  <div id="E4"></div>
  <div id="C6">
    <p><a href="http://www.lacotedesmontres.com/Ebel-1215891-PdN.html" target="_blank">XXX</a><br />
  </div>
  <div id="C7"></div>
  <div id="C8"></div>
  <div id="C9"><img
src="http://data.imagup.com/2/1105402426.jpg"
onclick="remplace('http://data.imagup.com/1/1289760482.png');"
height="40" width="70"><br>
<br>
<img src="http://data.imagup.com/2/1105402426.jpg"
onclick="remplace('http://data.imagup.com/1/1289479756.png');"
height="40" width="70"><br>
<br>
<img src="http://data.imagup.com/2/1105402426.jpg"
onclick="remplace('http://data.imagup.com/1/1289479789.png');"
height="40" width="70"><br>
<br>
<img src="http://data.imagup.com/2/1105402426.jpg"
onclick="remplace('http://data.imagup.com/1/1289479720.png');"
height="40" width="70"></div>
  <div id="E5"></div>
  <div id="C10"><strong style="color: rgb(68, 68, 68);"><span
  style="font-size: 10px;">XXX</span></strong></div>
</div>
qwertz1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/11/2010, 12h33   #2
Responsable Développement Web

 
Avatar de Bovino
 
Homme Didier Mouronval
Développeur Web
Inscription : juin 2008
Messages : 13 789
Détails du profil
Informations personnelles :
Nom : Homme Didier Mouronval
Âge : 41
Localisation : France, Gironde (Aquitaine)

Informations professionnelles :
Activité : Développeur Web
Secteur : High Tech - Éditeur de logiciels

Informations forums :
Inscription : juin 2008
Messages : 13 789
Points : 35 781
Points : 35 781
Il faut que tu ajoutes les styles voulus dans les attributs "style" des balises concernées.
__________________
Pas de question technique par MP !
Tout le monde peut participer à developpez.com, vous avez une idée, contactez-moi !
Vous possédez un blog et aimeriez diffuser vos billets sur le forum, contactez-moi !
Mes formations video2brain : La formation complète sur JavaScriptJavaScript et le DOM par la pratiquePHP 5 et MySQL : les fondamentaux
Mon livre sur jQuery
Bovino est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/11/2010, 13h11   #3
Invité de passage
 
Inscription : novembre 2010
Messages : 44
Détails du profil
Informations forums :
Inscription : novembre 2010
Messages : 44
Points : 0
Points : 0
Ok merci.

Je sais pas si je suis sur la bonne voix pour la modification, j'ai fais un essai avec le code modifié ci-dessous et il y a un peux de mieux.

Par contre serait-il possible d'avoir un coup de main pour le reste du code à modifier car là je suis perdu.


Code:

Code html :
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <title>Document sans nom</title>
<style type="text/css">
}
#C1 img {
	cursor:pointer;
}
#C9 img {
	cursor:pointer;
} 
a:link {
	text-decoration: none;
}
a:visited {
	text-decoration: none;
}
a:hover {
	text-decoration: none;
}
a:active {
	text-decoration: none;
}
</style>
<script language="javascript">
function remplace(image) {
document.getElementById("C8").innerHTML="<img src='"+image+"'>";
}
</script>
<script language="javascript">  
function affiche_text(id) {   
 
    if (id == "C1"){  
        var text1 = "<strong style='color: rgb(68, 68, 68);'><span style='font-size: 14px;'>XXX</span></strong><br /><strong style='color: rgb(68, 68, 68);'><span style='font-size: 14px;'>XXX</span></strong><br /><br /><strong style='color: rgb(68, 68, 68);'><font color='#9900cc'><strong><span style='font-size: 12px;'>XXX</span></strong></font>";  
        var text2 = "<span style='font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);'>XXX</span><br /><span style='font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);'>XXX</span><br /><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> CXXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> Autre:</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span>";
		var text3 = "<strong style='color: rgb(68, 68, 68);'>XXX</strong><br /><br /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'>XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br /><br /><br /><strong style='color: rgb(68, 68, 68);'>XXX</strong><br /><br /><span style='color: rgb(102, 102, 102);'>XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span>";
		var text4 = "<strong style='color: rgb(68, 68, 68);'><span style='font-size: 10px;'>XXX</span></strong>";  
    }  
 
    else{  
        var text1 = "<strong style='color: rgb(68, 68, 68);'><span style='font-size: 14px;'>XXX</span></strong><br /><strong style='color: rgb(68, 68, 68);'><span style='font-size: 14px;'>XXX</span></strong><br /><br /><strong style='color: rgb(68, 68, 68);'><font color='#9900cc'><strong><span style='font-size: 12px;'>XXX</span></strong></font>";  
        var text2 = "<span style='font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);'>XXX</span><br /><span style='font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);'>XXX</span><br /><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> CXXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'>XXX</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span><br /><br /><span style='line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);'> Autre:</span><br /><span style='line-height: 13px; color: rgb(102, 102, 102);'>XXX</span>";
		var text3 = "<strong style='color: rgb(68, 68, 68);'>XXX</strong><br /><br /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'>XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br /><br /><br /><strong style='color: rgb(68, 68, 68);'>XXX</strong><br /><br /><span style='color: rgb(102, 102, 102);'>XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span><br style='color: rgb(102, 102, 102);' /><br style='color: rgb(102, 102, 102);' /><span style='color: rgb(102, 102, 102);'> XXX</span>";
		var text4 = "<strong style='color: rgb(68, 68, 68);'><span style='font-size: 10px;'>XXX</span></strong>";  
    }  
    document.getElementById("C3").innerHTML = text1;
	document.getElementById("TC2").innerHTML = text2;
	document.getElementById("C5").innerHTML = text3;
	document.getElementById("C10").innerHTML = text4;  
}  
  </script>
</head><body>
<div style="width: 780px; margin-right: auto; margin-left: auto; line-height: 13px;" id="CP">
<div style="width: 780px; text-align: center;" id="C1"> <img src="http://data.imagup.com/2/1105182592.png" onclick="affiche_text('C1');" height="12" width="41" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<img src="http://data.imagup.com/3/1105182610.png" onclick="affiche_text('C3');" height="12" width="42" /></div>
<div style="height: 30px; width: 780px; clear: both;" id="E1">
<div style="text-align: center; width: 780px;" lucida="" grande="" ;="" line-height:="" 16px;="" id="C3"><strong style="color: rgb(68, 68, 68);"><span style="font-size: 14px;">XXX</span></strong><br />
<strong style="color: rgb(68, 68, 68);"><span style="font-size: 14px;">XXX</span></strong><br />
<br />
<font color="#9900cc"><strong><span style="font-size: 12px;">XXX</span></strong></font></div>
<div style="height: 40px; width: 780px;" id="E2">
<div style="width: 780px;" id="C4">
<table border="0" cellpadding="0" cellspacing="0" width="780">
  <tbody>
    <tr>
      <td width="100">&nbsp;</td>
      <td id="TC2" style="font-family: Century Gothic; font-size: 11px;" width="290"><span style="font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);">XXX</span><br />
      <span style="font-weight: bold; font-size: 14px; line-height: 16px; color: rgb(68, 68, 68);">XXX</span><br />
      <br />
      <br />
      <span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">XXX</span><br />
      <br />
      <span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">XXX</span><br />
      <span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
      <span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
      <span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
      <br />
      <span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">XXX</span><br />
      <span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
      <br />
      <span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">XXX</span><br />
      <span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
      <br />
      <span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">XXX</span><br />
      <span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
      <span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
      <br />
      <span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">XXX</span><br />
      <span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span><br />
      <br />
      <span style="line-height: 13px; font-weight: bold; color: rgb(68, 68, 68);">XXX</span><br />
      <span style="line-height: 13px; color: rgb(102, 102, 102);">XXX</span>
      </td>
      <td width="0">&nbsp;</td>
      <td style="text-align: center;" width="380"><br />
      </td>
    </tr>
  </tbody>
</table>
</div>
<div style="height: 40px; width: 780px; clear: both;" id="E3">
<div style="overflow: auto; text-align: justify; width: 780px;" century="" gothic="" ;="" font-size:="" 11px;="" border:="" 1px="" solid="" #ccc;="" id="C5"><strong style="color: rgb(68, 68, 68);">XXX</strong><br />
<br />
<span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
<br style="color: rgb(102, 102, 102);" />
<span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
<br style="color: rgb(102, 102, 102);" />
<span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
<br style="color: rgb(102, 102, 102);" />
<span style="color: rgb(102, 102, 102);"> XXX</span><br />
<br />
<br />
<strong style="color: rgb(68, 68, 68);">XXX</strong><br />
<br />
<span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
<br style="color: rgb(102, 102, 102);" />
<span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
<br style="color: rgb(102, 102, 102);" />
<span style="color: rgb(102, 102, 102);"> XXX</span><br style="color: rgb(102, 102, 102);" />
<br style="color: rgb(102, 102, 102);" />
<span style="color: rgb(102, 102, 102);"> XXX</span></div>
<div style="height: 30px; width: 780px;" id="E4">
<div style="text-align: center; width: 700px; float: left;" century="" gothic="" ;="" font-size:="" 11px;="" text-decoration:="" none;="" id="C6">
<p><a href="http://www.lacotedesmontres.com/Ebel-1215891-PdN.html" target="_blank">XXX</a><br />
</p>
</div>
<div style="width: 80px; float: left;" id="C7">
<div style="height: 400px; width: 700px; float: left; background-image: url(http://data.imagup.com/2/1105402426.jpg);" id="C8">
<div style="float: left; width: 80px; text-align: right;" id="C9"><img src="http://data.imagup.com/2/1105402426.jpg" onclick="remplace('http://data.imagup.com/1/1289760482.png');" height="40" width="70" /><br />
<br />
<img src="http://data.imagup.com/2/1105402426.jpg" onclick="remplace('http://data.imagup.com/1/1289479756.png');" height="40" width="70" /><br />
<br />
<img src="http://data.imagup.com/2/1105402426.jpg" onclick="remplace('http://data.imagup.com/1/1289479789.png');" height="40" width="70" /><br />
<br />
<img src="http://data.imagup.com/2/1105402426.jpg" onclick="remplace('http://data.imagup.com/1/1289479720.png');" height="40" width="70" /></div>
<div style="height: 30px; width: 780px; clear: both;" id="E5">
<div style="text-align: center; width: 780px;" lucida="" grande="" ;="" line-height:="" 16px;="" id="C10"><strong style="color: rgb(68, 68, 68);"><span style="font-size: 10px;">XXX</span></strong></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
qwertz1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/11/2010, 15h52   #4
Invité de passage
 
Inscription : novembre 2010
Messages : 44
Détails du profil
Informations forums :
Inscription : novembre 2010
Messages : 44
Points : 0
Points : 0
Bon j'ai réécris tout le code (sans le javascript) et le rendu dans l'annonce et parfait.

Dans un premier temps, je voudrais lorsque je clique sur une des image du div "C9" quel celle-ci apparaise dans le div "C8", mais je ne sais pas comment reintroduire cette action dans mon code.

Code :
1
2
3
4
5
6
7
8
<script language="javascript">
function remplace(image) {
document.getElementById("C8").innerHTML="<img src='"+image+"'>";
}
</script>

<img src="http://data.imagup.com/2/1105402426.jpg"
onclick="remplace('http://data.imagup.com/2/1105402426.jpg');"
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div
style="height: 400px; width: 700px; float: left; background-image: url(http://data.imagup.com/2/1105402426.jpg);"
id="C8">
</div>
<div style="text-align: right; width: 80px; float: left;" id="C9"><img
style="width: 70px; height: 40px;" alt=""
src="http://data.imagup.com/2/1105402426.jpg"><br>
<br>
<img style="width: 70px; height: 40px;" alt=""
src="http://data.imagup.com/2/1105402426.jpg"><br>
<br>
<img style="width: 70px; height: 40px;" alt=""
src="http://data.imagup.com/2/1105402426.jpg"><br>
<br>
<img style="width: 70px; height: 40px;" alt=""
src="http://data.imagup.com/2/1105402426.jpg"><br>
</div>
qwertz1 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 20h17.


 
 
 
 
Partenaires

Hébergement Web