Menu Close Menu

0 comments
Jquery logo
The differences between the two programs are discussed on the internet in more than thousands articles but technology is full of confusing terms. A lot of fresh developer (also me) ask a question it’s possible the use JQuery only?, So the answer is simple “No”, first off - it's impossible to use jQuery only, all jQuery does is add a $ object to your global scope, with a bunch of methods in it. Even more manipulative libraries like prototype aren't an alternative to javascript, they're a tool belt to solve common problems.


What Is JavaScript And Why its value For Web?


The answer is simple for What is Javascript “ it’s is a programming language whereas jQuery is a framework to help make writing in javascript easier.
An HTML page is a static one without use of JavaScript. It’s could make a web page dynamic and also we can create special effects on web pages like rollover, roll out and many types of graphics that would leave an amazing impression. For example, for a flash content on a web page to be executed in a web browser the JavaScript must be enabled. It’s also necessary for validation contact forms and login forms etc.

The uses of JavaScript don’t stop there, It has also been used for server-side programming, network programming with frameworks such as Node.js, game development and the creation of desktop and mobile applications.  JavaScript was originally developed by Brendan Eich, while working for Netscape Communications Corporation.


What Is JQuery And Why it’s Important

jQuery is a cross-platform JavaScript library designed to simplify the client-side scripting of HTML. It’s free, open source software, licensed under the MIT License. Before JQuery, developers would create their own small frameworks (group of code) this would allow all the developers to work around all the bugs and give them more time to work on features, so the JavaScript frameworks were born.

On the other hand best way to know what is JQuery? it’s a fast and well performance (Group of JavaScript code) Library that simplifies WebPages and HTML documents traversing, Events, Animating and develop Ajax applications for a well performed web development. Used by over 80% of the 10,000 most visited websites. [Wiki]

The main advantages of jQuery :

1. Browser compatibility - doing something like .attr() is much easier than the native alternatives, and won't break across browsers.

2. Simplification of usually complicated operations - if you'd like to see a well written cross browser compatible version of an XHR method, take a look at the source for $.ajax - for this method alone it's almost worth the overhead of jQuery.

3. DOM selection - simple things like binding events & selecting DOM elements can be complicated and differ per-browser. Without a lot of knowledge, they can also be easily written poorly and slow down your page.

4. Access to future features - things like .index Of and .bind are native JavaScript, but not yet supported by many browsers. However, using the jQuery versions of these methods will allow you to support them cross browser.

 

I hope the above introduction enough to understand difference between two programming language, If I miss anything please let me know in the comment box below, I will try to improve my post according to your tips. Please feel free to post any query via comment box below, we will always well come you as a loyal reader. Happy Blogging..!!

Read Article →

0 comments

Jquery nuts and bolts

 

Web development using JavaScript frameworks has always proved befitting for developers who need to create rich, interactive and outstanding websites and web applications. One such JavaScript framework that has received appreciations from global web developers is jQuery Mobile. As a brand new framework specially designed for building mobile web apps, jQuery Mobile has been built on top of jQuery and is well equipped with a suite of excellent user interface elements that can be efficiently used in the mobile apps. If you're new to jQuery Mobile, then keep on reading this blog as I'll be making you familiar with all interesting aspects related to this awesome JavaScript framework.

 

A closer look at jQuery Mobile

Serving as an easiest means for building websites and applications, jQuery Mobile is a JavaScript framework that comes loaded with several touch-friendly UI widgets and a simple AJAX powered navigation system that supports animated page transitions. A huge number of developers contribute open source plug-ins for jQuery, and you can find a suitable plug-in for almost any application you might have. The wide range of plug-ins and the simple syntax make jQuery such a great library.

 

What all does jQuery Mobile do?

Quite unlike a variety of JavaScript frameworks available in the market, jQuery Mobile does a lot more for easing the process of developing user interfaces for mobile web apps. Here's a look at some of the best things that are done by jQuery:

 

  • It renders several new custom events that allow you to detect mobile and touch specific activities including tapping, swiping, tapping and holding, rotating the device and many more.
  • With a built-in markup-driven interface configuration, jQuery Mobile makes it convenient for you to create a basic app interface with the help of HTML. Plus, there's no need for you to write even a single piece of JavaScript code.
  • It utilizes progressive enhancement for ascertaining that the app interface works brilliantly on any web-enabled device.
  • It utilizes a series of themes that make it simple for you to customize the overall look of your application.

Unveiling the jQuery Mobile Page Structure

Well, a majority of pages in your jQuery Mobile web apps will include the following basic template:

 

<!DOCTYPE html>

<html>

  <head>

  <title>Page Title</title>

  <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.css" />

  <script src="http://code.jquery.com/jquery-1.4.3.min.js"></script>

  <script src="http://code.jquery.com/mobile/1.0a1/jquery.mobile-1.0a1.min.js"></script>

</head>

<body>

<div data-role="page">

  <div data-role="header">

    <h1>Page Title</h1>

  </div>

  <div data-role="content">

    <p>Page content goes here.</p>   

  </div>

  <div data-role="footer">

    <h4>Page Footer</h4>

  </div>

</div>

</body>

</html>

 

The three things that you need to include in your page for using jQuery Mobile are:

  • jQuery Mobile CSS file(jquery.mobile-1.0a1.min.css)
  • jQuery library(jquery-1.4.3.min.js)
  • jQuery Mobile library(jquery.mobile-1.0a1.min.js)

One of the best things about the jQuery Mobile Page structure is that you can easily create multiple pages within a single HTML page, resulting into a smoother user experience.

 

Ajax navigation adds to the excellence of jQuery Mobile

Ajax works as the right tool for making mobile user experience as smooth as possible. In-line with this fact, jQuery Mobile uses Ajax for allowing the linked pages to get loaded by default. In simple words, instead of the browser following a specific link for opening a new page, jQuery Mobile simply intercepts the link, requests the focused page via Ajax, followed by incorporating the new page content into the focused page's DOM. And that's not all, Ajax also allows jQuery Mobile developers to use URL hashes for ensuring that each page receives its individual and 100% unique bookmark able URL.

 

jQuery Mobile reflects a greater potential for mobile web app development

It is quite interesting to note that within 36 hours of the release of jQuery Mobile's beta version, an app was being built using the technology. John Resign, the creator of jQuery has displayed his confidence in jQuery Mobile and is keenly looking forward to making the JavaScript framework available for more and more mobile web app developers across the world. If you're an avid supporter of open web, then jQuery Mobile will serve as your best-fit launch. Backed by a rock-solid foundation for creation of impressive mobile apps, jQuery Mobile has opened doors to innovation in mobile web app design and development. With such a remarkable tool at their disposal, developers can deliver apps that look great and operate exceptionally.

 

Wrapping Up

The flexibility and easily theme able design of jQuery Mobile has made the framework stand out from the crowd of mobile web app development frameworks. So, get going and opt for utilizing the features of jQuery Mobile for delivering high-quality apps that run on varied platforms.

 

About Emily Heming

Emily Heming is an iPhone app developer and blogger and Currently working at Xicom Technologies. A Mobile apps development services provider which offers the reliable iPhone development services.

Read Article →

0 comments

Jquery Popup Widget How can you tell that a blog or a website is successful? Obviously, some would say that it depends on the traffic, but actually, traffic alone is not everything. Often the goal for a website is to generate sales, increase subscription rates, and develop loyal readership. Internet marketers are more familiar to this principle than any others are working online, and part of their success formula is the use of forceful and effective call to action, which is oftentimes contained in a pop-up box or lightbox.  Creating your own pop-ups for your website is not an easy task. You need to have knowledge of programming to be able to generate the codes that define your intended pop-up. Fortunately, for WordPress websites, there are many useful pop-up plugins available. Pop-ups actually are versatile, and can be used for many conversion related purposes.

 

