O
ojorus
Hi!
I just wonder how I can save a page's scroll position with javascript. (i'm
not a javascript developer) I have a PHP-page with two columns; the left
contains a lot of thumbnails, and the right contain a bigger picture of the
thumbnailed selected. The problem is that all these thumbnails (and the big
picture) are placed quite far down in the document. (a lot of text is at the
top.) What I want is that when a thumbnail is clicked, the page should
automaticly scroll down to the position the page had just before the
thumbnail was selected.
I manage to scroll to a spesific postition, for example scrollTo(0,200). But
I have not figured out how to scroll to a variable position.
An example to illustrate the problem:
http://www.bobilomsetningen.no/vis_bil.php?Bil_id=36&Bilde_id=240.
Can anyone help me on this one?
Ole Johan
I just wonder how I can save a page's scroll position with javascript. (i'm
not a javascript developer) I have a PHP-page with two columns; the left
contains a lot of thumbnails, and the right contain a bigger picture of the
thumbnailed selected. The problem is that all these thumbnails (and the big
picture) are placed quite far down in the document. (a lot of text is at the
top.) What I want is that when a thumbnail is clicked, the page should
automaticly scroll down to the position the page had just before the
thumbnail was selected.
I manage to scroll to a spesific postition, for example scrollTo(0,200). But
I have not figured out how to scroll to a variable position.
An example to illustrate the problem:
http://www.bobilomsetningen.no/vis_bil.php?Bil_id=36&Bilde_id=240.
Can anyone help me on this one?
Ole Johan