Back to Top button / link
CJO,
Here's a poser for you. Is there a way to add a BACK TO TOP link to the bottom of every post so that when a long list of posts is encountered, users who only use their Mice could click it to return to the top of the page.
I have been experimenting with Greasemonkey but I feel there could be an easier way.
Over to you
I think this would have to be coded into the page html...
This occasionally annoys me too.
Yes, that's what I thought too. Thanks anyway.
Fixed the problem with a Bookmarklet.
javascript:{scrollBy(0,-10000)}
![]()
How does that work then? I thought javascript was blocked here for users?
Yes Javascript is blocked here but BOOKMARKLETS are links with script code in them that are saved as bookmarks by the user. They run independent of the site.
The easy way to use the one above is to drag a PERMALINK from any page to the Bookmarks toolbar on the browser. Say the one above on your post.
Right click the Permalink and select Properties.
Change the NAME from permalink to something sensible like SCROLL UP
Change the LOCATION text from "http://hackyour.lefora.com/2009/01/31/back-to-top-button-link/3217253/" to the to "javascript:{scrollBy(0,-10000)}"
Click SAVE CHANGES and you're done. For any page that is very long on any site you visit you can scroll back to the top with one click.
Change the - to + to scroll UP. Change the value after the sign for smaller scroll steps.
There are loads of readymade BOOKMARKLETS out there.
A big thumbs up for that one!
Locked Topic
You must be a member to post in this forum