[TriLUG] "Magic" navigation

Brian McCullough bdmc at bdmcc-us.com
Tue Oct 23 15:35:38 EDT 2007


On Tue, Oct 23, 2007 at 09:12:36AM -0700, Allen Freeman wrote:
> So if I'm understanding you, you're wanting to be able to automate scrolling down to $N element on the page? 
> 
> detecting element coordinates:
> http://www.quirksmode.org/js/findpos.html
> 
> discussion of various window. methods, scrollTo may be of interest:
> http://www.devguru.com/Technologies/ecmaScript/quickref/window.html

Sorry for the delay in getting back to you, Allan.  I was checking to
see if the function in the first reference was different from the four
other variations that I have tried.  Yes, this seems to work when you
have a button down the page somewhere and want to scroll back down to
where the button was clicked.  Unfortunately, with the hidden DIVs being
revealed, it seems to execute the "scrollTo" function at the bottom of
the page before the scroll value is set, and it just goes back to the 
top.


Brian




More information about the TriLUG mailing list