Das die Histroy weg ist, ist normal. Er ladet ja die komplette Shoutbox neu. Ansonsten müsstest du den preload ans Ende setzen.
//Edit: Musst dir das hier:
PHP-Code:
//aktuelle Daten laden
loadData();
//alle 5 Sekunden neue Daten holen
setInterval("loadData()",5000);
und das hier anschauen:
PHP-Code:
function loadData()
{
if (xmlHttp) {
xmlHttp.open('GET', 'getdata.php', true);
xmlHttp.onreadystatechange = function () {
if (xmlHttp.readyState == 4) {
document.getElementById("asb_content").innerHTML = xmlHttp.responseText;
}
};
xmlHttp.send(null);
}
}