So today i have write a tutorial on how to add popup like box with timer on blogger blog. You can set it for how long the widget/Plugin must display before disappearing automatically. It also includes a close option, we just trying to add some more features into code and update it as soon as possible. its a beta version please post your review below in the comment section. if you see any bug let us know we will try to fix that as soon as possible.

 

Live Preview

 

The plugin depends on jQuery, so be sure to include the library. Any recent jQuery version will do. We include plug-in file very similar to jQuery library file in the <head> of the document.

 

1. Go to your blogger dashboard>> Template>> Edit Template

2. and add the following jquery link before closing </head> or after opening <head> tag.

 

 

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.js"></script>

 

Okay, we've completed adding JQuery now but we'll add a couple of styles to our Facebook Popup box.

 

3. again find the following code in your template.

 

]]></b:skin>

 

4. and paste the below code before/above closing b:skin tag.

 

/*css for fbpopup*/

#fbpopupdata {
    background-color: none;
    position:absolute;
    z-index: 9999;
    display: none;
    padding: 0;
    border: 10px solid #446c95;
    -webkit-background-clip: padding-box;
/* for Safari */
    background-clip: padding-box;
/* for IE9+, Firefox 4+, Opera, Chrome */
    -webkit-border-radius: 8px 8px 8px 8px;
    -moz-border-radius: 8px 8px 8px 8px;
    border-radius: 8px 8px 8px 8px;
    width: 420px;
    height: 300;
    overflow: auto;
    left:50% !important;
    margin-left:-220px;
    margin-top:auto;
    box-shadow: inset 0 1px rgba(0,0,0,0.1);
}

#fbpopupdata span {
    font-size: 12px !important;
    font-weight: normal !important;
}

#fbpopupdata h1 {
    background: #446c95 url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhd6kExHL_oBVyV40K9Xi8gHQXuT5dwtNc7tEymqIcMTwea9EsFmJC704Cp8-o03RMTRn2Dv7_8qktVzxLQtvjGIZ3dMFly2GlbV0QHJnU0e6vJ9olt4UhkMG3zCtARvlAaDL9qU-WqDMc/s1600/aktechz-fb-lock.png) 98% 30% no-repeat;
    border: 0px solid #3b5998 !important;
    color: #FFF !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    padding: 5px !important;
    margin: 0 0 10px 0  !important;
    font-family: arial !important;
    overflow: hidden !important;
}

.fbpopupdatadata {
    font-size: 12px !important;
    font-weight: normal !important;
    height: 275px !important;
    padding: 1px !important;
    background: #fff !important;
    border-bottom: 0px solid #ddd;
    overflow: show !important;
}

#fbpopupdatafooter {
    text-align: right;
    font-size:12px;
    background: #F2F2F2 !important;
    height: auto !important;
    padding: 10px !important;
    overflow: hidden !important;
}

#fbpopupdatafooter p {
    text-align: right;
    font-size:12px;
}

#fbpopupdataclose {
    float: right;
    background-color: #446c95 !important;
    border: 0px solid #ccc !important;
    color: #fff !important;
    font-weight: normal !important;
    padding: 5px 35px !important;
    text-decoration: none !important;
    display: inline-block !important;
    font-family: arial !important;
    outline: none !important;
    font-size: 12px !important;
    margin: 0px !important;
    box-shadow: inset 0 1px rgba(0,0,0,0.1);
    -webkit-transition: background 0.3s;
    -moz-transition: background 0.3s;
    transition: background 0.3s;
}

 

5. and last and final step, just paste the below before closing your </body> tag.

 

<!-- Facebook POPUP LikeBox With Timer Code Start -->
<script type='text/javascript'>
jQuery(document).ready(function() {
function fbpopupdatafunc()  {
var sec = 60
var timer = setInterval(function() {
$("#fbpopupdatafooter span").text(sec--);
if (sec == 0) {
$("#fbpopupdata").fadeOut("slow");
clearInterval(timer);
}
},1000);
var fbpopupdatawindow = jQuery(window).height();
var fbpopupdatadiv = jQuery("#fbpopupdata").height();
var fbpopupdatatop = jQuery(window).scrollTop()+50;
jQuery("#fbpopupdata").css({"top":fbpopupdatatop});}
jQuery(window).fadeIn(fbpopupdatafunc).resize(fbpopupdatafunc)
//alert(jQuery.cookie('sreqshown'));
//var fbpopupdataww = jQuery(window).width();
//var fbpopupdatawww = jQuery("#fbpopupdata").width();
//var fbpopupdataleft = (fbpopupdataww-fbpopupdatawww)/2;
var fbpopupdataleft = 500;
//var fbpopupdatawindow = jQuery(window).height();
//var fbpopupdatadiv = jQuery("#fbpopupdata").height();
//var fbpopupdatatop = (jQuery(window).scrollTop()+fbpopupdatawindow-fbpopupdatadiv) / 2;
jQuery("#fbpopupdata").animate({opacity: "1", left: "0" , left:  fbpopupdataleft}, 0).show();
jQuery("#fbpopupdataclose").click(function() {
jQuery("#fbpopupdata").animate({opacity: "0", left: "-5000000"}, 1000).show();});});

</script>
<div id="fbpopupdata">
<h1>Join Us On Facebook <a style="font-size:12px; color: white; float:right; margin-right: 15px; text-align: inherit; text-decoration: none;" href="www.myblogger-tricks.com" rel="nofollow"
>Get Widget</a></h1>
<div class="fbpopupdatadata"><center><iframe src="http://facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2F/mybloggerstricks&amp;width=400&amp;colorscheme=light&amp;show_faces=true&amp;border_color=%23fff&amp;stream=false&amp;header=false&amp;height=250" scrolling="no" frameborder="0" style="border:none; overflow:show; width:400px; height:250px;" allowtransparency="true"></iframe></center></div><div id="fbpopupdatafooter">Please Wait <span>60</span> Seconds<br/><a href="wwww.myblogger-tricks.com" target="_blank" id="fbpopupdataclose" onclick="return false;">Close X</a></div></div>
<!-- Facebook POPUP LikeBox With Timer Code End –>

 

Note:- Please change highlighted mybloggerstricks in yellow with your own facebook username..


Okay we've done it! Hope you enjoyed the tutorial and was helpful. The above code can be modified and enhanced as per your requirements.

If the content on this website somehow helped you to learn something new, please let others know about it by sharing it on your twitter page or on your Facebook page with your friends.

Read Article →

0 comments

Accordion screen shot

A lot of Blogger users are having problem getting the correct accordion menu to show up your blog recipes. In this tutorial I am going to show you how to add a jQuery accordion menu in blogger blog. Most of the time it is possible to create very functional website navigations with just CSS, but this time we are going to need a little jQuery magic to accomplish the accordion functionality. Before that, lets first talk a bit about why you would want to add accordion menu?  Well some people think that it will help with the SEO. But we think that the main reason why you would want to use them is to offer a better user experience on your site.

 

This tutorial requires you to have fair understanding of HTML, CSS.

 

Features: V 1.0

  • Standard Expand/Collapse functionality.
  • Activate/Deactivate whenever a 'click' event occurs.
  • The Accordion plugin provides support for unlimited number of levels.
  • The plugin could easily be customized and used with any website.
  • It allows multiple instances of the accordion on the same page.

and in future we will try to add some design update, functionality and much more..

 

Live Preview

 

How to add it to blogger blog

 

  1. Blogger: Go to Template > Edit HTML.
  2. Locate the ]]></b:skin> tag end of the style sheet.
  3. Copy the code below and insert it right above the tag.

#accor-wrap{
    width: 350px;
    font-family:Verdana, Geneva, sans-serif;
    margin-left: auto;
    margin-right: auto;
    }
.accordionButton {   
    width: 325px;
    float: left;
    background: #fff url(https://dl.dropboxusercontent.com/u/223738947/Demos/Jquery%20Accordion%20Menu%20For%20Blogger/Images/bg-shade-light.png) repeat-x bottom left;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    border-bottom: solid 1px #ddd;
    padding: 3px 0px;
    cursor: pointer;
    padding: 5px 10px;
    text-shadow: #fff 0px 1px 0px;
    }

  .accordionButton  span {
    float:right;
    margin-right: 10px;
    color:#555;
    border: 1px dotted #555;
    display:inline-block;
    }
