Sunday, January 2, 2011

Double Click to Back to Top

Usually, when we finished read an article, we've been at the very bottom of the blog. To return to the top, we must scroll the scrollbar. Actully, we can make a shortcut, so the visitors can return to the top of the blog easily, just double click! If you want apply this trick to your blog, you just follow the steps. To try this trick, you can double click on this blog.

1. Log in to your blogger account
2. Go to Design>>>Page Elements>>>Add Gadget
3. Choose "HTML/Java Script"
4. Copy the code below, and paste on the place
<script language="JavaScript1.2">
function dblclick() {
window.scrollTo(0,0)
}
if (document.layers) {
document.captureEvents(Event.ONDBLCLICK);
}
document.ondblclick=dblclick;
</script>
5. Save now

No comments:

Post a Comment