this is for a simple chat script im making for my game.
Code: Select all
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script>
<script type="text/javascript">
setInterval(
function(){
$('#chat').load('loadchat.php');
$("#chat").attr({ scrollTop: $("#chat").attr("scrollHeight") });
}, 100);
</script>
i added that in. so that it would scroll to bottom.
any suggestions would be appreciated.
-klown