.accordionContent {   
    width: 325px;
    float: left;
    background: #444;
    font-size:12px;
    display: none;
    padding: 5px 10px;
    margin: 0 auto;
    }
.accordionContent ul {
    float: left;
    width:300px;
    margin:0 auto;
    padding:10px 10px;
}
.accordionContent li {
    list-style: none;
    list-style-image: none;
}
.accordionContent li a {
    background: #555 url(https://dl.dropboxusercontent.com/u/223738947/Demos/Jquery%20Accordion%20Menu%20For%20Blogger/Images/bg-shade-light.png) repeat-x 0 100%;
    display:block;
    font-family:Arial, sans-serif,Helvetica;
    font-size:12px;
    font-weight: bold;
    overflow:hidden;
    color:#555;
    border: none;
    text-decoration:none;
    position:relative;
    width:100%;
    line-height:20px;
    text-transform:capitalize;
    padding:5px 0 10px 5px;
    text-shadow:0px 1px px #fff;
        }
.accordionContent li a:hover{
    background: #b3b3b3 url(https://dl.dropboxusercontent.com/u/223738947/Demos/Jquery%20Accordion%20Menu%20For%20Blogger/Images/bg-shade-medium.png) repeat-x 0 100%;
    text-shadow:none;
    color: #fff;
    text-decoration:none;

}

 

  1. Locate the </head> tag in the middle of your template.
  2. Copy the code below and insert it right above the tag. 

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"> </script>
<script type="text/javascript" src="https://dl.dropboxusercontent.com/u/223738947/Demos/Jquery%20Accordion%20Menu%20For%20Blogger/JavaScript/Accordion.js"</script>

 

  1. Go to Layout.
  2. Click Add A Gadget.
  3. In Add A Gadget window, select HTML/Javascript .
  4. Copy the code below and paste it inside the content box.
  5. Save the gadget.
  6. Drag the gadget and reposition it where you want to show gadget.
  7. Click Save button (top right hand corner).

    <div id="accor-wrap">
<!-- Dropdown 1 -->      

<div class="accordionButton">Top Blogger widget 2014 <span>&#9660;</span></div>
        <div class="accordionContent">
        <ul>
        <li><a  href="#" >1. Floating Sharing Bar</a></li>
                    <li> <a  href="#">2. Facebook Poput Like Box</a></li>
                    </ul>
        </div>
<!-- End Dropdown 1 -->

<!-- Start Dropdown 2 -->       

<div class="accordionButton">Top SEO Articles <span>&#9660;</span></div>
        <div class="accordionContent">
        <ul>
        <li><a  href="#"> 1. Search Engines That Respect Privacy </a></li>
                    <li> <a  href="#"> 2. The SEO Tools That Help Boost Your Sites Traffic </a></li>
                    </ul>
      </div>

<!-- End Dropdown 2 -->

<!-- Dropdown 3 -->


        <div class="accordionButton">Top Best Blogger Template <span> &#9660; </span> </div>
        <div class="accordionContent">
             <ul>
        <li><a  href="#" >1. Blogger Beginner</a></li>
                    <li> <a  href="#">2. Premium Blogger Template</a></li>
                    <li> <a  href="#">3. Sky Blue Blogger Template</a></li>
                    </ul>
        </div>
     <!-- End Dropdown 3 -->  

<!-- Dropdown 4 -->

<div class="accordionButton">Top Blogger Resources & Tools <span>&#9660;</span></div>
        <div class="accordionContent">
             <ul>
        <li><a  href="#" >1. HTML Econder</a></li>
                    <li> <a  href="#">2. HTML Editor</a></li>
                    </ul>
        </div>

<!-- End Dropdown 4 -->
    </div>

 

Troubleshooting for setting up for your blog

In the above html code we have created 4 accordion menu.

 

  • Replace Highlighted in yellow with the name of the dorp down title.
  • Replace Highlighted in Green with your Link anchor text.
  • Replace hash (#) sign with your article (page) link.

So now we sure you want to add another dropdown, So then just add the following code after

<!--end dropdown 4 –->

<div class="accordionButton">here is the title For your new dropdown <span>&#9660;</span></div>
        <div class="accordionContent">
             <ul>
        <li><a  href="#" >here is your anchor text </a></li>
                    <li> <a  href="#">here is your anchor text </a></li>
                    </ul>
        </div>

 

We hope that you will find this article useful and it will help you create cool looking accordion menu. Have Any Questions? Leave them in comments below and don’t forget to share.

Read Article →

0 comments

Jquery Plugin Adding social widget can be important part of increasing your blog or website traffic, Social widget enable visitors to subscribe quickly on your official pages on social media networks. This tutorial have one really Amazing Sliding plugins, Sliding plugin bar sticky at the right side of your page that will slide out social share buttons when mouse hovers over. The Sliding Plugin is originally Created by Márta Dániel, we have just customized version of it. The plugin officially created as an social sharing bar but we are using as a social subscription widget, we are very thankful to developer for making it under MIT license and allow us to share this on our blog.

 

Follow the Steps below for achieving sliding bar cool effect.

 

Live Demo

 

How to implement this jQuery accordion style menu:

 

Include jQuery, Ui and sliding Pluing script:

Google hosts the library so you can link to it there. This can be done by putting the following code in the head of your document:

 

Here are the steps:

 

  1. Go to your blogger template
  2. Before editing back up your template.
  3. The look for the following data tag in your HTML.

</head>

 

and Paste the following code immediately before (above) it:

 

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script>

<script src="https://dl.dropboxusercontent.com/u/223738947/Demos/SlidingShare/JavaScript/slidingplugin.js"</script>

<link href="https://dl.dropboxusercontent.com/u/223738947/Demos/SlidingShare/style.css" rel="stylesheet" type="text/css" />

 

 

Note:- Please change the social links with your own social links by editing slidingplugin.js before processed next step…download slidingpluing.js in your hard drive and after making changes upload it on any free hosting server like Dropbox or Yourjavascript. For more detail please watch video tutorial below. ( how to edit your social links ).

 

Now last and final step calling social share bar div in you body section. just paste the below before closing your body tag.

 

<div id="socialside">
</div>

 

That's it. we have successfully done! If you are facing any trouble regarding this tutorial please feel free drop a comment below and also don’t forget to share this and share your valuable review with us.

 

 

after editing your links go to file click on save as and save your with .js extension for example slidingplugin.js and upload on any free hosting website.

Read Article →

0 comments
Navigation Tips Performs a smooth page scroll to an anchor on the same page using JQuery, it is very cool way to attract your readers and maker your web site navigation easy.Today in this tutorial we will share a awesome JQuery smooth scrolling back to top button, It appears on the right side bottom only when the user scrolls down the page and disappears as he scrolls up. A back to top button is crucial for a blog or site because visitors enjoy easy site navigation so this button will provide them with this ease. We have kept the installation process a one step process. Please see this button in action towards the bottom right corner of this blog.

The markup uses the Unicode entity for a Up Arrow Triangle (▲) right in it. If you have a UTF-8 charset that should be no big deal..

How to add it to blogger blog

First You need to add this JQuery and JavaScript Code Snippet in your blogger template head section before closing </head> tag.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
    // hide #back-top first
    $("#back-top").hide();
    // fade in #back-top
    $(function () {
        $(window).scroll(function () {
            if ($(this).scrollTop() > 100) {$('#back-top').fadeIn();} else {$('#back-top').fadeOut();}
        });
        // scroll body to 0px on click
        $('#back-top a').click(function (e) {
            e.preventDefault();
            $('body,html').animate({
                scrollTop: 0
            }, 800,function(){$("#back-bottom").show();});
            return false;
        });
        $("#back-bottom a").click(function(e){
            e.preventDefault();
            var currentElem = $(this);
            var scrollTopPos = $("div#topwrapper")[0].offsetHeight;
            $('body,html').animate({
                scrollTop: scrollTopPos
            }, 800,function(){$(currentElem).parent().hide();});
            return false;
        });
    });
});
</script>

