PDA

View Full Version : CSS Top and Bottom Frames Layout Bookmarks mess up.



WaxonWaxov
05-01-2008, 03:37 PM
1) Script Title:CSS Top and Bottom Frames Layout

2) Script URL (on DD):
http://www.dynamicdrive.com/style/layouts/item/css-top-and-bottom-frames-layout/

3) Describe problem:I have created a bookmark within the center section of a page wih this layout, then linked to that bookmark from another page.

Problem is when the page opens, it jumps directly to the bokmark and therefore cuts-off the top section. That is to say it does not open the page with the three sections then scroll in the middle section where the bookmark is. make sense?

Is there a way to make the page load fully before it goes to any bookmarks?

I would also like for it to work for bookmarks within the same page.

thanks

jscheuer1
05-01-2008, 05:20 PM
Bookmark? Do you mean a named anchor? If so, that is the default behavior of named anchors. If you want some kind of smooth scrolling to named anchors, there are scripts for that. I am almost certain that there is no way to do this without javascript. I'm not aware of any such scripts here on DD though.

You can Google:

smooth scroll

and see if anything that comes up would suit your purposes.

However, in complex layouts some of these scripts can get confused, even more so if the page also has scripts that alter the layout on page load.

But you may well be able to find one that works for your purposes. I've had some good experience with mootools smoothscroll:

http://davidwalsh.name/fluid-anchors-smooth-anchors-using-mootools

although to get it to scroll to a named anchor onload is tricky. I was able to get it to do so in this thread:

http://www.dynamicdrive.com/forums/showthread.php?t=31810