I was like on every question about this on the net, tried like 50 diff methods, first i tried to scroll the div - then when its not worked i've tried to iframe the file with the div and scroll the iframe.. nothing just works!
Look on the last script i have set up:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var t = 100; //arbitrary time in ms
$("#frame").animate({ scrollTop: $("#frame").height()}, t);
});
</script>
<center><iframe id="frame" src="xxx.php" frameborder="0" width="630px" height="500px"></iframe></center>
I tried both #frame and frame without the (#), both with (document).ready and without it.
Nothing seems to work on the page and its driving me nutz.
Thanks. :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…