Ne rafraîchir que les images
Bonjour à toutes et à tous,
Dans ce code HTML créé dynamiquement, la page se rafraîchit toutes les 10s.
Est t'il possible de ne rafraîchir que les images ?
Voici le code :
Code:
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
|
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> |
Si il y a une possibilité, merci de me venir en aide.
@+,
Cincap
Décidément tu es le seul à répondre
Bonjour à toutes et à tous,
@ SpaceFrog, merci à toi pour tes précieux conseils.
Je note bien mon erreur, mais comme ce code Html est créé dynamiquement, ce n'est pas facile d'autant que le refresh est conditionné par ce code qui est relatif au composant sur ma fiche Delphi.
Code:
1 2 3
|
inttostr(Ed_refresh.Value) |
Je vais tester !
@+,
Cincap