The follow the next steps below…
  1. Login to your blogger dashboard.
  2. Go to your blogger Layout.
  3. Click Add A Gadget.
  4. In Add A Gadget window, select HTML/JavaScript.
  5. Copy the code below and paste it inside the content box. 

<style>
#back-top {
position:fixed;
bottom:0px;
right:0;
display:block;
background:#f2f2f2;
color:#446cb3;
opacity:.8;
filter:alpha(opacity=80);
width:80px;
height:80px;
z-index:99999;
}
#back-top:hover {
background-color:#446cb3;
text-decoration:none;
color:#fff;
opacity:1;
filter:alpha(opacity=100);
}
#back-top span {
position:relative;
display:block;
width:32px;
height:80px;
margin:0 auto;
}
#back-top span:before,#back-top span>.before { 
font-style:normal;
font-weight:400;
text-align:center;
position:absolute;
top:50%;
font-size:32px;
line-height:32px;
width:32px;
height:32px;
margin-top:-16px;
left:0;
content:"\25B2";
}
</style>
<p id="back-top"><a href="#top" class="" title="BackToTop"><span></span></a></p>

If you experience any issues, feel free to comment here. I'll love to hear feedback and try my best to fix bugs with the snippet. Stay connected for more spicy updates and don’t forget to share this tutorial with your friends.!! Enjoy!

Image Credit:- Cygnis Media
Read Article →

15 comments

Feed Logo GraphicEverybody knows the importance of RSS feeds. So its better to give the readers an option to subscribe to your blog feed by email. Another JQuery Widget with beautiful look, as before I have also share Facebook Popup and Twitter Follower Popup Widget for blogger user. But today I bring in this post another beautiful widget with JQuery light box. In this widget visitors can subscribe you blog’s daily updates via RSS FEED. So here is the complete instructions for how to install the email subscription widget.

 

 

 

 

 

Update:- 16-04-2015

Colorbox Plugin CSS (Created by Jackle) Code Added and some bug fixes.

Update:- 23-04-2015

1. Documentation Updated for editing Popup width and height.

2. Popup Auto Time out feature added (self closed after 10 second).

3. and some bug fixes according readers feedback.

 

if you see any bug in the code below please let us know in the comment box below or send us a note via our contact form.

 

Live Preview

 

How to install email popup subscription box

Before you edit any template it's better to keep a Template Backup.

 

1. Go to your Blogger Dashboard>>Template>>Edit Html

2. Find following code in your template.

 

</head>

3. and paste the following code before/above </head>

 

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script><script src='http://yourjavascript.com/69231961363/jquery-colorbox-min.js' type='text/javascript'/>
<script type='text/javascript'>
jQuery(document).ready(function(){
if (document.cookie.indexOf(&#39;visited=true&#39;) == -1) {
var setDays = 1000*60*60*24*7;
var expires = new Date((new Date()).valueOf() + setDays);
document.cookie = &quot;visited=true;expires=&quot; + expires.toUTCString();

//set timeout for closing the popup
setTimeout(function () { $.fn.colorbox.close(); }, 20000);

//color box width, height and popup id  
$.colorbox({width:&quot;autopx&quot;, height:&quot;autopx&quot;, inline:true, href:&quot;#email-popup&quot;});
}});</script>

 

Troubleshoot cookies and set timeout for popup box

1. *7 Setting this value will effect cookie refreshment. I have set the Subscription box to appear once to the visitor and Subscription box will appear again after 1 week. If you want to display after a 1 day then set 7 to 1.

2. Set the popup timeout highlighted in Green color, the default timeout is 20 second (20000  millisecond). For example, Setting up popup time out to 1 minute you need replace 20000 to 60000.

 

Note:- Showing twice will must annoy your readers, So Leave it By Default and follow the next step.

 

4. Now Search for </b:skin>.   ( Note:- Click the black arrow to expand the code. )

 

/* Colorbox Core Style: The following CSS is consistent between example themes and should not be altered. */#colorbox, #cboxOverlay, #cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}
#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}
#cboxMiddleLeft, #cboxBottomLeft {
    clear: left;
}
#cboxContent {
    position: relative;
}
#cboxLoadedContent {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
#cboxTitle {
    margin: 0;
}
#cboxLoadingOverlay, #cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
    cursor: pointer;
}
.cboxPhoto {
    float: left;
    margin: auto;
    border: 0;
    display: block;
    max-width: none;
    -ms-interpolation-mode: bicubic;
}
.cboxIframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}
#colorbox, #cboxContent, #cboxLoadedContent {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
} /* User Style: Change the following styles to modify the appearance of Colorbox. They are ordered and tabbed in a way that represents the nesting of the generated HTML. */#cboxOverlay {
    background: #000;
}
#colorbox {
    outline: 0;
}
#cboxContent {
    margin-top: 20px;
    background: #000;
}
.cboxIframe {
    background: #fff;
}
#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}
#cboxLoadedContent {
    border: 5px solid #e9e9e9;
    -webkit-border-radius:4px;    
    -moz-border-radius:4px;
    border-radius: 4px;
   
    background: #fff;
    box-shadow: 3px 3px 3px #fff;
}
#cboxTitle {
    position: absolute;
    top: -20px;
    left: 0;
    color: #ccc;
}
#cboxCurrent {
    position: absolute;
    top: -20px;
    right: 0px;
    color: #ccc;
}
#cboxLoadingGraphic {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU9qO5Vtty0gO4jrcJAkHcWPI-ul8fgJltZ6RZ8hYf0-4lv3MRWzO7J_gOueE40tdxQooAm2ZK9YpX8mw2KNxakvaTAKO7aG6PTGTCZAR96ToWcH-x3AtmuaZlcPUu08jeTEnPu8R4YocM/s32/loading.gif) no-repeat center center;
} /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {
    border: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    width: auto;
    background: none;
} /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {
    outline: none;
}
#cboxSlideshow {
    position: absolute;
    top: -20px;
    right: 90px;
    color: #fff;
}
#cboxPrevious {
    position: absolute;
    top: 50%;
    left: 5px;
    margin-top: -32px;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh37dVxp34n2_v8knzqSM3QmVXOU_zmAtrXBzD9Vu6i6a3BTBKgPVaVE_-vpL5lJ6-nJbyLJ_BHYM8TyczevhOYRzV9w4nz_fW0hFLQO6ldS-64QCXyBP8vdVatiVDVueyyKBPGdTNLuN5h/s1600/controls.png) no-repeat top left;
    width: 28px;
    height: 65px;
    text-indent: -9999px;
}
#cboxPrevious:hover {
    background-position: bottom left;
}
#cboxNext {
    position: absolute;
    top: 50%;
    right: 5px;
    margin-top: -32px;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh37dVxp34n2_v8knzqSM3QmVXOU_zmAtrXBzD9Vu6i6a3BTBKgPVaVE_-vpL5lJ6-nJbyLJ_BHYM8TyczevhOYRzV9w4nz_fW0hFLQO6ldS-64QCXyBP8vdVatiVDVueyyKBPGdTNLuN5h/s1600/controls.png) no-repeat top right;
    width: 28px;
    height: 65px;
    text-indent: -9999px;
}
#cboxNext:hover {
    background-position: bottom right;
}
#cboxClose {
    position: absolute;
    top: 5px;
    right: 5px;
    display: block;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh37dVxp34n2_v8knzqSM3QmVXOU_zmAtrXBzD9Vu6i6a3BTBKgPVaVE_-vpL5lJ6-nJbyLJ_BHYM8TyczevhOYRzV9w4nz_fW0hFLQO6ldS-64QCXyBP8vdVatiVDVueyyKBPGdTNLuN5h/s1600/controls.png) no-repeat top center;
    width: 38px;
    height: 19px;
    text-indent: -9999px;
}
#cboxClose:hover {
    background-position: bottom center;
}

