html scroll help
- Started
- Last post
- 5 Responses
- mac10
Hi
I am trying to scroll and window using the window.scrollBy property but it just jumps the set position
is the a way of putting a easing script on it so it move slowly from one point to another.
I have see it done but I can’t find any example any were.any help would be great
Thanks
Mac10 :)
- mac100
any one :)
- n_m0
with any type of html animation, you're goal is to animate a little, then do it again. its the only way you have control. so something like (and this is off the top of my head so it probably won't work, but the theory is right):
function scrollIt(){
window.scrollBy(0,2)
setTimeout("scrollIt()",500)
}that type of thing. this would be on an onmouseover, or you'd also have to run a check evertime that you called the function (if y < 500 do the rest).
however, you could always just go somewhere like:
http://www.dynamicdrive.com/dyna…
good luck
- mac100
Thanks for that
I am go to have a look
at that nowcheers
mac10 :)
- mac100
thanks
squidfinger thats some nice
scripting.cheers
mac10 :)