Showing posts with label JSON Feeds. Show all posts
Showing posts with label JSON Feeds. Show all posts

Headlines News Widget For Blogger Blogs With Tooltips

Headlines News Widget is an awesome, super lightweight plugin for Blogger blogs, which shows headlines of your recent posts as a scrolling text, floating from left to right. It's a horizontal auto scrolling recent posts widget for blogger that is responsive and automatic. It's built using Blogger JSON Feeds API and jQuery News Ticker plugin.

headlines news widget for blogger with tooltips Scrolling headline news widget surely makes your introductory texts standout and noticeable as soon as a visitor lands on your blog. It's the best way to draw visitors attraction towards your featured content.



What is a Headlines News Widget For Blogger?

Headlines News widget is basically a news ticker plugin which shows latest headlines of your blogspot blog as a horizontal scrolling text. It's the first news ticker of its kind for blogger blogs that does not only display your title links like ordinary tickers found across the web but also shows post info such as:

  • Author Name
  • Author Avatar
  • Comments Link
  • Comments Count
  • Published Date
  • Featured Thumbnail
  • Post description/summary snippet

[Desktop View]

headlines news widget for blogspot with tooltips

You can choose to display recent posts by label by specifying a particular category or you can simply choose to show latest posts. It can easily be customized to change its background colors and fonts. Headline news widget is mobile responsive and fits perfectly to different screen sizes.

[Mobile View]

news headlines widget - mobile responsive

We have already released its simplest version but today we will add some more features to it like CSS3 tooltips to display description and featured image. To add a simple news gadget for blogger without tooltips then please check the following tutorial:

If in case you want a simple news widget to display text, custom html or even RSS/Atom feed then try our jQuery Announcement widget, where you can display headline news in vertical scroll.

Is Headlines News Ticker Standards-Compliant?

Headlines News ticker widget uses CSS and jQuery to create the scrolling text animation. It does not uses the <marquee> tag. We are using standards-compliant jQuery script and CSS3 to make the text scroll across the screen. The text animation is controlled used navigation such as play/pause and Next/Previous buttons, which makes it really easy for website visitors to navigate between scrolling headlines. 

headlines news ticker widget for blogger

The marquee tag is a non-standard HTML element which causes text to scroll up, down, left or right automatically. This feature is obsolete now and its use is discouraged by W3C.

Features of Headlines News Widget

Headlines News Ticker is an advanced widget equipped with these features:

  • Author Avatar
  • Displays latest posts dynamically
  • Displays recent posts from a specific category/label
  • Tooltips support
  • Shows Post Description/Summary
  • Shows Featured Thumbnail Image
  • Scrolling text with two animations: reveal & fade
  • Clickable Comments Count
  • Custom Date Format
  • Title Length is adjustable
  • Fully Customizable - Multi Colors!
  • Responsive and mobile friendly
  • Controls Navigation. Play/Pause, Next/Previous
  • Support all browsers: Firefox, Chrome, IE, Safari etc.
Headlines News Widget Specs
Created Dec 10, 2016
Last Update Jan 23, 2017
Compatible Browsers IE9, IE10, IE11, Firefox, Safari, Opera, Chrome, Edge
Technology Used JSON, CSS3, HTML4, jQuery, JavaScript
Layout Mobile Responsive
Platform Support Google Blogger 1.0
Text Direction LTR

How To add Headlines News Widget In Blogger?

