Results 1 to 2 of 2

Thread: CSS Top and Bottom Frames Layout Bookmarks mess up.

  1. #1
    Join Date
    Apr 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS Top and Bottom Frames Layout Bookmarks mess up.

    1) Script Title:CSS Top and Bottom Frames Layout

    2) Script URL (on DD):
    http://www.dynamicdrive.com/style/la...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

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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...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/s...ad.php?t=31810
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •