Need scrolling javascript

They have: 568 posts

Joined: Nov 1999

Usually I dont wander out of the Perl forums but this is an exception. I need a javascript that will scroll (slowly) from the bottom of the page to the top. It can have DHTML, or whatever it needs to have to get the job done.

Anyone who has a URL or tutorial, please post it.

They have: 568 posts

Joined: Nov 1999

Akk... I need it really bad now....

Anyone?
please?

They have: 122 posts

Joined: Jun 1999

I think this is what you are looiking for. It scrolls from top to bottom. Click Here

[This message has been edited by Arielladog (edited 09 April 2000).]

They have: 568 posts

Joined: Nov 1999

I tried that already.

See this is going to go along with a Perl application that will be used in a large company on different TV's that arelinked to one computer.

It needs to go slow enough for people to read it.

They have: 122 posts

Joined: Jun 1999

try this:

<script language="JavaScript1.2">

/*
Advanced window scroller script-
By Website Abstraction (www.wsabstract.com)
Over 200+ free JavaScripts here!
*/

var currentpos=0,alt=1,curpos1=0,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=0
if (alt==0)
curpos1=temp
else
curpos2=temp
if (curpos1!=curpos2){
if (document.all)
currentpos=document.body.scrollTop+1
else
currentpos=window.pageYOffset+1
window.scroll(0,currentpos)
}
else{
currentpos=0
window.scroll(0,currentpos)
}
}
function startit(){
setInterval("scrollwindow()",10)
}
window.onload=initialize
</script>

[This message has been edited by Arielladog (edited 09 April 2000).]

They have: 568 posts

Joined: Nov 1999

Awesome!
thanks

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.