Image result for
To show facebook page like button is not a new thing in blogging. But for beginners, all seems new things. I have already provided Facebook Like Button widget for blogger. This time, static like widget, which means to be static with the sidebar. When hover it, it will come out. Untill you hover, you will see only "Facebook".

Go to your blog dashboard. In the "Theme" go to "Edit Html". Then search for the following code: </head>   

Just above the head tag paste the following code.

<script src=""></script>

Press Save

Now, Add gadget. Copy the following code and paste it: 

<style type="text/css">
#fbplikebox {
    display: block;
    padding: 0;
    z-index: 99999;
    position: fixed;
    background: #ffffff;

.fbplbadge {
    background-color: #3B5998;
    display: block;
    height: 150px;
    top: 50%;
    margin-top: -75px;
    position: absolute;
    left: -47px;
    width: 47px;
    background-image: url("");
    background-repeat: no-repeat;
    overflow: hidden;
    -webkit-border-top-left-radius: 8px;
    -webkit-border-bottom-left-radius: 8px;
    -moz-border-radius-topleft: 8px;
    -moz-border-radius-bottomleft: 8px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
<script type="text/javascript">
            var $dur = "medium"; // Duration of Animation
            w2b("#fbplikebox").css({right: -250, "top" : 100 })
            w2b("#fbplikebox").hover(function () {
                    right: 0
                }, $dur);
            }, function () {
                    right: -250
                }, $dur);
<div id="fbplikebox" style="display:none;">
    <div class="fbplbadge"></div> 
    <iframe src=";width=250&amp;height=250&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23C4C4C4&amp;stream=false&amp;header=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:250px;" allowtransparency="true"></iframe>

You can change the code given in red and blue colour. Put your Facebook page address in place of YOUR-FACEBOOK-PAGE

Save and enjoy.

Post a Comment

Powered by Blogger.