SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Animated scrolling down a page without anchors

    Hi all,

    Is there a way to scroll down a page without using anchors or div ids?

    I used a script that used this before but here's my problem:

    I have a page called index.php, i use a link to scroll me down to div id="secondparagraph".
    There i load a project into another div on a layer on top (z-index: 2) with a link such as: ?page=project-detail&id=1
    And the project loads on top but the index.php under went back up to the top of the page.. because the link is actually index.php?page=project-detail&id=1

    How do i scroll down the index.php page and stay there while the div on top is showing?

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What do you mean by "There i load a project into another div" ...?

    I think I understand your problem but some clarification would be good.
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)

  3. #3
    SitePoint Member
    Join Date
    Jun 2008
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I meant that i load a php page into a div in index.php. For example, project-detail.php for an item that has id = 1 in a mysql table, so: index.php?page=project-detail&id=1.

    And that div it is loaded into has a z-index higher than the rest of the page so i floats on top of everything else..


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
  •