Re: Some help with scrollTo please?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Some help with scrollTo please?

From: <taoberly@mindspring.com>
Date: Sun Apr 30 2006 - 02:21:05 CEST

junk419@houston.rr.com wrote:
> taoberly@mindspring.com wrote:

> > It's almost certainly not universal, but I think you want to read
> > window.pageXOffset and window.pageYOffset. (At least
> > Netscape-compatible browsers will support this.) So as the first line
> > of the reload_page() function, I would add
> >
> > x = window.pageXOffset;
> > y = window.pageYOffset;
> >
> > and then as the last line, add
> >
> > window.scrollTo(x,y);
> >
> > Something like that. Without seeing it in action, this may not be 100%
> > correct, but it's close.

> Well, like I said above, I am not at all familiar with javascript and
> how it all goes etc. I'd really appreciate it if someone could show me
> exactly where it goes. I've tried looking up examples but everyone's
> seems to be a little different. Also do I need to substitute x & y
> with numbers and if so which ones?

If you're still confused, email me the code privately. It's a simple
thing, but I can't say something will work 100% unless I try it myself.

Todd
Received on Mon May 1 05:27:22 2006