You are here: CSS Scroll Position After Javascript "reload()" « HTML « IT news, forums, messages
CSS Scroll Position After Javascript "reload()"

Posted by Raffi on 10/27/06 01:26

Hi,

I have an application screen with a CSS scroll area. Users click links
in the scroll area which open small popup windows to enter data. When
the data is submitted, the popup reloads the opener to update the page
and closes itself. However when the parent page is updated, the div
scrolls back to the top. Is there a way to have CSS remember the
vertical scroll position and go back to it when the page is reloaded?
Similar to document.body.scrollTop in Javascript. Here's the relevant
portion of the code:

<STYLE TYPE="text/css">
div.scroll
{
height: 400px;
width: 960px;
overflow: auto;
border: 1px solid #0000ff;
background-color: #77ddcc;
padding: 8px;
}
</STYLE>

.............

<div class="scroll">
...application data...
...application data...
...application data...
...application data...
</div>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация