Posts marked with "JavaScript" in categories

How to show Disqus comment count in Blogger

Many of sites have switched to Disqus comment system. It’s fast, easy and simple to use. Many wanted to show the comment count on their homepages. For showing the comment count on your **Blogger Blog **you can just do a simple trick.

Go to Blogger -> Template -> Edit HTML.

Place this Javascript code above .

<script type="text/javascript">
  /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  var disqus_shortname = '<span style="background-color: yellow;">subinsblog</span>'; // required: replace example with your forum shortname
  /* * * DON'T EDIT BELOW THIS LINE * * */
  (function () {
    var s = document.createElement('script'); s.async = true;
    s.type = 'text/javascript';
    s.src = 'http://' + disqus_shortname + '.disqus.com/count.js';
    (document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
  }());
</script>

Replace the yellow background text above to your **Disqus **shortname example: subinsblog from subinsblog.disqus.com is the shortname.

... [READ MORE]

Creating a Contact Me page for Blogger Blog

Blogger has added a new widget in their widget page. This widget is a Contact Me widget which allows blog visitors to contact you.



This can be added in your blog sidebar or footer. In this tutorial I will tell you to how to add this to a blog page.
Create a blank page from Blogger -> Pages -> New Page -> Blank Page
Toggle to tab HTML and paste these code in the HTML textarea :




Name



Email
*



Message
*