Follow these easy steps:

  1. Go To Blogger > Template
  2. Backup your template
  3. Click "Edit HTML"
  4. Just below <head> tag paste the following JS and CSS source links:
           

    <link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/>
    <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>

  5. Next search ]]></b:skin> and just above it paste the following code:
           

    /*--------------Headlines News Widget By MyBloggerTricks.com----------*/

    .ticker-wrapper.has-js{margin:20px 0;padding:0 20px;width:780px;height:32px;display:block;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;background-color:#f8f0db;font-size:.75em}
    .ticker{width:710px;height:23px;display:block;position:relative;overflow:hidden;background-color:#f8f0db}
    .ticker-title{padding-top:9px;color:#900;font-weight:700;background-color:#f8f0db;text-transform:uppercase}
    .ticker-content{margin:0;padding-top:9px;position:absolute;color:#1F527B;font-weight:700;background-color:#f8f0db;overflow:hidden;white-space:nowrap;line-height:1.2em}
    .ticker-content a{text-decoration:none;color:#1F527B}
    .ticker-content a:hover{text-decoration:underline;color:#0D3059}
    .ticker-swipe{padding-top:9px;position:absolute;top:0;background-color:#f8f0db;display:block;width:800px;height:23px}
    .ticker-swipe span{margin-left:1px;background-color:#f8f0db;border-bottom:1px solid #1F527B;height:12px;width:7px;display:block}
    .ticker-controls{padding:8px 0 0;list-style-type:none;float:left}
    .ticker-controls li{padding:0;margin-left:5px;float:left;cursor:pointer;height:16px;width:16px;display:block}
    .ticker-controls li.jnt-play-pause{background-image:url(../images/controls.png);background-position:32px 16px}
    .ticker-controls li.jnt-play-pause.over{background-position:32px 32px}
    .ticker-controls li.jnt-play-pause.down{background-position:32px 0}
    .ticker-controls li.jnt-play-pause.paused{background-image:url(../images/controls.png);background-position:48px 16px}
    .ticker-controls li.jnt-play-pause.paused.over{background-position:48px 32px}
    .ticker-controls li.jnt-play-pause.paused.down{background-position:48px 0}
    .ticker-controls li.jnt-prev{background-image:url(../images/controls.png);background-position:0 16px}
    .ticker-controls li.jnt-prev.over{background-position:0 32px}
    .ticker-controls li.jnt-prev.down{background-position:0 0}
    .ticker-controls li.jnt-next{background-image:url(../images/controls.png);background-position:16px 16px}
    .ticker-controls li.jnt-next.over{background-position:16px 32px}
    .ticker-controls li.jnt-next.down{background-position:16px 0}
    .js-hidden{display:none}
    .no-js-news{padding:10px 0 0 45px;color:#F8F0DB}
    .left .ticker-controls,.left .ticker-content,.left .ticker-title,.left .ticker{float:left}
    .left .ticker-controls{padding-left:6px}
    .right .ticker-controls,.right .ticker-content,.right .ticker-title,.right .ticker{float:right}
    .right .ticker-controls{padding-right:6px}
    /*########Default Style by MBT#########*/
    .ticker-wrapper.has-js{margin:0 0 -200px;padding:0;width:98%;min-height:242px;display:block;border-radius:0;background-color:#fff;border:0 solid #eee;font-size:12px;overflow:hidden}
    .ticker{width:80%;height:42px;display:block;position:relative;overflow:visible;background-color:#fff}
    .ticker-title{background:#71db00;padding:9px 10px;color:#FFF;font-size:16px;font-family:oswald;text-transform:uppercase;text-shadow:1px 1px 6px #666}
    .ticker-title:after{left:90px;top:10px;height:0;width:0;position:absolute;content:" ";pointer-events:none;margin-left:0;margin-top:1px;border-left:13px solid #71db00;border-top:10px solid transparent;border-bottom:10px solid transparent;-moz-transform:scale(.9999)}
    .ticker-content{background-color:#fff;margin-left:18px!important;color:#444;margin-top:1px!important;overflow:visible!important; padding-top: 2px!important;}
    .ticker-swipe{background-color:#fff;position:relative;top:6px;left:110px!important}
    .ticker-swipe span{margin-left:1px;background-color:#fff;border-bottom:1px solid #333;height:12px;width:7px}
    .ticker-controls{padding: 0px!important;margin: 17px 0 0 10px!important;list-style-type:none;position:relative;right:-50px}
    .ticker-controls li{padding:0;margin-left:5px;float:left;cursor:pointer;height:16px;width:16px;display:block}
    .ticker-controls li a{border:0px!important; padding:0px!important;}
    .ticker-controls li.jnt-play-pause,.ticker-controls li.jnt-play-pause.paused,.ticker-controls li.jnt-play-pause.paused.over,.ticker-controls li.jnt-prev,.ticker-controls li.jnt-play-pause.over,.ticker-controls li.jnt-next{position:absolute;background:none}
    .ticker-controls li.jnt-play-pause:after,.ticker-controls li.jnt-play-pause.over:after{content:"\f04c";font-size:13px;color:#71db00;font-family:fontAwesome;position:relative;left:1.8em}
    .ticker-controls li.jnt-play-pause.paused:after,.ticker-controls li.jnt-play-pause.paused.over:after{content:"\f04b";font-size:13px;color:#71db00;font-family:fontAwesome;position:relative;left:1.8em}
    .ticker-controls li.jnt-prev:after{content:"\f04a";font-size:13px;color:#71db00;font-family:fontAwesome;position:relative;left:0}
    .ticker-controls li.jnt-next:after{content:"\f04e";font-size:13px;color:#71db00;font-family:fontAwesome;position:relative;left:3.6em}
    .ticker .iauthor:before, .ticker .icomments:before, .ticker .idate:before{font-family:fontAwesome;position:relative;padding-right:8px;color:#fff}
    .ticker .iauthorpic{width:17px!important;height:17px!important;border-radius:50%;float:none;display:inline-block!important;margin-right:3px;position:relative;
    top: 6px;border: 1px solid #eeeeee;
        -moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
        -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
        box-shadow: 1px 1px 5px rgba(0, 0, 0, .1);
        padding: 3px;
    }
    .ticker span {padding-right:5px; font-family:Oswald; font-weight:normal}
    .ticker .icomments a{color:#71db00;font-size:11px}
    .ticker .icomments a:hover{text-decoration:underline}
    .ticker .icomments:before{content:'\f086';padding:0 3px 0 0px;color:#777;position:relative; top:-1px}
    .ticker .idate{font-size:11px;padding-right:7px;}
    .ticker .idate:before{content:'\f073';padding:0 5px;color:#777; position:relative; top:-1px}
    .ticker .mbttitle{font-family:oswald;font-size:14px;color:#71db00!important;font-weight:400;text-decoration:none;}
    .ticker .mbttitle:hover{text-decoration:underline}

    /*------ CSS3 Tooltip by MBT -------------*/
    .ticker .tooltip{outline:none;text-decoration:none!important;position:relative}
    .ticker .tooltip strong{line-height:30px}
    .ticker .tooltip > span{width:290px; white-space: normal; padding:15px 15px 0px 15px;opacity:0;top:170%;visibility:hidden;z-index:10;position:absolute;font-family:Arial;font-size:12px;font-style:normal;border-radius:2px;box-shadow:2px 2px 5px #999;-webkit-transition-property:opacity,margin-top,visibility,margin-left;-webkit-transition-duration:0.4s,0.3s,0.4s,.3s;-webkit-transition-timing-function:ease-in-out,ease-in-out,ease-in-out,ease-in-out;transition-property:opacity,margin-top,visibility,margin-left;transition-duration:0.4s,0.3s,0.4s,.3s;transition-timing-function:ease-in-out,ease-in-out,ease-in-out,ease-in-out}
    .ticker .tooltip > span img{float:right;width:130px;margin:0 0 30px 10px;padding: 0;border: none;}
    .ticker .tooltip:hover > span{opacity:1;text-decoration:none;visibility:visible;overflow:visible;display:inline;margin-left:0px}
    .ticker .tooltip span b{width:15px;height:15px;margin-left:20px;bottom:-9px;display:block;position:absolute;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);display:none\0/;*display:none}
    .ticker .tooltip > span{color:#fff; background:#71db00;border:1px solid #94fb26}
    .ticker .tooltip span b{margin-top:-19px;top:10px;background:#71db00;border-top:1px solid #94fb26;border-right:1px solid #94fb26;border-bottom:1px solid #71db00;border-left:1px solid #71db00}

    @media only screen and (max-width:480px) {
    .ticker-content {margin-left: -5px!important;padding-top: 4px!important;}.ticker-title{font-size:10px!important;padding:5px!important;}
    .ticker-controls, .ticker .icomments, .ticker .idate, .ticker .iauthor, .ticker .iauthorpic, .ticker-title:after {display:none;}}

    Make these custom changes

    • To change the green color theme of the News Ticker simply replace the green highlighted color codes with color of your choice. Use our  Color Code Generator.
  6. Save your template.
  7. Now go to Blogger > Layout
  8. Select "Add a Gadget"
  9. Choose "HTML/JavaScript" gadget
  10. Keep the title field empty and then paste the following code inside it:
           

    <!-- ######### Headlines News Widget By MBT ############# -->

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
    <script src="http://www.jquerynewsticker.com/includes/jquery.ticker.js" type="text/javascript"></script>

    <!-- ######### Writing Callback Function ############# -->
    <script type="text/javascript">
    //----------------------------Defaults
    var ListBlogLink = "http://www.mybloggertricks.com";
    var ListCount = 5;
    var TitleCount = 70;
    var ListLabel ="Widgets";
    var ChrCount = 140;
    var ImageSize = 200;

    //----------------------------Function Start
    function mbtlist(json) {
    document.write('<ul id="js-news" class="js-hidden">');
    for (var i = 0; i < ListCount; i++)
    {

    //-----------------------------Variables Declared
    var listing= ListImage = ListUrl = ListTitle = ListImage = ListContent = ListConten = ListAuthor = ListTag = ListDate = ListUpdate = ListComments = thumbUrl = TotalPosts = sk = AuthorPic= ListMonth = Y = D = M = m = YY = DD = MM = mm = TT =  "";
    //----------------------------- Title URL
    for (var j = 0; j < json.feed.entry[i].link.length; j++) {
    if (json.feed.entry[i].link[j].rel == 'alternate') {
    break;
    }
    }
    ListUrl= "'" + json.feed.entry[i].link[j].href + "'";
    //----------------------------------- Title Stirng
    if (json.feed.entry[i].title!= null)
    {
    ListTitle= json.feed.entry[i].title.$t.substr(0, TitleCount);
    }

    if (json.feed.entry[i].thr$total)
    {
    ListComments= "<a href='"+json.feed.entry[i].link[j].href+"#comment-form'>"+json.feed.entry[i].thr$total.$t+"</a>";
    }
    ListAuthor= json.feed.entry[i].author[0].name.$t.split(" ");
    ListAuthor=ListAuthor.slice(0, 1).join(" ");
    AuthorPic = json.feed.entry[i].author[0].gd$image.src;


    //################### Content Check
    ListConten = json.feed.entry[i].content.$t;
    ListContent= ListConten.replace(/(<([^>]+)>)/ig,"").substring(0, ChrCount);

    //################### Date Format

    ListMonth= ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];

    ListDate= json.feed.entry[i].published.$t.substring(0,10);

                             Y = ListDate.substring(0, 4);
                            m = ListDate.substring(5, 7);
                             D = ListDate.substring(8, 10);
                             M = ListMonth[parseInt(m - 1)]; 

    //################### Thumbnail Check
    if (json.feed.entry[i].media$thumbnail)
    {
    thumbUrl = json.feed.entry[i].media$thumbnail.url;
    sk= thumbUrl.replace("/s72-c/","/s"+ImageSize+"/");
    ListImage= "'" + sk.replace("?imgmax=800","") + "'";
    }

    // YouTube scan
    else if (json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/) != null)
    {
        var youtube_id = json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/).pop();
       
        if (youtube_id.length == 11) {
            var ListImage = "'//img.youtube.com/vi/"+youtube_id+"/0.jpg'";
            }
    }


    else if (json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/) != null)
    {
    // Support For 3rd Party Images
    ListImage =  json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/)[1];
    }
    else
    {
    ListImage= "'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAGUfSnOl8Z80gfkB3nf4E6leIH9b9OTX5_A6kGYdeyDWGdLwiDFiBviv0bDAWrrvjSJCz_-CkNJYcTYjw1u7RpJBfat_lFl0hPlE_kv7AADKMtFU4PPpY8DM21SEgNMaR2xUN21hR6D0/s200/Icon.png'";
    }

    //----------------------------------- Printing List
    var listing = "<li class='news-item'><span class='iauthor'><img class='iauthorpic' src='"+AuthorPic+"'/>"
    +ListAuthor+ "</span> <span class='icomments'>"
    +ListComments + "</span>  <span class='idate'>"
    + D + " " + M + "</span><i class='fa fa-chevron-right'></i> <a class='mbttitle tooltip' href="
    +ListUrl+
    "><span><b></b><img src="
    +ListImage+
    "/>"
    +ListContent+
    " ?</span>"+ListTitle+"</a></li>";
    document.write(listing);
    }}

    document.write("</ul><script src='"+ListBlogLink+"/feeds/posts/default/-/"+ListLabel+"?alt=json-in-script&callback=mbtlist'></"+"script>");
    /*##########Newsticker settings########*/
        $(function () {
            $('#js-news').ticker({
            speed: 0.20,
            controls: true,  
            titleText: 'Headlines',
            displayType: 'reveal',
            pauseOnItems: 2000});
    });
    </script>

    Make these changes:

    • ListBlogLink : Insert your Blog URL here
    • ListCount : Decide how many headlines do you wish to display.
    • TitleCount : Choose how many characters to display in post title length.
    • ListLabel : Insert your blog label here. Remember that labels are case sensitive. Therefore type it exactly as it is shown in your browser address bar. News Ticker will not work if label case is not correct. 
    • ChrCount : Set the length of post description here.
    • ImageSize : Set image resolution (aspect ratio) here.
    • speed: Edit this value (0.20) to increase or decrease the scroll speed.
    • controls: Set true to false if you wish to hide the control buttons i.e. Play/Pause, Next/Previous
    • titleText: Set the News Ticker title here from Headlines to anything you like such as Latest, Hottest etc.
    • displayType: There are two types of scrolling text animation, reveal or fade. Set it as per your preference.
    • If you want to show latest posts headlines of your blog without mentioning any specific label/category then simply remove /-/"+ListLabel+" from the code above.
  11. Click Save button and you are all done.

Enjoy showing animated plus scrolling news headlines to your visitors! :)

Facing Problems Installing Headlines News Widget?

I tried keeping these steps as simple as possible but if in case you are facing problems in any step please feel free to post your queries below. I would love to help as soon as time allows.

I hope this cool headline news  ticker may help you in generating extra pageviews and creating better user engagement. If you liked this plugin and want a similar plugin to be developed for wordPress blogs using the WP rest API, then please post your comments below.

Have a great day buddies! =)

Breaking News Ticker Widget For Blogger - JSON Feeds Support!

Breaking News Ticker Widget For blogger

Breaking News widget for Blogger blogs is a free, flat, stylish, modern, easy to use and responsive Blogger jQuery news ticker. It displays text-based titles of your latest posts in a scrolling fashion automatically. It is the best way to showcase your hottest content to your website visitors on your homepage just how BBC or CNN does it! We have coded it using Blogger JSON Feeds API and jQuery News Ticker plugin.

UPDATE: Check Headline News Ticker With ToolTips!

Some sites like codecanyon are selling News Ticker Plugins at $5, but you will not only get it free at MBT but you will also learn how such widgets are coded if you read our JSON Feeds series.

Instead of using RSS Feeds to built a scrolling newsticker, we will use JSON Feeds to create a more advanced, lightweight and dynamic News Ticker that will not only just display titles but will also show almost every info (i.e. Avatar/Comments/Published date) about your blog post.

What is a News Ticker?

A news ticker is a primarily horizontal, text-based display. Most tickers are traditionally displayed in the form of scrolling text running from right to left across the screen. This term originally refers to Television News tickers, scrolling near the bottom of the TV screen. The TV news ticker allows breaking news to be shown to the viewer without interrupting the current broadcast. Similarly webmasters have adopted a similar method of displaying latest news on their websites homepage. The latest headlines of your websites or blog is shown scrolling from left to right across the width of the site to keep visitors informed about most updated content.

In short it is a simple, handy widget that helps you to showcase your website's latest headlines, latest updates or featured content from a specific category.

Features of Breaking News Ticker Widget:

Blogger News Ticker is an advanced widget equipped with these features:

  • Author Avatar - Unique!
  • Displays latest posts dynamically. - Unique!
  • Displays recent posts from a specific category/label.
  • Scrolling text with two animations: reveal & fade
  • Clickable Comments Count
  • Custom Date Format - Unique!
  • Title Length is adjustable
  • Fully Customizable - Multi Colors!
  • Responsive and mobile friendly. 
  • Controls Navigation. Play/Pause, Next/Previous
  • Support all browsers: Firefox, Chrome, IE, Safari etc.
  • Many more!

How To add News Ticker Widget In Blogger?

To add news ticker widget in your blogger templates, please follow these easy steps:

  1. Go To Blogger > Template
  2. Backup your template
  3. Click "Edit HTML"
  4. Just below <head> tag paste the following JS and CSS source links:

    <link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/>
    <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>

  5. Next search ]]></b:skin> and just above it paste the following code:

    /*########Default Newsticker Styles#########*/

    .ticker-wrapper.has-js{margin:20px 0;padding:0 20px;width:780px;height:32px;display:block;-webkit-border-radius:15px;-moz-border-radius:15px;border-radius:15px;background-color:#f8f0db;font-size:.75em}
    .ticker{width:710px;height:23px;display:block;position:relative;overflow:hidden;background-color:#f8f0db}
    .ticker-title{padding-top:9px;color:#900;font-weight:700;background-color:#f8f0db;text-transform:uppercase}
    .ticker-content{margin:0;padding-top:9px;position:absolute;color:#1F527B;font-weight:700;background-color:#f8f0db;overflow:hidden;white-space:nowrap;line-height:1.2em}
    .ticker-content a{text-decoration:none;color:#1F527B}
    .ticker-content a:hover{text-decoration:underline;color:#0D3059}
    .ticker-swipe{padding-top:9px;position:absolute;top:0;background-color:#f8f0db;display:block;width:800px;height:23px}
    .ticker-swipe span{margin-left:1px;background-color:#f8f0db;border-bottom:1px solid #1F527B;height:12px;width:7px;display:block}
    .ticker-controls{padding:8px 0 0;list-style-type:none;float:left}
    .ticker-controls li{padding:0;margin-left:5px;float:left;cursor:pointer;height:16px;width:16px;display:block}
    .ticker-controls li.jnt-play-pause{background-image:url(../images/controls.png);background-position:32px 16px}
    .ticker-controls li.jnt-play-pause.over{background-position:32px 32px}
    .ticker-controls li.jnt-play-pause.down{background-position:32px 0}
    .ticker-controls li.jnt-play-pause.paused{background-image:url(../images/controls.png);background-position:48px 16px}
    .ticker-controls li.jnt-play-pause.paused.over{background-position:48px 32px}
    .ticker-controls li.jnt-play-pause.paused.down{background-position:48px 0}
    .ticker-controls li.jnt-prev{background-image:url(../images/controls.png);background-position:0 16px}
    .ticker-controls li.jnt-prev.over{background-position:0 32px}
    .ticker-controls li.jnt-prev.down{background-position:0 0}
    .ticker-controls li.jnt-next{background-image:url(../images/controls.png);background-position:16px 16px}
    .ticker-controls li.jnt-next.over{background-position:16px 32px}
    .ticker-controls li.jnt-next.down{background-position:16px 0}
    .js-hidden{display:none}
    .no-js-news{padding:10px 0 0 45px;color:#F8F0DB}
    .left .ticker-controls,.left .ticker-content,.left .ticker-title,.left .ticker{float:left}
    .left .ticker-controls{padding-left:6px}
    .right .ticker-controls,.right .ticker-content,.right .ticker-title,.right .ticker{float:right}
    .right .ticker-controls{padding-right:6px}

    /*########Blogger Newsticker by MBT#########*/
    .ticker-wrapper.has-js{margin:0;padding:0;width:98%;height:42px;display:block;border-radius:0;background-color:#fff;border:1px solid #eee;font-size:12px}
    .ticker{width:80%;height:42px;display:block;position:relative;overflow:hidden;background-color:#fff}
    .ticker-title{background:#71db00;padding:10px;color:#FFF;font-size:16px;font-family:oswald;text-transform:uppercase;text-shadow:1px 1px 6px #666}
    .ticker-title:after{left:76px;top:10px;height:0;width:0;position:absolute;content:" ";pointer-events:none;margin-left:0;margin-top:1px;border-left:13px solid #71db00;border-top:10px solid transparent;border-bottom:10px solid transparent;-moz-transform:scale(.9999)}
    .ticker-content{background-color:#fff;margin-left:15px;color:#444;margin-top:1px}
    .ticker-swipe{background-color:#fff;position:relative;top:5px;left:100px!important}
    .ticker-swipe span{margin-left:1px;background-color:#fff;border-bottom:1px solid #333;height:12px;width:7px}
    .ticker-controls{padding:0!important;margin:13px 0 0 10px !important;list-style-type:none;position:relative;right:-50px}
    .ticker-controls li{padding:0;margin-left:5px;float:left;cursor:pointer;height:16px;width:16px;display:block}
    .ticker-controls li a{border:0!important;padding:0!important}
    .ticker-controls li.jnt-play-pause,.ticker-controls li.jnt-play-pause.paused,.ticker-controls li.jnt-play-pause.paused.over,.ticker-controls li.jnt-prev,.ticker-controls li.jnt-play-pause.over,.ticker-controls li.jnt-next{position:absolute;background:none}
    .ticker-controls li.jnt-play-pause:after,.ticker-controls li.jnt-play-pause.over:after{content:"\f04c";font-size:13px;color:#71db00;font-family:fontAwesome;position:relative;left:1.8em}
    .ticker-controls li.jnt-play-pause.paused:after,.ticker-controls li.jnt-play-pause.paused.over:after{content:"\f04b";font-size:13px;color:#71db00;font-family:fontAwesome;position:relative;left:1.8em}
    .ticker-controls li.jnt-prev:after{content:"\f04a";font-size:13px;color:#71db00;font-family:fontAwesome;position:relative;left:0}
    .ticker-controls li.jnt-next:after{content:"\f04e";font-size:13px;color:#71db00;font-family:fontAwesome;position:relative;left:3.6em}
    .ticker .iauthor:before,.ticker .icomments:before,.ticker .idate:before{font-family:fontAwesome;position:relative;padding-right:8px;color:#fff}
    .ticker .iauthorpic{width:16px!important;height:16px!important;border-radius:50%;float:none;display:inline-block!important;margin:0;padding-right:3px;position:relative;top:3px}
    .ticker span{padding-right:5px;font-family:Oswald;font-weight:400}
    .ticker .icomments a{color:#71db00;font-size:11px}
    .ticker .icomments a:hover{text-decoration:underline}
    .ticker .icomments:before{content:'\f086';padding:0 3px 0 0;color:#777;position:relative;top:-1px}
    .ticker .idate{font-size:11px;padding-right:7px}
    .ticker .idate:before{content:'\f073';padding:0 5px;color:#777;position:relative;top:-1px}
    .ticker .mbttitle{font-family:oswald;font-size:14px;color:#71db00!important;font-weight:400;text-decoration:none}
    .ticker .mbttitle:hover{text-decoration:underline}

    Make these changes

    • To change the green color theme of the News Ticker simply replace the green highlighted color codes with color of your choice. The color can be in rgb or #hexadecimal, both work. Use our  Color Code Generator.
  6. Save your template.
  7. Now go to Blogger > Layout
  8. Select "Add a Gadget"
  9. Choose "HTML/JavaScript" gadget
  10. Keep the title field empty and then paste the following code inside it:

    <!-- ######### Breaking News Ticker By MBT ############# -->

    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script><script src="http://www.jquerynewsticker.com/includes/jquery.ticker.js" type="text/javascript"></script>
    <script type="text/javascript">
    //----------------------------Defaults
    var ListBlogLink = "http://www.mybloggertricks.com";
    var ListCount = 5;
    var TitleCount = 70;
    var ListLabel = "Widgets";

    //----------------------------Function Start
    function mbtlist(json) {
    document.write('<ul id="js-news" class="js-hidden">');
    for (var i = 0; i < ListCount; i++)
    {

    //-----------------------------Variables Declared
    var listing= ListImage = ListUrl = ListTitle = ListImage = ListContent = ListConten = ListAuthor = ListTag = ListDate = ListUpdate = ListComments = thumbUrl = TotalPosts = sk = AuthorPic= ListMonth = Y = D = M = m = YY = DD = MM = mm = TT =  "";
    //----------------------------- Title URL
    for (var j = 0; j < json.feed.entry[i].link.length; j++) {
    if (json.feed.entry[i].link[j].rel == 'alternate') {
    break;
    }
    }
    ListUrl= "'" + json.feed.entry[i].link[j].href + "'";
    //----------------------------------- Title Stirng
    if (json.feed.entry[i].title!= null)
    {
    ListTitle= json.feed.entry[i].title.$t.substr(0, TitleCount);
    }

    if (json.feed.entry[i].thr$total)
    {
    ListComments= "<a href='"+json.feed.entry[i].link[j].href+"#comment-form'>"+json.feed.entry[i].thr$total.$t+"</a>";
    }
    ListAuthor= json.feed.entry[i].author[0].name.$t.split(" ");
    ListAuthor=ListAuthor.slice(0, 1).join(" ");
    AuthorPic = json.feed.entry[i].author[0].gd$image.src;

    //################### Date Format

    ListMonth= ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];

    ListDate= json.feed.entry[i].published.$t.substring(0,10);

                             Y = ListDate.substring(0, 4);
                            m = ListDate.substring(5, 7);
                             D = ListDate.substring(8, 10);
                             M = ListMonth[parseInt(m - 1)]; 
    //----------------------------------- Printing List
    var listing = "<li class='news-item'><span class='iauthor'><img class='iauthorpic' src='"+AuthorPic+"'/>"
    +ListAuthor+ "</span> <span class='icomments'>"
    +ListComments + "</span>  <span class='idate'>"
    + D + " " + M + "</span><i class='fa fa-chevron-right'></i> <a class='mbttitle' href="
    +ListUrl+
    "target='_blank'>"
    +ListTitle+
    "</a></li>";
    document.write(listing);
    }
    }
    document.write("</ul><script src='"+ListBlogLink+"/feeds/posts/default/-/"+ListLabel+"?alt=json-in-script&callback=mbtlist'></"+"script>");

    /*##########Breaking News Ticker Settings########*/
        $(function () {
            $('#js-news').ticker({
            speed: 0.20,
            controls: true,  
            titleText: 'Hottest',
            displayType: 'reveal',
            pauseOnItems: 2000,   
    });
    });
    </script>

    Make these changes:

    • ListBlogLink : Insert your Blog URL here
    • ListCount : Decide how many breaking titles do you wish to display.
    • TitleCount : Choose how many characters to display in post title length.
    • ListLabel : Insert your blog label here. Remember that labels are case sensitive. Therefore type it exactly as it is shown in your browser address bar. News Ticker will not work if label case is not correct. Edit "Widgets"
    • speed: Edit this value (0.20) to increase or decrease the scroll speed.
    • controls: Set true to false if you wish to hide the control buttons i.e. Play/Pause, Next/Previous
    • titleText: Set the News Ticker title here from Hottest to anything you like such as Latest, Breaking etc.
    • displayType: There are two types of scrolling text animation, reveal or fade. Set it as per your preference.
    • TitleCount : Choose how many characters to display in post title.
    • If you want to show latest posts headlines of your blog without mentioning any specific label/category then simply remove /-/"+ListLabel+" from the code above. 
  11. Click Save button and you are all ready to start showing animated plus scrolling headlines to your readers! :)

Do You Need Any Help?

The installation steps above are made extremely simple. You just need to follow it carefully especially taking care of the label case sensitivity and also the jQuery file. Let me know if you need any help. I would love to assist you as soon as time allows.

I really appreciate when you share your feedback.  Please let us know how useful was this tutorial for you and how can this cool headline news widget for blogger help you to better engage your readers and increase your pageviews. Would be waiting to hear from you.

The next tutorial will be based on adding a tooltip to this scrolling headlines news ticker widget for displaying Image Thumbnail plus description snippet, it would be an amazing enhancement to the current design, so stay tuned for updates! :)

Create Random Post Slider Widget For BlogSpot Blogs!

Create Random Post Slider For Blogspot blogsEver wondered you could display images randomly inside a blogger slider? So far we have shared dynamic recent posts slider and a static slider, today for the first time online, we are releasing a Random Post Slider for BlogSpot blogs which is built using Blogger JSON Feeds API, FlexSlider and jQuery. A fully responsive image slider that will automatically display your random posts on your homepage or sidebar, almost anywhere you want.  Lets learn how to create a random slider for blogspot in simple steps but before that lets see a live demo!

What is Blogger Random Post Slider Widget?

Due to the natural structure of blogging platforms such as blogspot, articles end up being buried down once they get old. New users often avoid navigating through all your labels/categories, as a result most of your best content receives no attention at all. A random post slider is the best way to showcase your oldest posts to your visitors. The slider widget will pick your old posts randomly and automatically display the thumbnails either on homepage or sidebar depending on what location best suits you. The slider rotates in a clockwise direction where each slide is both responsive and dynamic.

Features of Blogger Random Post Slider Widget

Each slide will display useful data which is fetched using a JSON Call. Features supported include:

  • Article comments count,
  • Author avatar,
  • Author name,
  • Published date,
  • Labels,
  • Featured Thumbnail,
  • Third Party Thumbnail Support,
  • YouTube Thumbnail Support,
  • Editable Title,
  • Mobile responsive (Smartphones/ Tablets/ Laptops/ Desktop Screens supported)

Create and Random Post Slider in Blogger

Follow these easy steps:

  1. Go To Blogger > Template
  2. Backup your template
  3. Click "Edit HTML"
  4. Just below <head> tag paste the following JS and CSS source links:

    <script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script>
    <link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/>
    <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>
    <link href='https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.1/flexslider.min.css' rel='stylesheet' type='text/css'/>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.1/jquery.flexslider.min.js' type='text/javascript'></script>

    Note: Do not add JQuery, FontAwesome, FlexSlider or Oswald source links to your template if you are already using them on your site.

  5. Next search ]]></b:skin> and just above/before it paste the following code:

    /*######### Random Posts By MyBloggerTricks #############*/
    .mbt-random{margin:0 5px;border:0;width:100%;overflow:hidden}
    .mbt-random .slides{list-style-type:none;margin:0 auto;padding:0}
    .mbt-random li{color:#fff;font-family:helvetica;font-size:12px;overflow:hidden;padding-top:10px}
    .mbt-random .flex-control-nav li{display:inline-block;margin:0 2px}
    .mbt-random .flex-control-nav a{text-indent:9999px;display:block;width:10px;cursor:pointer;height:10px;background-color:#000;border:1px solid #000;border-radius:0!important}
    .flex-direction-nav .flex-prev{left:-50px}
    .flex-direction-nav .flex-next{right:-50px;text-align:right}
    .mbt-random .flex-control-paging{display:none}
    .flex-direction-nav{position:relative;top:-250px}
    .mbt-random .flex-control-nav a.flex-active{background-color:#84db06;border:1px solid #90f128}
    .mbt-random .flex-div{margin:0 auto;display:block;padding:0!important;position:relative;height:370px}
    .mbt-random li a{color:#0080ff;text-decoration:none}
    .mbt-random i{color:#999;padding-right:5px}
    .mbt-random .iline{line-height:2em;margin:0;position:relative;top:-90px;background:#56adff;padding:3px 10px;display:inline-block}
    .mbt-random .icontent{line-height:1.5em;margin-top:5px}
    .mbt-random div span{margin:0 5px 0 0;display:inline-block;font-weight:400}
    .mbt-random .mbttitle{font-family:oswald;font-size:20px;color:#fff;font-weight:400;text-decoration:none;position:relative;top:-90px;background:#66b5ff;padding:15px 10px;display:block}
    .mbt-random .mbttitle:hover,.mbt-random .itotal a:hover{color:#fff;text-decoration:none}
    .mbt-random .iedit a{text-decoration:none;color:#999;cursor:pointer}
    .mbt-random .iedit:before,.mbt-random .iauthor:before,.mbt-random .itag:before,.mbt-random .icomments:before,.mbt-random .idate:before,.mbt-random .itotal span:before{font-family:fontAwesome;position:relative;padding-right:8px;color:#fff}
    .mbt-random .iauthorpic{width:17px!important;height:17px!important;border-radius:50%;float:none;display:inline-block!important;margin:0;padding-right:3px;position:relative;top:3px}
    .mbt-random .iFeatured{overflow:hidden;position:relative;margin:0;padding:0;width:100%}
    .mbt-random .iFeatured a{background:none;padding:0;display:block;border:0px solid #eee;margin:0 -1px}
    .mbt-random .iFeatured img{height:305px!important;-moz-transition:all .3s;-webkit-transition:all .3s;transition:all .3s;border-radius:0;margin:0;padding:0;opacity:.7}
    .mbt-random .iFeatured:hover img{opacity:1;-moz-transform:scale(1.4);-webkit-transform:scale(1.4);transform:scale(1.4)}
    .mbt-random .icomments a, .mbt-random .itag a{color:#0080ce;font-family:arial;font-size:12px}
    .mbt-random .icomments a:hover, .mbt-random .itag a:hover{text-decoration:underline}
    .mbt-random .itag:before{content:'\f02c';padding:0 3px 0 7px;color:#fff}
    .mbt-random .icomments:before{content:'\f086';padding:0 3px 0 7px;color:#fff}
    .mbt-random .idate{color:#fff;padding:3px 4px;font-family:arial;font-size:11px}
    .mbt-random .idate:before{content:'\f073';padding:0 5px;color:#fff}

  6. Make these changes

    • To change the blue background color behind the title edit: #66b5ff
    • To change the light blue background behind Author name edit: #56adff
    • To change the white color of the Title text edit: #fff
    • To change the color of the comment and labels link edit: #0080ce
  7. Save your template.
  8. Now go to Blogger > Layout
  9. Select "Add a Gadget"
  10. Choose "HTML/JavaScript" gadget
  11. Keep the title field empty and then paste the following code inside it:

    <script type="text/javascript">
    //################### Defaults
    var ListBlogLink = "http://mybloggertricks.com";
    var ListCount = 4; 
    var TitleCount = 66;
    var ImageSize = 800;

    $(window).load(function() {
      $('.mbt-random').flexslider({
       animation: "slide",
        itemWidth: 600,
    itemMargin: 25,
      directionNav: true,
           touch: true,
           slideshowSpeed: 2500,
          pauseOnHover: true,
         animationSpeed: 700,
      });
    });

    var RandomArray = [];
    var TotalPosts  = 0;
    var RandomArray = new Array(ListCount);
    function TotalCount(json) {
        TotalPosts   = json.feed.openSearch$totalResults.$t
    }
    document.write('<script type=\"text/javascript\" src=\"'+ListBlogLink+'/feeds/posts/default?alt=json-in-script&callback=TotalCount\"><\/script>');

    function GenerateNum() {
        for (var i = 0; i < ListCount ; i++) {
        for (var j = 0; j < RandomArray.length; j++){
        var RandomNum = Math.floor(Math.random() * (TotalPosts ) + 1);
        RandomArray[i] = RandomNum; }
                                                                      }
    }

    </script>

    <div class="flexslider mbt-random">
    <ul class="slides">
    <script type="text/javascript">
    //################### Function Start
    function mbtrand(json) {
    for (var i = 0; i < json.feed.entry.length; i++)
    { 
    //################### Variables Declared
    var listing= ListImage = ListUrl = ListTitle = ListImage = ListContent = ListConten = ListAuthor = ListTag = ListDate = ListUpdate = ListComments = thumbUrl = TotalPosts = sk = AuthorPic= ListMonth = Y = D = M = m = YY = DD = MM = mm = TT =  "";
    //################### Category

    if (json.feed.entry[i].category != null)
    {
    for (var k = 0; k < json.feed.entry[i].category.length; k++) {
    ListTag += "<a href='"+ListBlogLink+"/search/label/"+json.feed.entry[i].category[k].term+"'>"+json.feed.entry[i].category[k].term+"</a>";
    if(k < json.feed.entry[i].category.length-1)
    { ListTag += ", ";}
    }
    }
    //################### URL
    for (var j = 0; j < json.feed.entry[i].link.length; j++) {
          if (json.feed.entry[i].link[j].rel == 'alternate') {
            break;
          }
        }
    ListUrl= "'" + json.feed.entry[i].link[j].href + "'";
    //################### Info
    TotalPosts = json.feed.openSearch$totalResults.$t;
    if (json.feed.entry[i].title!= null)
    {
    ListTitle= json.feed.entry[i].title.$t.substr(0, TitleCount);
    }
    if (json.feed.entry[i].thr$total)
    {
    ListComments= "<a href='"+json.feed.entry[i].link[j].href+"#comment-form'>"+json.feed.entry[i].thr$total.$t+"</a>";
    }
    ListAuthor= json.feed.entry[i].author[0].name.$t.split(" ");
    ListAuthor=ListAuthor.slice(0, 1).join(" ");
    AuthorPic = json.feed.entry[i].author[0].gd$image.src;
    //################### Date Format
    ListMonth= ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
    ListDate= json.feed.entry[i].published.$t.substring(0,10);
                             Y = ListDate.substring(0, 4);
                            m = ListDate.substring(5, 7);
                             D = ListDate.substring(8, 10);
                             M = ListMonth[parseInt(m - 1)];                      
    ListUpdate= json.feed.entry[i].updated.$t.substring(0, 16);
                             YY = ListUpdate.substring(0, 4);
                            mm = ListUpdate.substring(5, 7);
                             DD = ListUpdate.substring(8, 10);
                             TT = ListUpdate.substring(11, 16);
                             MM = ListMonth[parseInt(mm - 1)];  
    //################### Thumbnail Check

    if (json.feed.entry[i].media$thumbnail)
    {
    thumbUrl = json.feed.entry[i].media$thumbnail.url;
    sk= thumbUrl.replace("/s72-c/","/s"+ImageSize+"/");
    ListImage= "'" + sk.replace("?imgmax=800","") + "'";
    }

    // YouTube scan
    else if (json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/) != null)
    {
        var youtube_id = json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/).pop();
       
        if (youtube_id.length == 11) {
            var ListImage = "'//img.youtube.com/vi/"+youtube_id+"/0.jpg'";
            }
    }

    else if (json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/) != null)
    {
    // Support For 3rd Party Images
    ListImage =  json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/)[1];
    }
    else
    {
    ListImage= "'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAGUfSnOl8Z80gfkB3nf4E6leIH9b9OTX5_A6kGYdeyDWGdLwiDFiBviv0bDAWrrvjSJCz_-CkNJYcTYjw1u7RpJBfat_lFl0hPlE_kv7AADKMtFU4PPpY8DM21SEgNMaR2xUN21hR6D0/s200/Icon.png'";
    }
    //###################  Printing List
    var listing = "<li><div class='flex-div'><div class='iFeatured'><a  href="
    + ListUrl+
      "><img src="
    +ListImage+
    "/></a></div><div class='iline'><span class='iauthor'><img class='iauthorpic' src='"+AuthorPic+"'/>"
    +ListAuthor+
    "</span><span class='icomments'>"
    +ListComments +
    "</span> <span class='idate'>"
    + D +
    " "
    + M +
    "</span><span class='itag'>"
    +ListTag +
    "</span></div><a class='mbttitle' href="
    +ListUrl+
    "target='_blank'>"
    +ListTitle+
    "</a></div></li>";

    document.write(listing);

    } }
    <!-- #### Invoking the Callback Function #### -->
    for (var i = 0; i < ListCount ; i++) {
    GenerateNum();
    var scripta = '<script type=\"text/javascript\" src=\"'+ListBlogLink+'/feeds/posts/default?alt=json-in-script&start-index='+RandomArray[i] + '&max-results=1&callback=mbtrand\"><\/script>';
    document.write(scripta);
    };

    </script>
    </ul></div>

    Make these changes to customize the slider:

    • Place your blog URL inside ListBlogLink
    • Inside ListCount  mention how many slides to display. I recommend not displaying more than 3 or 4 slides. Increasing this number will increase the number of iterations/loops and thus slowing down your site.
    • Inside TitleCount  mention the length of title characters to display. By default titles longer than 66 characters will be trimmed.
    • Inside ImageSize mention the aspect ratio or resolution of your featured thumbnails. By default the thumbnails will be 800px in width. If you wish to display the slider in sidebar only then you can decrease this value to 400px.
  12. Click Save and you are all done!

You have now successfully created blogger random post slider and have installed it on your blog template. Visit your blog to see it working just fine. If in case you troubleshoot yourself, feel free to leave your comments below and I would love to help you with all your queries.

I have installed a random post widget on my blog slider and so far it has really helped growing our audience. I wish this slider may help you equally. This is the first random slider widget of its kind published online for blogger blogs therefore do let us know how useful is this slider for you and what is your experience after installing it successfully on your template. Peace buddies! :)

If you are interested to learn how are blogger widgets developed and coded then do read:

Featured Posts Slider Widget for Blogger - [Automatic]



dynamic blogger sliderEver wondered how to display your most recent posts from a selected category inside a dynamic Image slider? Let's create a responsive featured content slider widget for BlogSpot blogs that may display recent posts from a specific label automatically. Without our Blogger JSON Feeds guide, building Blogspot widgets would not have been that easy!


UPDATE: We just released Random Posts Slider Widget and a Static Slider For Blogger!


Image Sliders for blogs play a vital role in showcasing your featured content whether it be a static list of featured images linked to your bog posts or a dynamic/automatic list of recent posts from a specific label or an automatic list of random posts. We are sharing with you all for the first time, all these three amazing blogger featured content sliders built using FlexSlider and Blogger JSON Feeds API. These blogspot widgets are rarely shared with all advanced functionality and we are pleased to develop them exclusively for blogger community. 



In the past we have developed and shared several static Content Sliders for Blogspot blogs but this time we will learn how to make that content load dynamically instead of manually creating the featured content list and then displaying it.




See our previous sliders by following these links:



What is a Featured Posts Slider Widget?



Featured posts slider widget for blogger blogs is a unique way to showcase your most favorite and exclusive articles on your homepage. It automatically displays your latest articles from a specific category inside animated slider, thus drawing your visitors attentions towards your note worthy content. 





Even news sites like Yahoo news and TV channels like Discovery displays their hottest content using a featured content slider on their homepage. This helps the website visitors to see most trending and most featured stories in a glance. Featured posts slider really helps to draw visitor attention to your old but exclusive articles, thus helping in increasing your page views. 





Wordpress sites use several plugins to showcase featured content on homepage but with the help of blogger JSON feed API & FlexSlider we were able to create the most advanced featured posts slider for blogger platform.





Features of Featured Posts Slider Widget


Featured posts slider is an advanced widget equipped with these features:


  1. Author Avatar - Unique!

  2. Displays recent posts dynamically inside Slider. - Unique!

  3. Displays recent posts from a specific category/label.


    1. Slider with two animations: Slide & Fade - Unique!

    2. Clickable Comments Count

    3. Custom Date Format

    4. Clickable Animated Featured Image Thumbnails

    5. Option to increase or decrease Image Resolution for quality- Unique!

    6. Support for Third-party Images and YouTube Video thumbnails - Unique!

    7. Title Length is adjustable



    Most Responsive Content Slider For Blogger Blogs!


    Blogger featured posts slider is built using FlexSlider and it therefore automatically adopts the width of the parent container. Multiple breakpoints are added to ensure the slider fits to device screen size just perfectly. See the screenshots below


    [ SMARTPHONES ]

    responsive blogger slider





    [ TABLETS / IPADS]

    responsive blogspot slider




    [ DESKTOP / LAPTOPS ]

    responsive blogspot content slider


    Add Featured Posts Slider To Blogger


    If you'd like to display the featured post slider on your homepage, please follow these instructions:


    1. Go To Blogger > Template

    2. Backup your template

    3. Click "Edit HTML"

    4. Just below <head> tag paste the following JS and CSS source links:

      <script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script>

      <link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/>

      <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>

      <link href='https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.1/flexslider.min.css' rel='stylesheet' type='text/css'/>

      <script src='https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.1/jquery.flexslider.min.js' type='text/javascript'></script>

      Note: Do not add JQuery, FontAwesome, FlexSlider or Oswald source links to your template if you are already using them on your site.


    5. Next search ]]></b:skin> and just above/before it paste the following code:



      /*######### Blogger Slider By MyBloggerTricks #############*/

      .mbt-s{margin:0 5px;border:0;width:100%;overflow:hidden}

      .mbt-s .slides{list-style-type:none;margin:0 auto;padding:0}

      .mbt-s li{color:#fff;font-family:helvetica;font-size:12px;overflow:hidden;padding-top:10px}

      .mbt-s .flex-control-nav li{display:inline-block;margin:0 2px}

      .mbt-s .flex-control-nav a{text-indent:9999px;display:block;width:10px;cursor:pointer;height:10px;background-color:#000;border:1px solid #000;border-radius:0!important}

      .flex-direction-nav .flex-prev{left:-50px}

      .flex-direction-nav .flex-next{right:-50px;text-align:right}

      .mbt-s .flex-control-paging{display:none}

      .flex-direction-nav{position:relative;top:-250px}

      .mbt-s .flex-control-nav a.flex-active{background-color:#84db06;border:1px solid #90f128}

      .mbt-s .flex-div{margin:0 auto;display:block;padding:0!important;position:relative;height:370px}

      .mbt-s li a{color:#0080ff;text-decoration:none}

      .mbt-s i{color:#999;padding-right:5px}

      .mbt-s .iline{line-height:2em;margin:0;position:relative;top:-90px;background:#31363a;padding:3px 10px;display:inline-block}

      .mbt-s .icontent{line-height:1.5em;margin-top:5px}

      .mbt-s div span{margin:0 5px 0 0;display:inline-block;font-weight:400}

      .mbt-s .mbttitle{font-family:oswald;font-size:20px;color:#ff0;font-weight:400;text-decoration:none;position:relative;top:-90px;background:#222;padding:15px 10px;display:block}

      .mbt-s .mbttitle:hover,.mbt-s .itotal a:hover{color:#fff;text-decoration:none}

      .mbt-s .iedit a{text-decoration:none;color:#999;cursor:pointer}

      .mbt-s .iedit:before,.mbt-s .iauthor:before,.mbt-s .itag:before,.mbt-s .icomments:before,.mbt-s .idate:before,.mbt-s .itotal span:before{font-family:fontAwesome;position:relative;padding-right:8px;color:#fff}

      .mbt-s .iauthorpic{width:17px!important;height:17px!important;border-radius:50%;float:none;display:inline-block!important;margin:0;padding-right:3px;position:relative;top:3px}

      .mbt-s .iFeatured{overflow:hidden;position:relative;margin:0;padding:0;width:100%}

      .mbt-s .iFeatured a{background:none;padding:0;display:block;border:0px solid #eee;margin:0 -1px}

      .mbt-s .iFeatured img{height:305px!important;-moz-transition:all .3s;-webkit-transition:all .3s;transition:all .3s;border-radius:0;margin:0;padding:0;opacity:.7}

      .mbt-s .iFeatured:hover img{opacity:1;-moz-transform:scale(1.4);-webkit-transform:scale(1.4);transform:scale(1.4)}

      .mbt-s .icomments a{color:#0080ff;font-family:arial;font-size:12px}

      .mbt-s .icomments a:hover{text-decoration:underline}

      .mbt-s .icomments:before{content:'\f086';padding:0 3px 0 7px;color:#fff}

      .mbt-s .idate{color:#fff;padding:3px 4px;font-family:arial;font-size:11px}

      .mbt-s .idate:before{content:'\f073';padding:0 5px;color:#fff}


    6. Make these changes


      • To change the black background color behind the title edit: #222

      • To change the yellow color of the slide title font edit: #ff0 and to change the white color of the title on mouse hover edit: #fff

      • To change the color of the comment link eidt: #0080ff

      • The color can be in rgb or #hexadecimal, both work. Use our  Color Code Generator.



    7. Save your template.

    8. Now go to Blogger > Layout

    9. Select "Add a Gadget"

    10. Choose "HTML/JavaScript" gadget

    11. Keep the title field empty and then paste the following code inside it:

      <script type="text/javascript">

      $(window).load(function() {

        $('.mbt-s').flexslider({

      animation: "slide",itemWidth: 600,itemMargin: 25,directionNav: true,touch: true,slideshowSpeed: 2500,pauseOnHover: true,animationSpeed: 700,});});</script>

      <div class="flexslider mbt-s">

      <ul class="slides">

      <script type="text/javascript">

      //################### Defaults

      var ListBlogLink = "http://mybloggertricks.com";

      var ListCount = 6;

      var ListLabel = "Events";

      var TitleCount = 66;

      var ImageSize = 600;

      //################### Function Start

      function mbtslide(json) {

      for (var i = 0; i < ListCount; i++)

      { 

      //################### Variables Declared

      var listing= ListImage = ListUrl = ListTitle = ListImage = ListContent = ListConten = ListAuthor = ListTag = ListDate = ListUpdate = ListComments = thumbUrl = TotalPosts = sk = AuthorPic= ListMonth = Y = D = M = m = YY = DD = MM = mm = TT =  "";

      //################### Category

      if (json.feed.entry[i].category != null)

      {

      for (var k = 0; k < json.feed.entry[i].category.length; k++) {

      ListTag += "<a href='"+ListBlogLink+"/search/label/"+json.feed.entry[i].category[k].term+"'>"+json.feed.entry[i].category[k].term+"</a>";

      if(k < json.feed.entry[i].category.length-1)

      { ListTag += " ";}

      }

      }

      //################### URL

      for (var j = 0; j < json.feed.entry[i].link.length; j++) {

            if (json.feed.entry[i].link[j].rel == 'alternate') {

              break;

            }

          }

      ListUrl= "'" + json.feed.entry[i].link[j].href + "'";

      //################### Info

      TotalPosts = json.feed.openSearch$totalResults.$t;

      if (json.feed.entry[i].title!= null)

      {

      ListTitle= json.feed.entry[i].title.$t.substr(0, TitleCount);

      }

      if (json.feed.entry[i].thr$total)

      {

      ListComments= "<a href='"+json.feed.entry[i].link[j].href+"#comment-form'>"+json.feed.entry[i].thr$total.$t+"</a>";

      }

      ListAuthor= json.feed.entry[i].author[0].name.$t.split(" ");

      ListAuthor=ListAuthor.slice(0, 1).join(" ");

      AuthorPic = json.feed.entry[i].author[0].gd$image.src;

      //################### Date Format

      ListMonth= ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];

      ListDate= json.feed.entry[i].published.$t.substring(0,10);

                               Y = ListDate.substring(0, 4);

                              m = ListDate.substring(5, 7);

                               D = ListDate.substring(8, 10);

                               M = ListMonth[parseInt(m - 1)];                      

      ListUpdate= json.feed.entry[i].updated.$t.substring(0, 16);

                               YY = ListUpdate.substring(0, 4);

                              mm = ListUpdate.substring(5, 7);

                               DD = ListUpdate.substring(8, 10);

                               TT = ListUpdate.substring(11, 16);

                               MM = ListMonth[parseInt(mm - 1)];  

      //################### Thumbnail Check

      if (json.feed.entry[i].media$thumbnail)

      {

      thumbUrl = json.feed.entry[i].media$thumbnail.url;

      sk= thumbUrl.replace("/s72-c/","/s"+ImageSize+"/");

      ListImage= "'" + sk.replace("?imgmax=800","") + "'";

      }

      // YouTube scan

      else if (json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/) != null)

      {

          var youtube_id = json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/).pop();

         

          if (youtube_id.length == 11) {

              var ListImage = "'//img.youtube.com/vi/"+youtube_id+"/0.jpg'";

              }

      }

      else if (json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/) != null)

      {

      // Support For 3rd Party Images

      ListImage =  json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/)[1];

      }

      else

      {

      ListImage= "'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAGUfSnOl8Z80gfkB3nf4E6leIH9b9OTX5_A6kGYdeyDWGdLwiDFiBviv0bDAWrrvjSJCz_-CkNJYcTYjw1u7RpJBfat_lFl0hPlE_kv7AADKMtFU4PPpY8DM21SEgNMaR2xUN21hR6D0/s200/Icon.png'";

      }

      //###################  Printing List

      var listing = "<li><div class='flex-div'><div class='iFeatured'><a  href="

      + ListUrl+

        "><img src="

      +ListImage+

      "/></a></div><div class='iline'><span class='iauthor'><img class='iauthorpic' src='"+AuthorPic+"'/>"

      +ListAuthor+

      "</span><span class='icomments'>"

      +ListComments +

      "</span> <span class='idate'>"

      + D +

      " "

      + M +

      "</span></div><a class='mbttitle' href="

      +ListUrl+

      "target='_blank'>"

      +ListTitle+

      "</a></div></li>";

      document.write(listing);

      } }

      <!-- #### Invoking the Callback Function #### -->

      document.write("<script src='"+ListBlogLink+"/feeds/posts/default/-/"+ListLabel+"?alt=json-in-script&callback=mbtslide'></"+"script>");

      </script>

      </ul></div>

      Changing the following control options will help you customize blogger sider:


      • animation: You can select two values here. "slide" or "fade"

      • slideshowSpeed: You can set the speed of the slideshow cycling, in milliseconds

      • animationSpeed: You can also set the speed of animations, in milliseconds

      • pauseOnHover: Pause the slideshow when hovering over slider, then resume when no longer hovering

      • If you don't want to use the title then delete the yellow highlighted code.

      • ListBlogLink : Insert your Blog URL here

      • ListCount : Decide how many posts do you wish to display.

      • ListLabel : Insert your blog label here. Remember that labels are case sensitive. Therefore type it exactly as it is shown in your browser address bar.

      • TitleCount : Choose how many characters to display in slide title.

      • ImageSize : You can control the resolution or aspect ratio of thumbnails by editing ImageSize = 600; where the value 600 means that you want your images to be within 600 x 600 pixels in dimension.

      • /-/"+ListLabel+" Delete this line if you wish to display latest posts of your blog without mentioning a label



    12. Click Save and you are all done!



    Need Help In Installing Automatic Featured Post Slider?



    I just hope you may find this cool slider widget useful and easy to apply. Let me know if you need any help during the installation process of this content slider. You are most welcomed to post your questions in the comment box below. In our next tutorial we will share how to create Random Posts Content Slider for blogger.


    Stay tuned and keep customizing your blog to take it to the next level! =)


    Blogger Carousel: Responsive & Dynamic Slider



    Blogger Carousel (BC) helps you to create dynamic slideshows to showcase your blog posts by a specific category/label. You can use carousels in Blogspot to automatically display a list of latest posts inside an animated cycle. Blogger carousel is a mobile responsive widget that adapts perfectly to different screen sizes because it supports multiple breakpoints. It uses Blogger JSON Feeds to dynamically display recent posts from any label you specify. It is a responsive basic carousel plugin created using FlexSlider by Woothemes. You can display multiple thumbnails organized horizontally inside the carousel with navigational controls.




    Blogger Carousel For Blogspot Blogs


    We have already shared two jQuery carousel sliders for blogspot blogs that you can add to your blog by reading the following tutorials:





    The difference between this carousel and the former is the use of single and multiple slides/items. Former sliders have a fixed width but this carousel can be stretched to as wide as possible depending on the width of the parent DIV.



    If you are interested to learn how these widgets and plugins are coded then please read my comprehensive guide below:



    What is Carousel?



    Carousels are also called as "sliders" or "slide shows". A Carousel displays a series of content items one at a time inside animated slides that move from left to right or vice versa depending on the language direction of the web page.



    Carousels are even used on homepages of corporate news agency sites such as New York Times, to display featured content and latest headlines from a specific category to their audience. 





    Web masters and bloggers often use carousels on homepage to draw the readers' attention to featured articles or products of the site. If you check our homepage, you will see a carousel featuring the recent seminars and workshops we conducted country wide.  





    A carousel surely helps to increase your page views and gives life to old articles that you wish to promote on your homepage. 


    Features Of Blogger Carousel


    Blogger Carousel is an advanced widget equipped with these features:


    1. Author Avatar - Unique!

    2. Displays recent posts dynamically inside Carousel. - Unique!

    3. Displays recent posts from a specific category/label.


      1. Slider with two animations: Slide & Fade

      2. Clickable Comments Count

      3. Custom Date Format in ribbon fashion - Unique!

      4. Clickable Animated Featured Image Thumbnails - Unique!

      5. Option to increase or decrease thumbnail Resolution - Unique!

      6. Support for Third-party Images and YouTube Video thumbnails - Unique!

      7. Title Length is adjustable



      Best Responsive Carousel For Blogger Blogs!



      The carousel automatically adjusts its item width and number of thumbnails to show in smartphones, tablets and desktop screens without effecting the UI. Multiple breakpoints are added to ensure the carousel fits device screen size just perfectly. This is why we call it as the best carousel for blogspot blogs! The same carousel is added by default to COPmo template.


      [ SMARTPHONES ]

      Responsive Blogger Carousel For Blogspot Blogs


      [ TABLETS / IPADS]

      Responsive Blogger Carousel For Blogspot Blogs


      [ DESKTOP / LAPTOPS ]

      Responsive Blogger Carousel For Blogspot Blogs


      Add Blogger Carousel To Blogspot


      If you want to add this featured content slider on your homepage then follow these easy steps:


      1. Go To Blogger > Template

      2. Backup your template

      3. Click "Edit HTML"

      4. Just below <head> tag paste the following JS and CSS source links:

        <script src='http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js' type='text/javascript'></script>

        <link href='http://fortawesome.github.io/Font-Awesome/assets/font-awesome/css/font-awesome.css' rel='stylesheet'/>

        <link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'/>

        <link href='https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.1/flexslider.min.css' rel='stylesheet' type='text/css'/>
        <script src='https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.6.1/jquery.flexslider.min.js' type='text/javascript'></script>

        Note: Do not add JQuery, FontAwesome or Oswald links in the code above to your template if you are already using them in your site.


      5. Next search ]]></b:skin> and just above it paste the following code:

        /*######### Blogger Carousel Stylesheet #############*/

        .mbtslides-title2{font-family:oswald; font-weight:normal;font-size:18px!important; border-bottom:2px solid rgb(144, 241, 40); color:#242729;width:90%; }#mbt-c{ margin:0px 5px; border:0;width:90%;}

        .flexslider .slides {list-style-type:none; margin:0px auto 10px auto;padding:0px;} #mbt-c li {color:#666; font-family:helvetica; font-size:12px; overflow:hidden; position:relative; padding-top: 10px; line-height: 1.6em;}#mbt-c .flex-control-nav{list-style:none outside none;position:absolute;top:-45px;right:5px;text-align:right;height:10px}

        .flexslider .flex-control-nav li{display:inline-block;margin:0 2px}

        .flexslider .flex-control-nav a{text-indent:9999px;display:block;width:10px;cursor:pointer;height:10px;background-color:#000;border:1px solid #000;border-radius:0!important}

        .flexslider .flex-control-nav a.flex-active{background-color:rgb(132, 219, 6);border:1px solid rgb(144, 241, 40)} #mbt-c .flex-div{margin:0px auto 20px auto; display:block; border-bottom:0px solid #eee; padding-bottom:20px!important; position:relative;} #mbt-c li a { color:#0080ff; text-decoration:none; } .flexslider i{color:#999; padding-right:5px; } .flexslider .iline{line-height:2em; margin-top:3px;} .flexslider .icontent{line-height:1.5em; margin-top:5px;} .flexslider div span{margin:0 5px 0 0; display:inline-block;font-weight: normal; } #mbt-c .mbttitle {font-family:oswald; font-size:13px; color:#666; font-weight:normal; text-decoration:none;} #mbt-c  .mbttitle:hover, .flexslider .itotal a:hover  {color:#333; text-decoration:none;}

        .flexslider .iedit a{text-decoration:none; color:#999; cursor:pointer}

        .flexslider .iedit:before, .flexslider .iauthor:before, .flexslider .itag:before, .flexslider .icomments:before, .flexslider .idate:before, .flexslider .itotal span:before{font-family:fontAwesome; position:relative; padding-right:8px; color:#999;} .flexslider .iauthorpic{width: 17px!important;height: 17px!important;border-radius: 50%; float: none; display: inline-block!important; margin:0px 0px 0px 0px; padding-right:3px; position:relative; top:3px;}

        #mbt-c .iFeatured{overflow:hidden;position:relative;margin:0 0px 10px 0;padding:0;width:120px;} .flexslider .iFeatured a {background: none; padding:0px; display: block;border:1px solid #eee;} #mbt-c .iFeatured img{width:100%!important; height:75px!important;-moz-transition:all .3s;-webkit-transition:all .3s;transition:all .3s; border-radius: 2px;} .flexslider .iFeatured:hover img{ opacity:1;   -moz-transform:scale(1.4);-webkit-transform:scale(1.4);transform:scale(1.4)} .flexslider .icomments a{color:#0080ff; font-family: arial;font-size:12px;} .flexslider .icomments a:hover{text-decoration:underline} .flexslider .icomments:before {content:'\f086'; padding:0px 3px 0px 7px; color:#84DB06;} .flexslider .idate {position: absolute;left: 0px;top: -7px; background: rgb(132, 219, 6);color: #fff;padding: 3px 4px;font-family: oswald;font-size: 11px;border: 1px solid rgb(144, 241, 40);} .flexslider .idate div{width:18px; line-height:1.6em; text-align:center;}

        .flexslider .idate:after {content: ' ';position: absolute;z-index:-9999px;width: 0;height: 0;left: 25px;top: -1px;border-width: 4px 6px;border-style: solid;border-color: transparent transparent rgb(125, 208, 4)  rgb(125, 208, 4);}


      6. Make these changes


        • To change the green color theme of the slider simply replace the green highlighted color codes with color of your choice. The color can be in rgb or #hexadecimal, both work. Use our  Color Code Generator.



      7. Save your template.

      8. Now go to Blogger > Layout

      9. Select "Add a Gadget"

      10. Choose "HTML/JavaScript" gadget

      11. Keep the title field empty and then paste the following code inside it:

        <script type="text/javascript">

          $(window).load(function() {

            $('#mbt-c').flexslider({

                animation: "slide",

                directionNav: false,

                 itemWidth: 120,

                itemMargin: 25,

               touch: true, 

               slideshowSpeed: 2500,

              pauseOnHover: true,

             animationSpeed: 700,

            });

          });

        </script>

        <h2 class="mbtslides-title2">Blogger Carousel!</h2>

        <div class="flexslider" id="mbt-c">

        <ul class="slides">

        <script type="text/javascript">

        //################### Defaults

        var ListBlogLink = "http://mybloggertricks.com";

        var ListCount = 9;

        var ListLabel = "Make Money Online";

        var TitleCount = 66;

        var ImageSize = 150;

        //################### Function Start

        function mbtcarousel(json) {

        for (var i = 0; i < ListCount; i++)

        { 

        //################### Variables Declared

        var listing= ListImage = ListUrl = ListTitle = ListImage = ListContent = ListConten = ListAuthor = ListTag = ListDate = ListUpdate = ListComments = thumbUrl = TotalPosts = sk = AuthorPic= ListMonth = Y = D = M = m = YY = DD = MM = mm = TT =  "";

        //################### Category

        if (json.feed.entry[i].category != null)

        {

        for (var k = 0; k < json.feed.entry[i].category.length; k++) {

        ListTag += "<a href='"+ListBlogLink+"/search/label/"+json.feed.entry[i].category[k].term+"'>"+json.feed.entry[i].category[k].term+"</a>";

        if(k < json.feed.entry[i].category.length-1)

        { ListTag += " ";}

        }

        }

        //################### URL

        for (var j = 0; j < json.feed.entry[i].link.length; j++) {

              if (json.feed.entry[i].link[j].rel == 'alternate') {

                break;

              }

            }

        ListUrl= "'" + json.feed.entry[i].link[j].href + "'";

        //################### Info

        TotalPosts = json.feed.openSearch$totalResults.$t;

        if (json.feed.entry[i].title!= null)

        {

        ListTitle= json.feed.entry[i].title.$t.substr(0, TitleCount);

        }

        if (json.feed.entry[i].thr$total)

        {

        ListComments= "<a href='"+json.feed.entry[i].link[j].href+"#comment-form'>"+json.feed.entry[i].thr$total.$t+"</a>";

        }

        ListAuthor= json.feed.entry[i].author[0].name.$t.split(" ");

        ListAuthor=ListAuthor.slice(0, 1).join(" ");

        AuthorPic = json.feed.entry[i].author[0].gd$image.src;

        //################### Date Format

        ListMonth= ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];

        ListDate= json.feed.entry[i].published.$t.substring(0,10);

                                 Y = ListDate.substring(0, 4);

                                m = ListDate.substring(5, 7);

                                 D = ListDate.substring(8, 10);

                                 M = ListMonth[parseInt(m - 1)];                      

        ListUpdate= json.feed.entry[i].updated.$t.substring(0, 16);

                                 YY = ListUpdate.substring(0, 4);

                                mm = ListUpdate.substring(5, 7);

                                 DD = ListUpdate.substring(8, 10);

                                 TT = ListUpdate.substring(11, 16);

                                 MM = ListMonth[parseInt(mm - 1)];  

        //################### Thumbnail Check

        if (json.feed.entry[i].media$thumbnail!=null)

        {

        thumbUrl = json.feed.entry[i].media$thumbnail.url;

        sk= thumbUrl.replace("/s72-c/","/s"+ImageSize+"/");

        ListImage= "'" + sk.replace("?imgmax=800","") + "'";

        }

        // YouTube scan

        else if (json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/) != null)

        {

            var youtube_id = json.feed.entry[i].content.$t.match(/youtube\.com.*(\?v=|\/embed\/)(.{11})/).pop();

           

            if (youtube_id.length == 11) {

                var ListImage = "'//img.youtube.com/vi/"+youtube_id+"/0.jpg'";

                }

        }

        else if (json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/) != null)

        {

        // Support For 3rd Party Images

        ListImage =  json.feed.entry[i].content.$t.match(/src=(.+?[\.jpg|\.gif|\.png]")/)[1];

        }

        else

        {

        ListImage= "'https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAGUfSnOl8Z80gfkB3nf4E6leIH9b9OTX5_A6kGYdeyDWGdLwiDFiBviv0bDAWrrvjSJCz_-CkNJYcTYjw1u7RpJBfat_lFl0hPlE_kv7AADKMtFU4PPpY8DM21SEgNMaR2xUN21hR6D0/s200/Icon.png'";

        }

        //###################  Printing List

        var listing = "<li><div class='flex-div'><div class='iFeatured'><a  href="

        + ListUrl+

          "><img src="

        +ListImage+

        "/></a></div><a class='mbttitle' href="

        +ListUrl+

        "target='_blank'>"

        +ListTitle+

        "</a><div class='iline'><span class='iauthor'><img class='iauthorpic' src='"+AuthorPic+"'/>"

        +ListAuthor+

        "</span><span class='icomments'>"

        +ListComments +

        "</span> <span class='idate'><div>"

        + D +

        "</div><div> "

        + M +

        "</div></span></div></div></li>";

        document.write(listing);

        } }

        <!-- #### Invoking the Callback Function #### -->

        document.write("<script src='"+ListBlogLink+"/feeds/posts/default/-/"+ListLabel+"?alt=json-in-script&callback=mbtcarousel'></"+"script>");

        </script>

        </ul></div>

        The following control options will help you modify the widget:


        • slideshowSpeed: You can set the speed of the slideshow cycling, in milliseconds

        • animationSpeed: You can also set the speed of animations, in milliseconds

        • pauseOnHover: Pause the slideshow when hovering over slider, then resume when no longer hovering

        • You can edit the widget title by editing: Blogger Carousel!

        • If you don't want to use the title then delete the yellow highlighted code.

        • ListBlogLink : Insert your Blog link here

        • ListCount : Decide how many posts do you wish to display.

        • ListLabel : Insert your blog label/category here. Remember that labels are case sensitive. Therefore type it exactly as it is shown in your browser address bar. If your label is "blogging" and if you type it as "Blogging" then it wont work. You must make sure that all letters are written in correct cases.

        • TitleCount : Choose how many characters to display in post title.

        • ImageSize : You can control the resolution or aspect ratio of thumbnails by editing ImageSize = 150; where the value 150 means that you want your images to be within 150 x 150 pixels in size.



      12. Click Save and you are all done!



      Let us help you with installation of Blogger Carousel!


      Let me know if you need any help or clarification related to any step above. Adding carousel to your blogs will surely increase your pageviews and overall ad impressions. AdSense revenue does surely increase when users visit multiple pages. This recent posts carousel is indeed the best featured content slider to boost your website pageviews significantly and help in reducing bounce rate. Add this carousel to your blogs and let me know if you need any help. Good luck! =)