I'm makeing a chat room (chat room ), and i need some ideas for the scrolling, becosue i'v got complaints of the fist atempt being to slow, so i replaced it with a fast one, now they say thay can't view what has been posted before, any ideas?
i'm working on the final one and it will add the postings to the top, so there will be no scrolling needed, but that will be a few months, and i need this ASAP![]()
thanks for any ideas you can come up with
first script: too slow
second: too crazyCode:<SCRIPT> Scrolling = 11; function ScrollWin() { while(Scrolling != 7000) { this.scroll(1,Scrolling) Scrolling++; } } </SCRIPT>
Code:<SCRIPT> var speed=99999 var currentpos=0,alt=1,curpos1=-1,curpos2=-1 function initialize(){ startit() } function scrollwindow(){ if (document.all) temp=document.body.scrollTop else temp=window.pageYOffset if (alt==0) alt=1 else alt=1 if (alt==0) curpos1=temp else curpos2=temp if (curpos1!=curpos2){ if (document.all) currentpos=document.body.scrollTop+speed else currentpos=window.pageYOffset+speed window.scroll(0,currentpos) }else{ currentpos=0 window.scroll(0,currentpos) } } function startit(){ setInterval("scrollwindow()",10) } window.onload=initialize </SCRIPT>



Reply With Quote
Bookmarks