|
Im not even sure if this is JS or DHTML but here goes.
I have an div containg three images that I need to scroll with the user as they scroll down the page. However I need the div to stop before it gets withing a certain distance from the top and bottom of the page. Is this possible? How should I go about it.
|
|
|
It is DHTML which means "manipulating HTML with Javascript". So it is both DHTML and javascript, but that's redundant. :)
Do you already know how to scroll an element, and now you just need to know how to know if you are within a specific distance from the top or bottom? Or do you need help with the whole thing?
Here is one article that deals with scrolling content. http://www.snook.ca/archives/000368.html
More detailed help here: http://javascriptkit.com/javatutors/static4.shtml
Start with the smallest possible set of code and build on that. Test every step along the way to catch any mistakes immediately before going further.
Enjoy the journey.
|
|
|
|
|
|
|
|
|
|