dcsimg
www.webdeveloper.com
Results 1 to 11 of 11

Thread: I don't like anchors

  1. #1
    Join Date
    Feb 2003
    Location
    Ohio
    Posts
    136

    I don't like anchors

    I'm trying to place anchors in photos on one page so that when a viewer clicks on a phot, they are taking to a corresponding section of another page. W3cschools has been no help, neither has webmonkey. Anyone around to point me to the right direction???
    Thank you, and as always I bow before your web-savvy-ness

  2. #2
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    You want a "client-side image map". See http://www.w3.org/TR/html4/struct/objects.html#h-13.6.1.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  3. #3
    Join Date
    Feb 2003
    Location
    Ohio
    Posts
    136
    Okay, I did one of those for the lamppost on the site (www.24brownstreet.com). That was no problem. But, I am curious what function does an anchor serve? When is the best time to use one???
    Thanks, for you're help, though... :-)

  4. #4
    Join Date
    Jan 2003
    Location
    Atlanta, GA
    Posts
    571
    The <a> tag is used to define anchors and links. For example, in your document, you may have:

    <body>
    <a name="topofpage"></a>
    Yadda Yadda Yadda
    Blah Blah Blah
    ...

    <a href="#topofpage">Top of this page</a>

    The first <a name=""> defines the anchor. The second is used to link to that location in the document. If the above page is called thispage.html, you may also use <a href="thispage.html#topofpage"> to go to that specific location from another page.

  5. #5
    Join Date
    Feb 2003
    Posts
    34
    Originally posted by stargal98
    Okay, I did one of those for the lamppost on the site (www.24brownstreet.com). That was no problem. But, I am curious what function does an anchor serve? When is the best time to use one???
    Thanks, for you're help, though... :-)
    Here's a great example of the function of anchors...

    my site is down but this page still works...

    http://www.smartads.info/web-design/misc/anchors/

    Kinda funny I actually did that... hehe...

    cheers

    ..:: Bro ::..

  6. #6
    Join Date
    Nov 2002
    Posts
    984
    For the record, the anchor model described here is outdated for quite a few years, and it's just used for backwards compability with old browsers.

    Nowdays to make an anchor you don't need to place <a> all over the place, just eg

    <p id="this-is-an-anchor">

    <a href="#this-is-an-anchor">jump to anchor</a>

    Fore backwards compability you can use
    <p id="this-is-an-anchor" name="this-is-an-anchor">

  7. #7
    Join Date
    Feb 2003
    Posts
    34
    Originally posted by Stefan
    For the record, the anchor model described here is outdated for quite a few years, and it's just used for backwards compability with old browsers.

    Nowdays to make an anchor you don't need to place <a> all over the place, just eg

    <p id="this-is-an-anchor">

    <a href="#this-is-an-anchor">jump to anchor</a>

    Fore backwards compability you can use
    <p id="this-is-an-anchor" name="this-is-an-anchor">
    Yep that's why the site was removed like I said before...

  8. #8
    Join Date
    Jan 2003
    Location
    Atlanta, GA
    Posts
    571
    Originally posted by ..::Bro::..
    Yep that's why the site was removed like I said before...
    With all due respect, your site does not validate as HTML 4.01 Transitional. You seem to be using proprietary IE attributes (gridx gridy etc). Your pages look different on IE/Win and IE/Mac. Sincerely speaking, people who should be giving advice on HTML should atleast do things right on their webpages.

    Originally posted by Stefan
    I stand corrected. Thanks

  9. #9
    Join Date
    Feb 2003
    Posts
    34
    Originally posted by nkaisare
    With all due respect, your site does not validate as HTML 4.01 Transitional. You seem to be using proprietary IE attributes (gridx gridy etc). Your pages look different on IE/Win and IE/Mac. Sincerely speaking, people who should be giving advice on HTML should atleast do things right on their webpages.


    I stand corrected. Thanks
    Yep.. that's why it's under construction ....

    The person asked what functions "anchors" have...

    I merely showed a fun page to what anchors serve as, I didn't
    tell her to look at my code to see that my code is off, did i?

    These are discussion groups... I didn't say take my advice,
    I said laugh a little at this example.

  10. #10
    Join Date
    Jan 2003
    Location
    Atlanta, GA
    Posts
    571
    Mine's also a suggestion... I didnt mean to be rude.

  11. #11
    Join Date
    Feb 2003
    Posts
    34
    no worries man... I just find that I don't learn from my mistake if I don't make any...

    cheers!

    ..:: Bro ::..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles