Jump to content

Back to Top link


Recommended Posts

I'm adding a Back to Top link to my document. I've searched around these forums, Google, etc but haven't come up with any help.One suggestion was to "paste anchor ( <a name="top"></a> ) to theme header.html and that link ( <a href="#top">Back to Top</a> ) to footer.html". Now I'm not really sure what all that means and, again, a search didn't turn up any help.I didn't find anything called a theme header.html in my document. The top of my document before the body looks like this:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled Document</title><style type="text/css"><!--.style6 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold;}.style12 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;}.style14 { font-size: 14px}.style16 { font-size: 14px; font-weight: bold;}--></style></head>So where is the theme header in all that?And I'm not sure why putting a link in the footer of my document would allow a Back to Top link elsewhere in the document to return the user to the top of the page.Any help is greatly appreciated.Thank you.

Link to post
Share on other sites
I'm adding a Back to Top link to my document. I've searched around these forums, Google, etc but haven't come up with any help.One suggestion was to "paste anchor ( <a name="top"></a> ) to theme header.html and that link ( <a href="#top">Back to Top</a> ) to footer.html". Now I'm not really sure what all that means and, again, a search didn't turn up any help.
A name anchor ( <a name="top"></a> ) allows you to mark a place in the page that can be addressed by a browser. The reference tag ( <a href="#top">Back to Top</a> ) actually is expanded to <a href="http://mywebhost.com/mypage.html#top">Back to Top</a> and just means 'go to the spot named "top" in this page'. I'm not sure what was intended by "header.html" or "footer.html", but I'm guessing you found this on a site which built its pages from multiple files. All you need to do is put the name anchor near the top of the page "body" and then insert the #top reference anywhere in the page where you want a link pointing back to the top of the page. Hope this helps.Regards,Angela
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...