riegal 0 Posted March 11, 2008 Report Share Posted March 11, 2008 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. Quote Link to post Share on other sites
bellavan 0 Posted March 11, 2008 Report Share Posted March 11, 2008 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 Quote Link to post Share on other sites
riegal 0 Posted March 11, 2008 Author Report Share Posted March 11, 2008 Thank you for responding. That's the kind of answer I needed: clear and concise. I know what to do now. Thank you very much. Quote Link to post Share on other sites
vchris 3 Posted March 11, 2008 Report Share Posted March 11, 2008 I just use <a href="#">Top</a> and no matching anchor. Works fine. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.