PDA

View Full Version : Resolved Scrolling HTML bookmarks onload



sylver
05-18-2009, 09:38 PM
1) Script Title:

Scrolling HTML bookmarks

2) Script URL (on DD):

http://www.dynamicdrive.com/dynamicindex5/bookmarkscroll.htm

3) Describe problem:

I was wondering something. Is it possible and how, to on load, page scrolls to #somediv using this nice effect

Nile
05-19-2009, 02:11 AM
Try adding this to the head of your document:


<script type="text/javascript">
window.onload = function(){
bookmarkscroll.scrollTo('somediv')
};
</script>

sylver
05-19-2009, 10:08 AM
Now workin' fine...

Tnx

Nile
05-19-2009, 11:36 AM
Glad to help you sylver!