Click to See Complete Forum and Search --> : I don't like anchors
stargal98
02-17-2003, 08:27 AM
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
Charles
02-17-2003, 09:07 AM
You want a "client-side image map". See http://www.w3.org/TR/html4/struct/objects.html#h-13.6.1.
stargal98
02-17-2003, 09:26 AM
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... :-)
nkaisare
02-17-2003, 09:44 AM
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.
..::Bro::..
02-19-2003, 10:37 PM
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 ::..
Stefan
02-20-2003, 03:49 AM
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">
..::Bro::..
02-20-2003, 07:42 AM
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...
nkaisare
02-20-2003, 01:58 PM
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
..::Bro::..
02-20-2003, 02:35 PM
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.
nkaisare
02-20-2003, 02:45 PM
Mine's also a suggestion... I didnt mean to be rude.
..::Bro::..
02-20-2003, 02:48 PM
no worries man... I just find that I don't learn from my mistake if I don't make any...
cheers!
..:: Bro ::..