Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 10 of 10

Thread: Anchors...?

  1. #1
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    How do you make it so that, when a person clicks on a link, it takes them to a specific part of a page?
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.

  2.  

  3. #2
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    You put an anchor link - for example like this :
    [COLOR=rgb(0, 128, 0)]<a [/COLOR]name=[COLOR=rgb(0, 0, 255)]"#top"[/COLOR][COLOR=rgb(0, 128, 0)]>[COLOR=rgb(0, 0, 0)]G[/COLOR][/COLOR]o to Top[COLOR=rgb(0, 128, 0)]</a> ([/COLOR] you have to use the # in the link or it won't work.)

    and at the top of the page you put an empty div to name your anchor:
    <div id="top"></div>

    you don't style the div at all - it just marks a spot on the page.

    You can put the anchor anywhere on the page, even use an already named div or other element.

    e.g. <div id="mainMenu"> (your anchor)

    [COLOR=rgb(0, 128, 0)]<a[/COLOR] name="[COLOR=rgb(0, 0, 255)]#mainMenu"[/COLOR][COLOR=rgb(0, 128, 0)]>[/COLOR] Go to Menu [COLOR=rgb(0, 128, 0)]</a>[/COLOR] (your link elsewhere in the page)
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  4. #3
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    Does that work even if the [COLOR=rgb(0, 128, 0)]<a [/COLOR]name=[COLOR=rgb(0, 0, 255)]"#top"[/COLOR][COLOR=rgb(0, 128, 0)]>[COLOR=rgb(0, 0, 0)]G[/COLOR][/COLOR]o to Top[COLOR=rgb(0, 128, 0)]</a> is on another page?[/COLOR]
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.

  5. #4
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    If it's on another page, you use an absolute path in your link:
    [COLOR=rgb(51, 51, 51)][COLOR=rgb(153, 119, 68)][COLOR=rgb(0, 128, 0)]<a[/COLOR] [COLOR=rgb(0, 0, 0)]href=[/COLOR][COLOR=rgb(0, 0, 255)]"http://yourdomain.com/pagename.html#...ant-to-call-it"[/COLOR][COLOR=rgb(0, 128, 0)]>[/COLOR][/COLOR][COLOR=rgb(0, 128, 0)][COLOR=rgb(0, 0, 0)]Link Text Here[/COLOR][/COLOR][COLOR=rgb(0, 128, 0)]</a>[/COLOR][/COLOR]
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  6. #5
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    It may also work with relative paths if all your pages are in the same directory on the server:
    [COLOR=rgb(51, 51, 51)][COLOR=rgb(153, 119, 68)][COLOR=rgb(0, 128, 0)]<a[/COLOR] [COLOR=rgb(0, 0, 0)]href=[/COLOR][COLOR=rgb(0, 0, 255)]"[COLOR=rgb(32, 117, 183)]pagename.html#whatever-you-want-to-call-it[/COLOR]"[/COLOR][COLOR=rgb(0, 128, 0)]>[/COLOR][/COLOR][COLOR=rgb(0, 128, 0)][COLOR=rgb(0, 0, 0)]Link Text Here[/COLOR][/COLOR][COLOR=rgb(0, 128, 0)]</a>[/COLOR][/COLOR]
    George Dolidze likes this.
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  7. #6
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    Thanks a bunches!
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.

  8. #7
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    No Prob, Hunny!
    Love the new avatar, BTW!
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  9. #8
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    Quote Originally Posted by AlphaMare, post: 208900
    No Prob, Hunny!
    Love the new avatar, BTW!
    Thanks Props to The Oatmeal.
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.

  10. #9
    WDF Staff AlphaMare's Avatar
    Join Date
    Oct 2009
    Location
    Montreal, Canada
    Posts
    4,570
    Member #
    20277
    Liked
    878 times
    Love the Oatmeal!
    Now go make a cool sig - you're overdue!
    Good design should never say "Look at me!"
    It should say "Look at this." ~ David Craib


    http://digitalinsite.ca ~ my current site . . info@digitalinsite.ca ~ my email

    If you feel that someone's post helped you fix your problem, answered your question, or just made you feel better, feel free to "Like" their post. The "Like" link is at the bottom right of each post, along side the "reply" link. And if you are being helped here, try to help someone else - pass it on!

  11. #10
    WDF Staff George Dolidze's Avatar
    Join Date
    Apr 2011
    Location
    Irvine, CA
    Posts
    2,487
    Member #
    27540
    Liked
    416 times
    Quote Originally Posted by AlphaMare, post: 208909
    Love the Oatmeal!
    Now go make a cool sig - you're overdue!
    I've no idea what to put on it! Apart from the smiley face that is.
    My freelancer website: DolidzeDesign



    You only need a parachute if you plan on skydiving twice.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 02:51 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com