Making my prev/next links send me to the top of the page
1) Script Title: Virtual Pagination Script v2.1
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...pagination.htm
3) Describe problem: I'm using Demo3 on the the Virtual Pagination Script and it's working fine but for one thing - the pagination bar on the bottom of the page doesn't send me to the top of the prev/next pages, it sends me to the bottom, so I have to scroll up. I'm looking to find out how to tweak the code so that when I click prev/next or any of the page numbers on the bottom bar, it sends me to the top of the relevant page. Can you help?
There's a couple of threads in the past that discuss this, for example: http://www.dynamicdrive.com/forums/s...ad.php?t=41898
Prev/Next links in virtual pagination not sending to top of page
Thanks for sending me that link. Unfortunately, the recommendations don't seem to be working for me.
What happens is that when I add the code to the function showpage () in the .js file:
if (contentArea && contentArea.scrollIntoView)
Any help much appreciated...
There must be an error in your set up somehow. Try the below modified .js file instead, which adds the necessary code in.