G
Guest
how can i anchor a button or small graphic to allow a user to return to the
top of a page
top of a page
srork said:how can i anchor a button or small graphic to allow a user to return
to the top of a page
Andrew said:Text link:
<a href="#top">click to return to top</a>
Same idea, but with an image:
<a href="#top"><img src="top.gif"></a>
top?
Worksmart said:Because I don't want to look at code, I highlight my Back Up text or
button, click the hyperlink toolbar button, choose the "Existing File
or Web Page" command, and click to add that page to the Address line.
Andrew, are you saying I could use this
<a href="#top">click to return to top</a>
and no matter which page I put this on, the back up command will go
to top?
Trevor L. said:Worksmart said:Because I don't want to look at code, I highlight my Back Up text or
button, click the hyperlink toolbar button, choose the "Existing File
or Web Page" command, and click to add that page to the Address line.
Andrew, are you saying I could use this
<a href="#top">click to return to top</a>
and no matter which page I put this on, the back up command will go
to top?
AFAIK, if you add the code
<a href="#top">click to return to top</a>
clicking on the text will go to the top.
This causes the current window to be opened and located to the to the tag
named #top. Because this tag doesn't exist, the default will be the top of
the page.
Note
1. This opens a new page. To reopen the same page, use
<a href="#top" target="_self">click to return to top</a>
2. The reference is actually "index.html#top" (if the page is index.html)
and this will appear in your address bar. To avoid this, use
<a href="index.html" target="_self">click to return to top</a>.
This has the disadvantage that you have to tailor it for each page
I read your statement: "I don't want to look at code", but you want get
too far without understanding at least some HTML code.
It is very easy to add a link such as this. Click on HTML view (I think
that's correct for FP2002) and you will see the code. You will find that
most of is the text that you see displayed. Just find the point where you
want to add the link and paste in the code at this point. That's all there
is to it. (Of course, you have to save the file as usual.)
I also managed to do this using the menu.
Insert: Hyperlink
Address: index.html
Target Frame: same frame
Text: click to return to top
generated this
<a href="index.html" target="_self">click to return to top</a>.
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
Murray said:I would not rely on this, Trevor. Did you look at the method I
posted?
Trevor L. said:Murray said:I would not rely on this, Trevor. Did you look at the method I
posted?
Hi Murray,
I was replying to various posts in the stream and in the end I thought the
best way was
<a href="index.html" target="_self">click to return to top</a>.
Is this what you would recommend?
or is this better
<a href="#top" target="_self">click to return to top</a> ?
or even
<a href="index.html#top" target="_self">click to return to top</a>
(where the page is index.html)?
By now, the OP has probably decided what to use anyway
I don't use a top link much myself, but I tried the first one on my site
and it seems to work OK
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/
Murray said:No. I had this code -
<body>
<div id="wrapper">
...
<a href="#wrapper">Back to top</a>
Trevor L. said:Murray said:No. I had this code -
<body>
<div id="wrapper">
...
<a href="#wrapper">Back to top</a>
Great,
Now I recall. And I am only 65. I thought my memory recall wouldn't
disappear so soon )
Of course, this is the solution that resolves every problem, except that
each page has to be altered to add the <div>
--
Cheers,
Trevor L.
[ Microsoft MVP - FrontPage ]
MVPS Website: http://trevorl.mvps.org/