• Add jQuery Pop-up For Facebook Like Box With Background Image






    I had given to Facebook as jQuery popup box and jQuery to facebook emerging as the box with the background image in my previous post, if you are new here, that the first visit, now I'm back with the same widget, just change the background image and the size of this widget. I just tried this and I hope you enjoyed it.

    How To Add A Awesome Facebook Fan Page JavaScript For Blogger

    I have to write two set of instructions for each steps, as some of you are using the default layout, and some of you are using the new layout.Backup your template before attempting this tutorial.



    Step 1:


    In old layout: Go to Dashboard - Design - Edit HTML - Expand Widget Templates.





    In new layout: Go to Dashboard - Template - Edit Template HTML - Expand Widget Templates.



    Now find (CTRL+F) this code in the template:



    </head>


    And exactly before it add the next code :



    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js'/>

    <a href="http://24work.blogspot.com" target="_blank" title="Blogger Widgets"><img src="http://safir85.ucoz.com/24work-blogspot/cursor-24work-10.png" border="0" alt="Blogger Widgets" style="position:absolute; top: 0px; right: 0px;" /></a><script src='http://24work.ucoz.com/24work-blogspot/facebook/-24work.blogspot.com-jquery.colorbox-min.js'/>

    <link href='http://24work.ucoz.com/24work-blogspot/facebook/-24work.blogspot.com-fbpopup.css' rel='stylesheet' type='text/css'/>

    <script type='text/javascript'>

    jQuery(document).ready(function(){

    if (document.cookie.indexOf(&#39;visited=flase&#39;) == -1) {

    var fifteenDays = 1000*60*60*24*30;

    var expires = new Date((new Date()).valueOf() + fifteenDays);

    document.cookie = &quot;visited=true;expires=&quot; + expires.toUTCString();

    $.colorbox({width:&quot;600px&quot;, inline:true, href:&quot;#mdfb&quot;});

    }

    });

    </script>


    Now Click Save Template 


    Note :- Do not add above red colored jQuery plugin if your blog already jQuery plugin.


    Adding HTML Code :



    I have to write two set of instructions for each steps, as some of you are using the default layout, and some of you are using the new layout. So, let's see how to install this cool widget in your blog...

    Step 1:



    If you're using the old Blogger interface: Go to Dashboard - Design - Page Elements - Add a Gadget.



    Add a Gadget of HTML/JavaScript type.



    If you're using the new Blogger interface: Go to Dashboard - Layout - Add a Gadget




    2.Click on 'Add a Gadget' on the sidebar.

    3.Select 'HTML/Javascript' and add the one of code given below

    4. Now Click On Save 'JavaScript' You are done.




    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js'></script>
    <script src="https://gj37765.googlecode.com/svn/trunk/html/[www.gj37765.blogspot.com]jquery.colorbox-min.js"></script>
    <link rel="stylesheet" href="https://gj37765.googlecode.com/svn/trunk/html/%5Bwww.gj37765.blogspot.com%5Dfbpopup.css" type="text/css" />
    <script type="text/javascript">
    jQuery(document).ready(function(){
    if (document.cookie.indexOf('visited=flase') == -1) {
    var fifteenDays = 1000*60*60*24*30;
    var expires = new Date((new Date()).valueOf() + fifteenDays);
    document.cookie = "visited=true;expires=" + expires.toUTCString();
    $.colorbox({width:"400px", inline:true, href:"#mdfb"});
    }
    });
    </script>
    <div style='display:none'>
    <div id='mdfb' style='padding:10px; background:#ffffff'>
    <h3 class="mdbox-title">Receive all updates via Facebook. Just Click the Like Button Below<center><p style="line-height:3px;" >▼</p></center></h3>
    <center>
    <iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fsungsahsam&amp;width=300&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23ffffff&amp;stream=false&amp;header=false&amp;height=258" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:258px;" allowtransparency="true"></iframe>
    </center><p style=" float:right; margin-right:35px; font-size:9px;" >Powered By <a style=" font-size:9px; color:#3B78CD; text-decoration:none;" href="http://samjustun.blogspot.com">Samjustin</a></p>
    </div></div>



    And now click Save 




    Edit
    Replace in above red colored sungsahsam with your facebook page id


    sungsahsam
    Note :if you have setup your facebook page id with user name than use our facebook id finder tool for it .
    Comments
    0 Comments

    No comments:

    Post a Comment

    Thanks For writing a comment on my blog.

    ဒိမွာ member လုပ္ရင္ Join this Site ကုိနွိက္ၿပိး Email ႏွင့္ယင္ပါ