var largeExpDate = new Date ();
largeExpDate.setTime(largeExpDate.getTime() + (365 * 24 * 3600 * 1000));
SetCookie('username',username);
}
}
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;
}
document.write('<font face=arial size=4>Un grande benvenuto a '+username+' !</font> ');
//-->
</SCRIPT>
</HEAD>
<BODY bgcolor="white">
</body>
</html>
mi permette per tanto di far si che ogni volta che uno entra nel mio sito, entri con un nick, e con un scritta di benvenuto.
Io vorrei se possibile riciclare questo codice html per far si che io lo possa utilizzare per inserire all'interno del mio sito un spazio dove si possa vedere quanti di questi iscritti sono presenti all'interno del mio sito, e chi sono.