Reply LinkBack Thread Tools Search this Thread
Old 08-05-2008, 19:38   #1 (permalink)
mathias
Refrigerated User
 
mathias's Avatar
 
Join Date: Mar 2006
Location: Central US
Posts: 161
Maintain scrolling position thru pages. . .

I'm after a way to maintain scrolled vertical position on a page even after clicking a link. For example, on this site there's a list of links, when I click one I don't want to be sent to the top of the next page when it loads, if I'm scrolled 600px down when I hit that link, I want to already be scrolled 600px down when the next page loads.

Is there a way to do this? It's like links that take you to header tags on a page - that changes your vertical scroll does it not? If I can't get a method for this type of function then I'll settle for a kick to the shins.
  Reply With Quote
Old 08-05-2008, 20:28   #2 (permalink)
pgo
Moderator
 
pgo's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NYC
Posts: 11,869
The only way you can alter how far down a page scrolls is linking to IDs or named anchors.

i.e. <a href="somepage.html#somelocation">Clicky</a>

And on somepage.html:

<something id="somelocation">

OR

<a name="somelocation"></a>
__________________
  Reply With Quote
Old 09-05-2008, 02:57   #3 (permalink)
mathias
Refrigerated User
 
mathias's Avatar
 
Join Date: Mar 2006
Location: Central US
Posts: 161
But, then that just positions the very top of the browser at the anchor doesn't it?
  Reply With Quote
Old 09-05-2008, 07:29   #4 (permalink)
pgo
Moderator
 
pgo's Avatar
 
Join Date: Jan 2005
Location: Brooklyn, NYC
Posts: 11,869
Yes. That functionality is intended so that you can link to specific content sections (has nothing to do with scrolling - that just happens to be the UI feature that browsers use).

Sounds like you've got some terrible usability/accessibility ideas brewing...
__________________
  Reply With Quote
Old 09-05-2008, 12:30   #5 (permalink)
mathias
Refrigerated User
 
mathias's Avatar
 
Join Date: Mar 2006
Location: Central US
Posts: 161
haha, you can smell it from the east coast can't you!
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8