reset and begin
7/03/2014

Thêm thanh công cụ bên cạnh website

Thanh công cụ social sẽ nằm bên phải - màu sắc bắt mắt và luôn cố định  tại 1 vị trí trên trang web nhằm giới thiệu link các social network của bạn , dù bài có dài nó sẽ luôn ở 1 chỗ trên cao .

1- thêm widget - html/javascript vào template của bạn

2- add style
<style type="text/css">
ul#social {
    position: fixed;
    margin: 0px;
    padding: 0px;
    top: 10px;
    left: 0px;
    list-style: none;
    z-index:9999;
}
ul#social li {
    width: 100px;
}
ul#social li a {
    display: block;
    margin-left: -2px;
    width: 100px;
    height: 70px;    
    background-color:#fff;
    background-repeat:no-repeat;
    background-position:center center;
    border:1px solid #AFAFAF;
    -moz-border-radius:0px 10px 10px 0px;
    -webkit-border-bottom-right-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -khtml-border-bottom-right-radius: 10px;
    -khtml-border-top-right-radius: 10px;
    -moz-box-shadow: 0px 4px 3px #000;
    -webkit-box-shadow: 0px 4px 3px #000;
}
ul#social .twitter a{
     background:#0F96C6 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3lFZVKIcX6KpsGZzF-qHbEDOsT1EM0dJVgy_NjR3Xp-uPDrkj5VeAvAcHssv8xhCZ98Qmah7vrTIlKxFOqZHibkurLgDpDDp1LKK_n4bIOF2GI2xyh_q_yssB1zNNLfouwJuOseQJAcg/s1600/Twitter.png)no-repeat;
background-position:center center;
}
ul#social .googleplus a      {
    background:#D73D27 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKoqAVvE2XgGUH9XxJxvIgTxZH8IeTbrsNSNQWpyaUhHEzIqGmkEmdSXic1HokiAIMQg5mRsp6c-9fgxYJyxC2i9PxJNyeSVd4UnXujRN-9s9koWLst5x1Hs2_ilfb0AAFsWJp_Hff84E/s1600/GOOGLE+PLus.png)no-repeat;
background-position:center center;
}
ul#social .facebook a      {
    background:#1A4B97 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsIuKxa9IZkIpeaDr54ooVYVRlyzHD9tppraPIwJyOdPCcb_JxJAidxU7UvSYmZIuFpGhfrdFPH7hwPkAeToElnDe30g1Z3-0chV8MeZb8X0xKpd0D8bOuXOVkHmlB0ZkLwVw1547uN7I/s1600/Facebook.png)no-repeat;
background-position:center center;
}
ul#social .rss a      {
    background:#FAAE17 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4uJr84X2Xq46zQyDuyXZJqJYJ4ulWyPnnsKIlHrnq6mX4d41_JUQQ8bPt07D6IFGiKst2xakFtYG22ypYdYOct8n-eMBk4hQ4Cuns_cvzg5FfPAWWCcWOsqxoLDx9R0lwmaX9sGPFeUc/s1600/rss.png)no-repeat;
background-position:center center;
}

ul#social .pinterest a   {
    background:#963336 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgk3Nhl-vTC_reMmP2D-YOciAkmSvoJU3oqHiVspZMcjI9Ck8CJnrKn8euqVPNku8sivJ3vOa5hq14W3lnpYwlYKkhRpV8dmLMxMim8kRs90i4tdYnKIMI5jRdOMAmkrH8fQVQKmAJ8TKA/s1600/Pinterest.png)no-repeat;
background-position:center center;
}
</style>

3 add script
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type='text/javascript'>
$(function () {
    $('#social a').stop().animate({
        'marginLeft': '-85px'
    }, 1000);

    $('#social > li').hover(
        function () {
            $('a', $(this)).stop().animate({
                'marginLeft': '-2px'
            }, 200);
        },
        function () {
            $('a', $(this)).stop().animate({
                'marginLeft': '-85px'
            }, 200);
        }
    );
});
</script>

4 add html
<ul id='social'>
 <li class='twitter'><a href='#' title='Twitter'></a></li>
 <li class='googleplus'><a href='#' title='Google Plus'></a></li>
 <li class='facebook'><a href='#' title='Facebook'></a></li>
 <li class='rss'><a href='#' title='Rss'></a></li>
 <li class='pinterest'><a href='#' title='Pinterest'></a></li>
</ul>

5- thay link của bạn vào href
6 -nguồn bài http://www.bloggerwidgetgenerators.com/

Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .