SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru Zygoma's Avatar
    Join Date
    May 2006
    Location
    York, Uk
    Posts
    916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can anchor tags cross from one page to another?

    Ok this is hard for me to explain but here goes...

    I know an anchor tag is usefull for routeing a user to a web page say 3/4 of the way down but what if you wanted to link from one page but land on a different one 3/4 of the page down.

    For example on www.ibslog.com there is a navigation menu on the right hand side which for example says "Ballroom bottom Burp". When you click on this you land at the top of the page but then have to scroll down to find it which is a problem.

    Is there a way a user could click on the navigation "Ballroom Bottom Burp" on the home page and land on the story rather than hoping the user will scroll down to find it?

    Any insight welcome
    I have had a perfectly wonderful
    evening, but this wasn't it-
    Julius "GROUCHO" Marx - 1890-1977
    http://www.davidclick.com

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep. Just link to the page and the ID.

    Say if you're on the home page and you want to go somewhere else, you'd do it like this:

    <a href="/somepage.html#somesection>Go here</a>

    Just replace somepage.html with the file name of the page and #somesection with the ID that you want the user to jump to.

  3. #3
    SitePoint Guru Zygoma's Avatar
    Join Date
    May 2006
    Location
    York, Uk
    Posts
    916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Dan... it works a treat :-)
    I have had a perfectly wonderful
    evening, but this wasn't it-
    Julius "GROUCHO" Marx - 1890-1977
    http://www.davidclick.com

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I knew it would.

  5. #5
    SitePoint Enthusiast Kenpo's Avatar
    Join Date
    Mar 2005
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Dan Schulz View Post
    I knew it would.
    LOL That's gangsta & swagga.


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
  •