Friday, December 23, 2011

Filled Under: ,

Blogger Follow Us J-Query Widget ( Social Icons )


After getting a lot of questions about our social icons on our sidebar, and how to add it for blogger, i decided that blogger users deserves whats better, So today we will learn how to add a beautiful and clean Follow Us J-query blogger widget. Please see the demo , then read the steps to learn how to add it in very easy steps.
Widget Features.
  • Auto resizing that fits any blogger template.
  • 4 social icons including ( facebook, twitter, mail letter, and rss feeds).
  • J-Query hover effect ( tooltip ).
  • Clean and unique design.
Demo Of Blogger Follow Us J-Query Widget
Warning : Before you start applying any changes to your blogger template code, We encourage you to Backup it, by clicking on Download Full Template link.
Step 1, Adding the css code
Please go to your blogger account, And navigate to ( Dashbaord >> Design >> Edit Html )
And At this page, Please find the next code,
]]></b:skin>
And exactly before it, Please add the following code,
  #social {
  width: 98%;
  height: 45px;
  margin: 0;
  padding: 10px 5px 5px 30px;
  list-style: none;
  border-right:solid 1px #853529;
  position: relative;
  background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfBy5VgbvFOjLQwPcCM952HgWKZzblG4euKRFLbh1tpi8QXNDAFaLeRCywI1iuCxWqeJnvbTnvJCKIy63aFYOgDF1mul-YSP8DT699NIhlapfmHM_O_QVhF1RuBtQ7428d_NCz0Q8kEm0/) no-repeat left top;
  }

#social p{
  font-size:1.5em;
  color:#FFFB98;
  font-weight:bold;
  float:left;
  margin: 10px 10px 0 0;
  text-shadow: 1px 1px 0px #000000;
  filter: dropshadow(color=#000000, offx=1, offy=1); 
  }

.abt{
  font-size:0.8em;
  color:#787878;
  float:right;
  margin: 0 -30px 0 0;
  text-shadow: 1px 1px 0px #ffffff;
  filter: dropshadow(color=#ffffff, offx=1, offy=1); 
  }

#social li {
  width: 32px;
  height: 32px;
  float: left;
  margin-right: 3px;
  }

#social li a {
  float: left;
  display: block;
  width: 100%;
  height: 100%;
  text-indent: -1000em;
  background-repeat: no-repeat;
  text-decoration: none;
  }

#social #rss {
  background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6C5Or1_qwq4cbO9yQrvj4hD_7tpJ71GvoWfg91AwXbBe3SQ092-q4D8XTbVAn6VBJMZEhF-WNKF6-1ie-r2VTqfWeeY9PdJYjEN_xVCH__bczuouOWRH9-7yvcM9Nf5rzJI3pkHOGPHk/s400/allblogtools_rss.png);
  }

#social #facebook {
  background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk6r6BDDxM2AkciifVXEMrGya35NwlLpZ8On_hk3sj8t456QicL0Gm7O9Ud_6oJ3GHHzjKWQsi-3gonFn3OnbeRfT_66ZKfkUTFfdsk13oUNUaOQ3zIRrafzwhvBeJdhzH_nNNmlNU7Nw/s400/allblogtools_facebook.png);
  }
  #social #twitter {
  background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvuBdZlkrKnFhoDwwlN3KmmbCW4xSvo7GTyHjbSgFicGnokLsgM6YliXJcXfUYQMxFqajUTTVOfDLMccYmM1KD5aEvC1P78N-YsbnL7WeQHA5QtOJvm0xx491zvP6F1060iMQF61qYqAg/s400/allblogtools_twitter.png);
  }
  #social #mail {
  background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDPzlkObZIArbUlSGYLVATE6sSO1QTiqkNpLQ_NyrZ4-uK9UXQn3Rwhd0NG_A480CNXQ5SLHwTk6_QiA8KhbBt1PjHqvInCDxyUBAGFiTF0Hn8MfWSYy_WY75w-zcJMFJeaquksWPgrHM/s400/allblogtools_email.png);
  }

span.tooltip {
  background: #575757;
  padding: 3px;
  display: block;
  width: 140px;
  border: 1px solid #000000;
  position: absolute;
  margin-top:-40px;
  color: #F0F0F0;
  font-size:10px;
  text-indent: 0;
  font: Arial, sans-serif;
  text-align: center;
  -webkit-box-shadow: inset 2px 2px 2px #616161;
  -moz-box-shadow: inset 2px 2px 2px #616161;
  box-shadow: inset 2px 2px 2px #616161; 
  -moz-border-radius: 5px;
  border-radius: 5px; 
  }
And now go the the next step.
Step 2, Adding the J-query codes
At the same page in step 1, find the following code,
</body>
And before it, and the next code,
<script type='text/javascript'>
  window.setTimeout(function() {
  document.body.className = document.body.className.replace(&#39;loading&#39;, &#39;&#39;);
  }, 10);
  </script>

<script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'/>
  <script type='text/javascript'>
  //<![CDATA[
  $(document).ready(function() {

 $('#social li').each(function() {

  var $li = $(this);
  var title = $li.find('a').attr('title');

  $li.find('a').removeAttr('title');

  $('<span class="tooltip"/>').text(title).appendTo($li.find('a')).hide();


  $li.find('a').mouseover(function() {


  var top = $(this).position().top;
  var left = $(this).position().left;

  $(this).find('span').fadeIn()({
  top: top,
  left: left
  }, 'slow'); 

  });

  $li.find('a').mouseout(function() {


  $(this).find('span').fadeOut('slow');


  });

  });


});

//]]>
  </script>
Now please click Save Template And go ahead to step 3.
Step 3, Adding the widget code to your sidebar.
Now go to ( Dashbaord >> Design ) , You are now at page elements page,
At your sidebar, click Add A Gadget, And from the list, choose Html / JavaScript 
Now paste the following code,
<ul id="social">
  <p>Follow Us </p>
  <li><a href="http://BLOG-NAME.blogspot.com/feeds/posts/default?alt=rss" id="rss" title="Follow Our Feeds">Rss</a></li>

<li><a href="MailLink#" id="mail" title="Subscribe To Our News Letter">Mail</a></li>

<li><a href="FaceBookLink#" id="facebook" title="Be Our FaceBook Fan">Facebook</a></li>

<li><a href="TwitterLink#" id="twitter" title="Follow Us On Twitter">Twitter</a></li>
  </ul>

<b class="abt"><a href="http://www.allblogtools.com/#">Get This Widget</a> | By <a href="http://www.allblogtools.com">AllBlogTools.com</a></b>
All you have to do is to change the green words to your social account urls.
And click Save 
That’s it, I wish you like it and in case you wanted to download the widget images, you’ll find it here 209.
Feel free to leave your comments and feedback.

0 comments:

Post a Comment