Sachez si la page a été modifiée depuis votre dernier passage ?
Créé le: 10 Mars, 2001 |
Télécharger ici le script ( 2 Ko )
1 - Copiez avant entre les balises <body> et </body> où bon vous semble :
<TABLE border=2
cellspacing=0 cellpadding=3 bordercolor="#000000">
<TR>
<TD bgcolor="#000044">
<div align="center"><font
color="#FFFFFF"> <font size="2"> <font face="Arial,
Helvetica, sans-serif">
<b>
<SCRIPT LANGUAGE="JavaScript">
<!--
document.write(document.title);
//-->
</SCRIPT>
</b></font></font></font></div>
</TD>
</TR>
<TR bgcolor="#FFFFFF"><!-- ici la
couleur de la partie haute du tableau -->
<TD> <FONT size=-1 color="#ff0000"
face="trebuchet MS"arial"> <font color="#000000"
face="Arial, Helvetica, sans-serif" size="2"><b>Créer
le:</b></font> <b><font
face="Arial, Helvetica, sans-serif" size="2" color="#000000"><!--
Mettre ici la date de création -->
1 Septembre, 2000 <BR>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name, value) {
var argv = SetCookie.arguments;
var argc = SetCookie.arguments.length;
var expires = (argc > 2) ? argv[2] : null;
var path = (argc > 3) ? argv[3] : null;
var domain = (argc > 4) ? argv[4] : null;
var secure = (argc > 5) ? argv[5] : false;
document.cookie = name + "=" + escape (value) +
((expires == null) ? "" : ("; expires=" + expires.toGMTString()))
+
((path == null) ? "" : ("; path=" + path)) +
((domain == null) ? "" : ("; domain=" + domain)) +
((secure == true) ? "; secure" : "");
}
function DeleteCookie(name) {
var exp = new Date();
FixCookieDate (exp);
exp.setTime (exp.getTime() - 1);
var cval = GetCookie (name);
if (cval != null)
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var cookie_date=new Date(document.lastModified);
var expdate = new Date();
expdate.setTime(expdate.getTime()+(5*24*60*60*1000));
document.write("<Font color=#000000>" + "Dernière
modification: "+ "</font>" +document.lastModified);
document.write("");
if (!(cookie_date == GetCookie("cookie_date"))){
SetCookie("cookie_date",cookie_date,expdate);
document.write("<font color=#000000><br>Le site à subit
des modifications depuis votre dernière visite!</font><br>");
}
// End -->
</SCRIPT>
</font></b> </FONT>
</TD>
</TR>
</TABLE>
© Copyright GendNet 2000 Tout droit de reproduction strictement réservé aux membres de l'association ®