<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script type = "text/javascript"> $(function () { var interval = setInterval(function () { if ($("#div1").scrollTop() != $('#div1')[0].scrollHeight) { $("#div1").scrollTop($("#div1").scrollTop() + 10); } else { clearInterval(interval); } }, 1000); }); </script
<div id="div1" style="height:60px;width:100%;border:1px solid #ccc;overflow:auto">> </div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)