Bonjour à toutes et à tous,
J'aurai bien voulu insérer un background à ma page créée dynamiquement dans un module en delphi au lieu d'une couleur ainsi qu'un cadre image autour de l'image qui s'affichera.
Seul le background de couleur fonctionne malgré l'essai avec background-image:url(image.jpg) etc....
Voici mon code :
Si quelqu'un pouvait m'aider ce serait sympa.
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63 u:='<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">'#10#13+ #10#13+ '<html>'#10#13+ '<head>'#10#13+ '<title>SURVEILLANCE</title>'#10#13+ //***********mise à jour du taux de rafraichissement********************** '<META http-equiv="Refresh" content="'+inttostr(Ed_refresh.Value)+'">'#10#13+ '</head>'#10#13+ '<BODY ms_positioning="gridlayout" leftMargin=0 bgcolor="#000080" >'#10#13+ '<FORM NAME="mail" METHOD=GET ACTION="/cgi-bin/mailer"> <INPUT NAME="RESTE" SIZE=5 MAXLENGTH=5 style="color: #00FF00; border-style: outset; border-width: 1; background-color: #000000">'#10#13+ '</FORM>'#10#13+ '<p align="center"><font color="#FFFF00"><b><i><FONT face="Alien Encounters" size=6>SURVEILLANCE</FONT> </i></b></font>'#10#13+ ' </p>'#10#13; if alarme then begin t1:=60; u:=u+'<p align="center"><font face="Arial Narrow" size="6" color="#FF0000">ALERTE ! </font>'#10#13+ '</p>'#10#13; end else t1:=0; u:=u+'<p align="center"> </p><img'#10#13+ 'style="Z-INDEX: 101; LEFT: 40px; WIDTH: 259px; POSITION: absolute; TOP: '+inttostr (100+t1)+'px; HEIGHT: 211px"'#10#13+ 'height="35" alt="Cam 1" src="Image1" width="27" border="4">'#10#13; if NbCamera>1 then begin u:=u+'<p align="center"> </p><img'#10#13+ 'style="Z-INDEX: 101; LEFT: 319px; WIDTH: 259px; POSITION: absolute; TOP: '+inttostr (100+t1)+'px; HEIGHT: 211px"'#10#13+ 'height="35" alt="Cam 2" src="Image2" width="27" border="4">'#10#13; end; if NbCamera>2 then begin if NbCamera=4 then u1:= 40 else u1:= 180; u:=u+'<p align="center"> </p><img'#10#13+ 'style="Z-INDEX: 101; LEFT: '+inttostr(u1)+'; WIDTH: 259px; POSITION: absolute; TOP: '+inttostr(330+t1)+'px; HEIGHT: 211px"'#10#13+ 'height="35" alt="Cam 3" src="Image3" width="27" border="4">'#10#13; end; if NbCamera=4 then begin u:=u+'<p align="center"> </p><img'#10#13+ 'style="Z-INDEX: 101; LEFT: 319px; WIDTH: 259px; POSITION: absolute; TOP: 260px; HEIGHT: '+inttostr(330+t1)+'px"'#10#13+ 'height="35" alt="Cam 4" src="Image4" width="27" border="4">'#10#13; end; u:=u+'</body>'#10#13+ '</html>
@+,
Cincap
Partager