SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Links?

  1. #1
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Links?

    I have just started designing a site and I a trying to create a link that automatically scolls to a certain point on the page?

    Ex. http://websitetips.com/articles/

    Thanks for your help.

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You mean something like this?
    Code:
    <a href="http://www.somewhere.com" onmouseover="location.href='http://www.somewhere.com'">link text</a>
    You'll have to create an anchor point for the part of the page you want the link to go to, then link to the part of the page, like so:

    Code:
    <a href="http://www.somewhere.com/index.html#content" onmouseover="location.href='http://www.somewhere.com/index.html#content'">link text</a>

  3. #3
    Is Still Alive silver trophybronze trophy RetroNetro's Avatar
    Join Date
    Jul 2003
    Location
    Texas
    Posts
    6,883
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Or maybe like:
    Code:
    <a id="anchorname"></a>
    That goes where you want the link to go when clicked and then the link would be:
    Code:
    <a href="page.html#anchorname" title="#">Link Text</a>

  4. #4
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I thought about that as well, Ben, but figured that a dash of JavaScript would be better in this case, since he wanted it to happen "automatically" .

  5. #5
    SitePoint Member
    Join Date
    Feb 2007
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot, I have been looking all over for some scripts but could never find any. Thanks Again
    Last edited by Joebs2004; Feb 9, 2007 at 23:46.


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
  •