#subscriptionwrap {
    width: 600px; height: 190px;
    background: #e9e9e9;
    padding: 15px;
    margin: 14px;
    border: 1px solid #ddd;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-shadow: 0 1px 0px #f9f9f9 inset,1px 1px 1px rgba(223,223,223,0.4);
    -moz-box-shadow: 0 1px 0px #f9f9f9 inset,1px 1px 1px rgba(223,223,223,0.4);
    box-shadow: 0 1px 0px #f9f9f9 inset,1px 1px 1px rgba(223,223,223,0.4);
}

.subscriptionbox h4 {
    font-size: 30px;
    font-family: 'Verdana', Arial;
    font-variant: small-caps;
    margin: 0 auto;
    text-align: center;
    line-height: 30px;
    color: #333;
    font-weight: 600;
    text-shadow: 1px 1px 5px #333;
    text-decoration: none !important;
}

.subscriptionbox p {
    font-family: geogia;
    font-style: italic;
    font-size: 26px;
    text-align: center;
    margin: 0px;
    line-height: 30px;
    margin-top: 25px;
    border-bottom: 1px solid #333;
    color: #454545;
    padding-bottom: 20px;
}

.emailbutton1 {
    background: #f7f8f9;
    background: -webkit-linear-gradient(top,#f7f8f9 0%,#e9e9e9 100%);
    background: -moz-linear-gradient(top,#f7f8f9 0%,#e9e9e9 100%);
    background: -o-linear-gradient(top,#f7f8f9 0%,#e9e9e9 100%);
    background: -ms-linear-gradient(top,#f7f8f9 0%,#e9e9e9 100%);
    background: linear-gradient(top,#f7f8f9 0%,#e9e9e9 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#f7f8f9",endColorstr="#e9e9e9",GradientType=0 );
    border: 1px solid #ddd;
    -webkit-border-top-right-radius: 4px;
    -moz-border-top-right-radius: 4px;
    border-top-right-radius: 4px;
    -webkit-border-bottom-right-radius: 4px;
    -moz-border-bottom-right-radius: 4px;
    border-bottom-right-radius: 4px;
    -webkit-box-shadow: 0 1px 0 #f9f9f9 inset,1px 1px 1px rgba(223,223,223,0.4);
    -moz-box-shadow: 0 1px 0 #f9f9f9 inset,1px 1px 1px rgba(223,223,223,0.4);
    box-shadow: 0 1px 0 #f9f9f9 inset,1px 1px 1px rgba(223,223,223,0.4);
    color: #888 !important;
    text-shadow: 0 1px 0 #fff;
    line-height: 1.5;
    top: 0px;
    margin: 10px 0 0 -15px;
    cursor: pointer;
    padding: 18px 15px 15px 15px !important;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none !important;
}

.emailbutton1:hover {
    background: #f1f1f1;
    background: -webkit-linear-gradient(top,#f1f1f1 0%,#e0e0e0 100%);
    background: -moz-linear-gradient(top,#f1f1f1 0%,#e0e0e0 100%);
    background: -o-linear-gradient(top,#f1f1f1 0%,#e0e0e0 100%);
    background: -ms-linear-gradient(top,#f1f1f1 0%,#e0e0e0 100%);
    background: linear-gradient(top,#f1f1f1 0%,#e0e0e0 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#f1f1f1",endColorstr="#e0e0e0",GradientType=0 );
    text-decoration: none !important;
}

.emailinput1 {

    width: 490px;height: 37px;    padding-right: 30px !important;
    float: left;
    margin: 10px 0 0 0px;
    padding: 8px 40px 8px 10px;
    border: 1px solid #d2d2d2;
    background: #fff;
    font-family: georgia;
    font-style: italic;
    font-size: 16px;
    color: #949494;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    text-decoration: none!important;
}

5. Save your template and you are done second last step! Visit your blog to see it working just perfectly? if everything is working fine then Follow the final step below.

 

6. Now finally find the following code.

 

</body>

7. and paste the following code before closing </body> tag.

 

<div style='display:none'>
<div id='email-popup' style='position:scroll; z-index:99999;'>
<div id='subscriptionwrap'>
<div class='subscriptionbox'>
<h4>Ready To Be Make <strong>Elegant Blog</strong></h4>
<p>Subscribe to My Blogger Tricks to enjoy Free Tricks</p>
<form action='http://feedburner.google.com/fb/a/mailverify' class='emailform1' method='post' onsubmit='window.open(&quot;http://feedburner.google.com/fb/a/mailverify?uri=mybloggertricks&quot;, &quot;popupwindow&quot;, &quot;scrollbars=yes,width=550,height=520&quot;);return true' target='popupwindow'>
<input name='uri' type='hidden' value='mybloggertricks'/>
<input name='loc' type='hidden' value='en_US'/>
<input class='emailinput1' name='email' onblur='if (this.value == &quot;&quot;) {this.value = &quot;Enter your email...&quot;;}' onfocus='if (this.value == &quot;Enter your email...&quot;) {this.value = &quot;&quot;}' type='text' value='Enter your email...'/>
<input class='emailbutton1' title='' type='submit' value='SignUp'/>
</form>
</div>
</div>
  </div>
  </div>

 

Troubleshoot Popup

Now you need to make these changes in the above CSS and HTML codes.

  • Edit the highlighted yellow text to anything you like. It will appear at the top of the input box.
  • Edit the highlighted code in green color for width and height adjustment as you wish for your current blog/website layout.
  • replace mybloggertricks with your Feedburner Email Feed link. You can get it by visiting your feedburner account then navigate to Publicize and then to Email Subscriptions.
  • Replace mybloggertricks with your feed title. It appear at the end of your feed link. In my case it is <input name='uri' type='hidden' value='mybloggertricks />

Save your template and you are all set!

 

Visit your blogs and see it popping up just fine! Remember that the popup will show only once in week. To see it again you will first need to delete your browser cookie and then refresh the page to see it appearing again. I just hope you would find this tutorial easy, Please let me know if you need further help.  Stay updated by subscribing our email news feed or join us on Facebook by pressing like button.

 

Image Credit:- FreeDigitalPhotos.net

Read Article →

5 comments

Twitter_follower_boxNow a days every blog owner thinks to increase his/her blog's traffic and the most popular way to increase blog's traffic is to Share your post on social media Sites like Facebook, Twitter, DiGG etc. So today i have come with Twitter Follower Box Widget for blog owner who run their blog on blogger. It works like and is closely based on Facebook fan/Like box algorithm. The widget designed for get more Twitter Followers. This box has also a close button at the top right corner. Visitor can close this widget by clicking on close button. Popup box widgets really annoy your visitors when they appear again and again, but they help you in developing your blog well when you use them properly. Twitter is a major source of traffic which can send your blog a good traffic flow when you have enough Followers on your Twitter page. To expand your Twitter network and to increase your Twitter Followers, I have brought a very stylish Onetime Twitter Follower Popup Widget for your blogger blog which will appear onetime only and thus it will increase your Twitter Followers dramatically without annoying your visitor. We are again Say Thanks to jacklmoore for providing a juqery light box.

Live Preview

 

How to add it to blogger

You can Install This Widget Easily in your Blog By Following These Simple Steps....
Before you edit any template it's better to keep a Backup.. So First Backup your Template.

1. Go to your Blogger Dashboard>>Template>>Edit Html

2. Find following code in your template.

</head>

 

3. and paste the following code before/above </head>

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script><script src='http://yourjavascript.com/69231961363/jquery-colorbox-min.js' type='text/javascript'/>
<script type='text/javascript'>
jQuery(document).ready(function(){
if (document.cookie.indexOf(&#39;visited=true&#39;) == -1) {
var setDays = 1000*60*60*24*7;
var expires = new Date((new Date()).valueOf() + setDays);
document.cookie = &quot;visited=true;expires=&quot; + expires.toUTCString();
$.colorbox({width:&quot;395px&quot;, height:&quot;435px&quot;, inline:true, href:&quot;#twitter-popup&quot;});
}});</script>

Note:- *7 Setting this value will effect cookie refreshment. I have set the Follower box to appear once to the visitor and Follower box will appear again after 1 week. If you want to display after a 1 day then set 7 to 1. if you set the value 1 then it Must  annoying your Blog regular readers. So Leave it By Default and follow the next step.

 

4. Now Search for </b:skin>.  Click the black arrow to expand the code.

/* Colorbox Core Style: The following CSS is consistent between example themes and should not be altered. */#colorbox, #cboxOverlay, #cboxWrapper {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 9999;
    overflow: hidden;
}

#cboxOverlay {
    position: fixed;
    width: 100%;
    height: 100%;
}

#cboxMiddleLeft, #cboxBottomLeft {
    clear: left;
}

#cboxContent {
    position: relative;
}

#cboxLoadedContent {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#cboxTitle {
    margin: 0;
}

#cboxLoadingOverlay, #cboxLoadingGraphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow {
    cursor: pointer;
}

.cboxPhoto {
    float: left;
    margin: auto;
    border: 0;
    display: block;
    max-width: none;
    -ms-interpolation-mode: bicubic;
}

.cboxIframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

#colorbox, #cboxContent, #cboxLoadedContent {
    box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
} /* User Style: Change the following styles to modify the appearance of Colorbox. They are ordered and tabbed in a way that represents the nesting of the generated HTML. */#cboxOverlay {
    background: #000;
}

#colorbox {
    outline: 0;
}

#cboxContent {
    margin-top: 20px;
    background: #000;
}

.cboxIframe {
    background: #fff;
}

#cboxError {
    padding: 50px;
    border: 1px solid #ccc;
}

#cboxLoadedContent {
    border: 5px solid #000;
    background: #fff;
    box-shadow: 3px 3px 3px #fff;
}

#cboxTitle {
    position: absolute;
    top: -20px;
    left: 0;
    color: #ccc;
}

