adsense

Thursday, June 27, 2013

Back to Top when Double Click in a blog

Back to Top when Double Click in a blog


double click

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.

0 comments

 
Posts RSSComments RSSBack to top
© 2011 Pro Blogging Tips And Tricks , blogger , Seo , Backlinks ,Social Bookmarking , Website optimization ∙ Designed by Blog
Released under Creative Commons 3.0 CC BY-NC 3.0