Maintaining scrollbar position in div across multiple pages

  • astrosa
  • Born
  • Born
  • astrosa
  • Posts: 1

Post 3+ Months Ago

Hello,

I have a <div> tag with a scrollbar, containing thumbnails of linked images. Clicking on these images opens up a page with a larger image and text, with the scrollbar in the same position of each of these pages with identical content. When you click on the thumbnails to open up new pages, the scrollbar position resets. Is there a way to log the position of the scrollbar and transfer it from page to page, so that the position doesn't reset? With cookies maybe?

The reason why I didn't use an iframe and opted to create an individual page for each image is that I also have a lightbox script installed on each image. But then the lightbox would load only within the iframe, which is not the desired effect.

I can post a sample image of the page(s) if I'm not being clear enough.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 132 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.