#cboxCurrent {
    position: absolute;
    top: -20px;
    right: 0px;
    color: #ccc;
}

#cboxLoadingGraphic {
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU9qO5Vtty0gO4jrcJAkHcWPI-ul8fgJltZ6RZ8hYf0-4lv3MRWzO7J_gOueE40tdxQooAm2ZK9YpX8mw2KNxakvaTAKO7aG6PTGTCZAR96ToWcH-x3AtmuaZlcPUu08jeTEnPu8R4YocM/s32/loading.gif) no-repeat center center;
} /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */#cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {
    border: 0;
    padding: 0;
    margin: 0;
    overflow: visible;
    width: auto;
    background: none;
} /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */#cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {
    outline: none;
}

#cboxSlideshow {
    position: absolute;
    top: -20px;
    right: 90px;
    color: #fff;
}

#cboxPrevious {
    position: absolute;
    top: 50%;
    left: 5px;
    margin-top: -32px;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh37dVxp34n2_v8knzqSM3QmVXOU_zmAtrXBzD9Vu6i6a3BTBKgPVaVE_-vpL5lJ6-nJbyLJ_BHYM8TyczevhOYRzV9w4nz_fW0hFLQO6ldS-64QCXyBP8vdVatiVDVueyyKBPGdTNLuN5h/s1600/controls.png) no-repeat top left;
    width: 28px;
    height: 65px;
    text-indent: -9999px;
}

#cboxPrevious:hover {
    background-position: bottom left;
}

#cboxNext {
    position: absolute;
    top: 50%;
    right: 5px;
    margin-top: -32px;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh37dVxp34n2_v8knzqSM3QmVXOU_zmAtrXBzD9Vu6i6a3BTBKgPVaVE_-vpL5lJ6-nJbyLJ_BHYM8TyczevhOYRzV9w4nz_fW0hFLQO6ldS-64QCXyBP8vdVatiVDVueyyKBPGdTNLuN5h/s1600/controls.png) no-repeat top right;
    width: 28px;
    height: 65px;
    text-indent: -9999px;
}

#cboxNext:hover {
    background-position: bottom right;
}

#cboxClose {
    position: absolute;
    top: 5px;
    right: 5px;
    display: block;
    background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh37dVxp34n2_v8knzqSM3QmVXOU_zmAtrXBzD9Vu6i6a3BTBKgPVaVE_-vpL5lJ6-nJbyLJ_BHYM8TyczevhOYRzV9w4nz_fW0hFLQO6ldS-64QCXyBP8vdVatiVDVueyyKBPGdTNLuN5h/s1600/controls.png) no-repeat top center;
    width: 38px;
    height: 19px;
    text-indent: -9999px;
}

#cboxClose:hover {
    background-position: bottom center;
}

 

5. Save your template and you are done second last step! Visit your blog to see it working just perfectly? if everything is working fine then Follow the final step below.

6. Now finally find the following code.

</body>

 

7. and paste the following code before closing </body> tag.

<div style='display:none'>
<div id='twitter-popup' style='background:#fff;position:scroll;z-index:99999;'>
  <div style='text-align:center;'> <h3 style='background: #000; color: #fff; margin-bottom: 20px; font-family: Verdana; Font-size: 18px; font-weight: bold; padding: 10px;'>Receive All Updates Via Twitter</h3>
