This content has been marked as final.
Show 3 replies
-
1. Re: Need help with Anchor?
Newsgroup_User Jun 9, 2006 1:47 AM (in response to whiskey3)whiskey3 wrote:
> http://www.anndruffel.com/articles/ufo/jamesmcdonaldsufofiles.htm
>
> If you click on the anchor (1) it jumps to the bottom of the page but
> the "back to top" anchor does not jump back up to (1)?
> The code looks okay to me but I can't figure out why it won't jump
> back up to (1)?
>
> Thanks
Have a look at http://www.w3schools.com/html/html_links.asp
You don't have a anchor defining the top of the document.
You need something like the following at the top of your document;
<a name="toptext">This text is at the top of the document</a>Then a link to
that anchor somewhere within your file of the form<a href="#toptext">Jump to
top</a>HTH,Pete.
--
Peter Connolly
http://www.acutecomputing.co.uk
Derby
UK
Skype ID: acutecomputing
-
2. Re: Need help with Anchor?
Newsgroup_User Jun 9, 2006 6:07 AM (in response to whiskey3)Your "Back to top" links refer to anchors that do not exist. Add an
actual "top of page" anchor and have your links point to it.
Some browsers will jump to the top of the page when a link to a
non-existent anchor is clicked on. But that's just the way they handle
that error. (I think this is what IE/Win does or did at one time.)
Because some browsers have this behavior, some web authors assumed that
all you had to do to get a "back to the top of the page" link was to
link to a non-existent anchor. In fact they were relying on a particular
error-handling behavior exhibited by some browsers. A good browser will
do nothing when you link to an anchor that doesn't exist.
--
James M. Shook
http://www.jshook.com -
3. Re: Need help with Anchor?
Newsgroup_User Jun 9, 2006 7:56 AM (in response to whiskey3)Your code was correct but there probably was a spacing problem.
(sorry, forgot exactly where it was)
I emailed correction to site contact.
"whiskey3" <webforumsuser@macromedia.com> wrote in message
news:e6bb36$fro$1@forums.macromedia.com...
> http://www.anndruffel.com/articles/ufo/jamesmcdonaldsufofiles.htm
>
> If you click on the anchor (1) it jumps to the bottom of the page but the
> "back to top" anchor does not jump back up to (1)?
> The code looks okay to me but I can't figure out why it won't jump back up
> to
> (1)?
>
> Thanks
>

