Search This Blog

26.6.12

2 “BOOKMARK THIS SITE” WIDGET FOR BLOGGER.

́Bookmarking widget̀ in my perspective,is one of the ways you can retain your blog's visitors. Some people tend to forget/ignore bookmarking a site even if they like the post. Having the widget installed in your blog can help prevent that.

Bookmark script.

<script type="text/javascript"> /*********************************************** * Bookmark site script- © Dynamic Drive DHTML code library. * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/for full source code * Shared by SOLJAR2 @ http://freebie-planet.blogspot.com/ ***********************************************/ function bookmarksite(title,url){ if (window.sidebar) // firefox window.sidebar.addPanel(title, url, ""); else if(window.opera && window.print){ // opera var elem = document.createElement('a'); elem.setAttribute('href',url); elem.setAttribute('title',title); elem.setAttribute('rel','sidebar'); elem.click(); } else if(document.all)// ie window.external.AddFavorite(url, title); } </script> <a href="javascript:bookmarksite('YOUR BLOG/SITE NAME', 'YOUR BLOG URL')">BOOKMARK THIS SITE!</a>

HOW TO USE THIS WIDGET

Login to your Blogger acc.,then go to Design >> Page element and select 'Add a gadget'. Now scroll down till you see "HTML/JAVASCRIPT" and select ADD. Just copy/paste the code above and select SAVE.

CUSTOMIZATION.

Change the texts in red above accordingly i.eYOUR BLOG/SITE NAME and YOUR BLOG URL.

To make the bookmark button appear as an image instead of a text,replace BOOKMARK THIS SITE! in the code above with» <img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdSOLEatVWj_gvpeGYsH58cVR060nfX2qbnPcxKsUgfCBENZYDs8__aZ_SjHIIABkKV1gA9tTkvhMi6Tf6c4HJwU1so78zPQzAFCF0Nsytz_SSdxAM22cj65Q5lkLXuOfUnUGTgGg8a3E/" alt="Text to be displayed if browser's image is turned off"/>

THAT'S ALL.
NEXT» ¤HOME¤

 
[GET THIS]