<div id='twitter-box'/>
<script>
var tw_user = &#39;mybloggertriks&#39;;
var tw_width = 342;
var tw_height = 315;
var no_face = 18;
(function() {
var tw_box = document.createElement(&#39;script&#39;); tw_box.type = &#39;text/javascript&#39;; tw_box.async = true;
tw_box.src = &#39;//50.63.179.86/twitter/tw.js&#39;;
(document.getElementsByTagName(&#39;head&#39;)[0] || document.getElementsByTagName(&#39;body&#39;)[0]).appendChild(tw_box);
})();
</script>
  </div>
  </div>
    </div>

 

8. Replace mybloggertriks with your Twitter username.

9. save your template and you are all done. .!!

Visit your blogs and see it popping up just fine! Remember that the popup will show only once. To see it again you will first need to delete your browser cookie and then refresh the page to see it appearing again. I just hope you would find this tutorial easy and yet exciting. Please let me know if you need any help. I just hope you can make your strong Twitter Followers growth. Wish you success and peace buddies. Stay updated by subscribing our email news feed or like our facebook page.

Read Article →

45 comments

facebook-popup-likebox This is my first tutorial on popup widget using Jquery  For The Blog And My Blogging Carrier Too.. First Of All Let Me say Thank to jacklmoore for provding A juqery light box. The popup Like box is not designed for make you blog look like professionals, The widget designed for get more Facebook like. This box has also a close botton at the top right corner. Visitor can close this widget by clicking on close button. Popup box widgets really annoy your visitors when they appear again and again, but they help you in developing your blog well when you use them properly. Facebook is a major source of traffic which can send your blog a good traffic flow when you have enough fans on your Facebook page. To expand your Facebook network and to increase your Facebook page's fans, I have brought a very stylish Onetime Facebook Like Popup Widget for your blogger blog which will appear onetime only and thus it will increase your Facebook fans dramatically without annoying your visitor. Facebook popup widget save a cookie in your visitor’s browser. when reader visit your blog first time Facebook like box is appear to your reader and when visitor navigate to another page or visit back later like box never appear again if readers doesn’t there browser cookies.

 

Live Preview

 

Add It To Blogger

You can Install This Widget Easily in your Blog By Following These Simple Steps....
Before you edit any template it's better to keep a Backup..So First Backup your Template.

 

1. Go to your Blogger Dashboard>>Template>>Edit Html

2. Find following code in your template.

 

</head>

3. and paste the following code before/above </head>

<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js'></script><script src='http://yourjavascript.com/69231961363/jquery-colorbox-min.js' type='text/javascript'/>
<script type='text/javascript'>
jQuery(document).ready(function(){
if (document.cookie.indexOf(&#39;visited=true&#39;) == -1) {
var setDays = 1000*60*60*24*7;
var expires = new Date((new Date()).valueOf() + setDays);
document.cookie = &quot;visited=true;expires=&quot; + expires.toUTCString();
$.colorbox({width:&quot;400px&quot;, height:&quot;430px&quot;, inline:true, href:&quot;#facebook-popup&quot;});
}});</script>

 

  • *7 Setting this value will effect cookie refreshment. I have set the likebox to appear once to the visitor and likebox will appear again after 1 week. If you want to display likebox to your visitors after a 1 day then set 7 to 1. if you set the value to 1 then it can annoying your regular readers.

4. Now Search for </b:skin>.  Click the black arrow to expand the code.

 

Blogger Compressed Stylesheet

5.  and paste following css code before above </b:skin>

/* Colorbox Core Style: The following CSS is consistent between example themes and should not be altered. */ #colorbox, #cboxOverlay, #cboxWrapper { position: absolute; top: 0; left: 0; z-index: 9999; overflow: hidden; } #cboxOverlay { position: fixed; width: 100%; height: 100%; } #cboxMiddleLeft, #cboxBottomLeft { clear: left; } #cboxContent { position: relative; } #cboxLoadedContent { overflow: auto; -webkit-overflow-scrolling: touch; } #cboxTitle { margin: 0; } #cboxLoadingOverlay, #cboxLoadingGraphic { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow { cursor: pointer; } .cboxPhoto { float: left; margin: auto; border: 0; display: block; max-width: none; -ms-interpolation-mode: bicubic; } .cboxIframe { width: 100%; height: 100%; display: block; border: 0; } #colorbox, #cboxContent, #cboxLoadedContent { box-sizing: content-box; -moz-box-sizing: content-box; -webkit-box-sizing: content-box; } /* User Style: Change the following styles to modify the appearance of Colorbox. They are ordered and tabbed in a way that represents the nesting of the generated HTML. */ #cboxOverlay { background: #000; } #colorbox { outline: 0; } #cboxContent { margin-top: 20px; background: #000; } .cboxIframe { background: #fff; } #cboxError { padding: 50px; border: 1px solid #ccc; } #cboxLoadedContent { border: 5px solid #123D60; background: #fff; box-shadow: 3px 3px 3px #fff; } #cboxTitle { position: absolute; top: -20px; left: 0; color: #ccc; } #cboxCurrent { position: absolute; top: -20px; right: 0px; color: #ccc; } #cboxLoadingGraphic { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiU9qO5Vtty0gO4jrcJAkHcWPI-ul8fgJltZ6RZ8hYf0-4lv3MRWzO7J_gOueE40tdxQooAm2ZK9YpX8mw2KNxakvaTAKO7aG6PTGTCZAR96ToWcH-x3AtmuaZlcPUu08jeTEnPu8R4YocM/s32/loading.gif) no-repeat center center; } /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */ #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose { border: 0; padding: 0; margin: 0; overflow: visible; width: auto; background: none; } /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */ #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active { outline: none; } #cboxSlideshow { position: absolute; top: -20px; right: 90px; color: #fff; } #cboxPrevious { position: absolute; top: 50%; left: 5px; margin-top: -32px; background: url(https://sites.google.com/site/techprevue/home/controls.png) no-repeat top left; width: 28px; height: 65px; text-indent: -9999px; } #cboxPrevious:hover { background-position: bottom left; } #cboxNext { position: absolute; top: 50%; right: 5px; margin-top: -32px; background: url(https://sites.google.com/site/techprevue/home/controls.png) no-repeat top right; width: 28px; height: 65px; text-indent: -9999px; } #cboxNext:hover { background-position: bottom right; } #cboxClose { position: absolute; top: 5px; right: 5px; display: block; background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5JRnr9bVssLcEAVyglaJ9139M_wjyq1EE9nqK7NCHO0BUyHBhPl3VQ0tQEImE9MPvV6C06lPCCLMWq9rjNlPok6PwAVp-QNIvXV8QnaO0ZPYJQcTBIF-z2ILfRtlYJsyLbXQquKpLs9qA/s130/controls.png) no-repeat top center; width: 38px; height: 19px; text-indent: -9999px; } #cboxClose:hover { background-position: bottom center; }

 

6. Save your template and you are done second last step! Visit your blog to see it working just perfectly. 

7. Now finally find following code.

 

</body>

 

8. and paste the following code before closing </body> tag.

 

<div style='display:none'>
<div id='facebook-popup' style='background:#fff;position:scroll;z-index:99999;'>
<div style='text-align:center;padding-top:15px'> <h3 style='font-family: &apos;Source Sans Pro&apos;, Sans Serif; Font-size: 18px; font-weight: 300px; '>Receive All Free Updates Via Facebook.</h3>
<iframe allowtransparency='true' frameborder='0' scrolling='no' src='//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fmybloggerstricks&amp;width=342&amp;height=300&amp;show_faces=true&amp;colorscheme=light&amp;stream=false&amp;show_border=false&amp;header=false&amp;appId=' style='border:none; overflow:hidden; width:342px; height:300px;'/>
  </div>
  </div>
    </div>

 

  • Replace mybloggerstricks with your facebook fan page username.

save your template and you are all done. .!!

Visit your blogs and see it popping up just fine! Remember that the popup will show only once. To see it again you will first need to delete your browser cookie and then refresh the page to see it appearing again.

I just hope you would find this tutorial easy and yet exciting. Please let me know if you need any help. I just hope you can make your strong facebook fan growth. Wish you success and peace buddies. Stay updated by subscribing our email news feed or like our facebook page.

Read Article →

3 comments

Lazy-load-Plugin-Preview There are also a couple of issues about server requests which makes our blog load lazily. Your site’s load time may hurt you visitors however, to decrease server requests in your Blogger blog we use some plugins or javascript. But before I began to show what plugins can help our blog to load faster.  When visitors first land on your blog there may be a number of images which need to be processed. This could take just a couple seconds or even 8-10 extra seconds for the request to finish. Waiting around for that long can get tiresome and you’ll lose people’s interest rather quickly. I have noticed the longest waiting times for blog posts often contain image galleries. These galleries may hold website design showcases, or any page/article with lots of images. If your readers have speedy Internet access this probably won’t become much of a burden. But is the risky burden even worthwhile? I feel these instances are great examples for when lazy loading could honestly benefit the readers. All images on the page will be held with placeholders until the user scrolls down further and hits each image in succession. There are often people who complain about this feature but I don’t see any problems. Personally I’ve never been annoyed by the effect and it actually seems like a wise method for reducing server loads. If you want see lazy loading effect more than 1 you need clear your browser cache and shift-reload to test again on demo page.

 

Live Preview

 

Add Load Lazy Plugin To Your Blogger Blog

Note:- Practically everyone has JavaScript enabled. However there are cases when you want to show the real images even if request come from client which does not support JavaScript. Google crawlers are one good candidate. Google crawlers do not execute JavaScript but also seem to ignore noscript content. To degrade gracefully when JavaScript is not enabled you can include the real image tag inside <noscript> block. More Documentation This is only for advance user.(Not A Beginner)

 

It improves your website’s performance by loading your website images lazily. This includes:
1. Post images
2. Post Thumbnails
3. Gravatar images and
4. iframe content
These images will loaded only when your visitors scroll closer to them.

 

Plugin has been tested with Safari 5.1, Safari 6, Chrome 20, Firefox 12 on OSX and Chrome 20, IE 8 and IE 9 on Windows and Safari 5.1 on iOS 5 both iPhone and iPad.

 

1. Go to your Blogger Dashboard>> Template>> Edit Html

2. and find the following code

</head>

3. paste following code before/above “</head>”

 

<script type='text/javascript'>
//<![CDATA[

/*
* Lazy Load - jQuery plugin for lazy loading images
*
* Copyright (c) 2007-2012 Mika Tuupola
*
* Licensed under the MIT license:
*   http://www.opensource.org/licenses/mit-license.php
*
* Project home:
*   http://www.appelsiini.net/projects/lazyload
*
* Version:  1.8.3
*
*/
(function($, window, document, undefined) {
    var $window = $(window);

    $.fn.lazyload = function(options) {
        var elements = this;
        var $container;
        var settings = {
            threshold       : 0,
            failure_limit   : 0,
            event           : "scroll",
            effect          : "show",
            container       : window,
            data_attribute  : "original",
            skip_invisible  : true,
            appear          : null,
            load            : null
        };

        function update() {
            var counter = 0;
            elements.each(function() {
                var $this = $(this);
                if (settings.skip_invisible && !$this.is(":visible")) {
                    return;
                }
                if ($.abovethetop(this, settings) ||
                    $.leftofbegin(this, settings)) {
                        /* Nothing. */
                } else if (!$.belowthefold(this, settings) &&
                    !$.rightoffold(this, settings)) {
                        $this.trigger("appear");
                        /* if we found an image we'll load, reset the counter */
                        counter = 0;
                } else {
                    if (++counter > settings.failure_limit) {
                        return false;
                    }
                }
            });

        }

        if(options) {
            /* Maintain BC for a couple of versions. */
            if (undefined !== options.failurelimit) {
                options.failure_limit = options.failurelimit;
                delete options.failurelimit;
            }
            if (undefined !== options.effectspeed) {
                options.effect_speed = options.effectspeed;
                delete options.effectspeed;
            }

            $.extend(settings, options);
        }

        /* Cache container as jQuery as object. */
        $container = (settings.container === undefined ||
                      settings.container === window) ? $window : $(settings.container);

        /* Fire one scroll event per scroll. Not one scroll event per image. */
        if (0 === settings.event.indexOf("scroll")) {
            $container.bind(settings.event, function(event) {
                return update();
            });
        }

        this.each(function() {
            var self = this;
            var $self = $(self);

            self.loaded = false;

            /* When appear is triggered load original image. */
            $self.one("appear", function() {
                if (!this.loaded) {
                    if (settings.appear) {
                        var elements_left = elements.length;
                        settings.appear.call(self, elements_left, settings);
                    }
                    $("<img />")
                        .bind("load", function() {
                            $self
                                .hide()
                                .attr("src", $self.data(settings.data_attribute))
                                [settings.effect](settings.effect_speed);
                            self.loaded = true;

                            /* Remove image from array so it is not looped next time. */
                            var temp = $.grep(elements, function(element) {
                                return !element.loaded;
                            });
                            elements = $(temp);

                            if (settings.load) {
                                var elements_left = elements.length;
                                settings.load.call(self, elements_left, settings);
                            }
                        })
                        .attr("src", $self.data(settings.data_attribute));
                }
            });

            /* When wanted event is triggered load original image */
            /* by triggering appear.                              */
            if (0 !== settings.event.indexOf("scroll")) {
                $self.bind(settings.event, function(event) {
                    if (!self.loaded) {
                        $self.trigger("appear");
                    }
                });
            }
        });

        /* Check if something appears when window is resized. */
        $window.bind("resize", function(event) {
            update();
        });
        /* With IOS5 force loading images when navigating with back button. */
        /* Non optimal workaround. */
        if ((/iphone|ipod|ipad.*os 5/gi).test(navigator.appVersion)) {
            $window.bind("pageshow", function(event) {
                if (event.originalEvent.persisted) {
                    elements.each(function() {
                        $(this).trigger("appear");
                    });
                }
            });
        }

        /* Force initial check if images should appear. */
        $(window).load(function() {
            update();
        });
        return this;
    };

    /* Convenience methods in jQuery namespace.           */
    /* Use as  $.belowthefold(element, {threshold : 100, container : window}) */

    $.belowthefold = function(element, settings) {
        var fold;
        if (settings.container === undefined || settings.container === window) {
            fold = $window.height() + $window.scrollTop();
        } else {
            fold = $(settings.container).offset().top + $(settings.container).height();
        }

        return fold <= $(element).offset().top - settings.threshold;
    };
    $.rightoffold = function(element, settings) {
        var fold;

        if (settings.container === undefined || settings.container === window) {
            fold = $window.width() + $window.scrollLeft();
        } else {
            fold = $(settings.container).offset().left + $(settings.container).width();
        }

        return fold <= $(element).offset().left - settings.threshold;
    };
    $.abovethetop = function(element, settings) {
        var fold;
        if (settings.container === undefined || settings.container === window) {
            fold = $window.scrollTop();
        } else {
            fold = $(settings.container).offset().top;
        }

        return fold >= $(element).offset().top + settings.threshold  + $(element).height();
    };
    $.leftofbegin = function(element, settings) {
        var fold;
        if (settings.container === undefined || settings.container === window) {
            fold = $window.scrollLeft();
        } else {
            fold = $(settings.container).offset().left;
        }

        return fold >= $(element).offset().left + settings.threshold + $(element).width();
    };

    $.inviewport = function(element, settings) {
         return !$.rightoffold(element, settings) && !$.leftofbegin(element, settings) &&
                !$.belowthefold(element, settings) && !$.abovethetop(element, settings);
     };

    /* Custom selectors for your convenience.   */
    /* Use as $("img:below-the-fold").something() or */
    /* $("img").filter(":below-the-fold").something() which is faster */

    $.extend($.expr[':'], {
        "below-the-fold" : function(a) { return $.belowthefold(a, {threshold : 0}); },
        "above-the-top"  : function(a) { return !$.belowthefold(a, {threshold : 0}); },
        "right-of-screen": function(a) { return $.rightoffold(a, {threshold : 0}); },
        "left-of-screen" : function(a) { return !$.rightoffold(a, {threshold : 0}); },
        "in-viewport"    : function(a) { return $.inviewport(a, {threshold : 0}); },
        /* Maintain BC for couple of versions. */
        "above-the-fold" : function(a) { return !$.belowthefold(a, {threshold : 0}); },
        "right-of-fold"  : function(a) { return $.rightoffold(a, {threshold : 0}); },
        "left-of-fold"   : function(a) { return !$.rightoffold(a, {threshold : 0}); }
    });

//]]>
</script>

<script charset='utf-8' type='text/javascript'>
$(function() {

   $(&quot;img&quot;).lazyload({placeholder : &quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgrhqBUG6bpD13kZJVFktPi6acNlcJsPO_JdYU4Po8EFfkLxHATvMRR5ka4-rSR2P2TC-SdWYqHhucjMn4gFoOTf9tQ5-tDdodaQRNMAMFD41gHlp_pfQ8irlw-3dn_ABTR_ANQIpp-83k/s1600/grey.gif&quot;,threshold : 200});

});
</script>

 

Credit

A Plugin Created by Mika Tuupola. We are thank full to mika for this great effort. This plugin very useful for Image Gallery and also for your portfolio websites.

 

Attention

The number of internet users are turning into publishers at a fastest rate, therefore you must be careful when applying a tutorial to your blog and extra careful when the tutorial talks of Jquery and SEO. I am observing baseless SEO tips coming from new bloggers that causes more harm to blogs at long term then a short term relief. Almost every new blogger has started sharing his own ideas of SEO and writing codes. This is surely encouraging but on the other side incorrect knowledge has caused several blogs to be hit by Google penalties such as Panda and Penguin.

 

Need A More Help

Please let me know if you want any help here. I hope this technique would further help developers to create more interesting blogger templates and contribute further to the blogosphere community. I would love to hear your feedback on this. Please let us know of your precious views so that we could improve it further if needed. Thanks for reading our post. and don’t forget to subscribe our blog by using email notification, Facebook page or by following our twitter page. Thanks for reading our post.

Read Article →