Smooth Jquery Featured Post Slideshow For Blogger

Monday, February 4, 2013

This unique tutorial will shows you how to add featured content summary to show your featured post to your readers. This unique slideshow is very easy to setup and can easily process width and height to match your template. All of them with you can change the speed of this summary easily. Default width is 550px and Default height is normally 200px. I think you will love this summary. You can see the DEMO of this widget after this.

1.Login to your blogger dashboard--> layout- -> Edit HTML

2.Scroll down to where you see </head> tag .

3.Copy below code and paste it just before the </head> tag .

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

/* ------------------------------------------------------------------------
 s3Slider

 Developped By: Boban Karišik -> http://www.serie3.info/
 CSS Help: Mészáros Róbert -> http://www.perspectived.com/
 Version: 1.0

 Copyright: Feel free to redistribute the script/modify it, as
      long as you leave my infos at the top.
-------------------------------------------------------------------------- */

(function($){

$.fn.s3Slider = function(vars) {

 var element     = this;
 var timeOut     = (vars.timeOut != undefined) ? vars.timeOut : 4000;
 var current     = null;
 var timeOutFn   = null;
 var faderStat   = true;
 var mOver       = false;
 var items       = $("#" + element[0].id + "Content ." + element[0].id + "Image");
 var itemsSpan   = $("#" + element[0].id + "Content ." + element[0].id + "Image span");

 items.each(function(i) {

     $(items[i]).mouseover(function() {
        mOver = true;
     });

     $(items[i]).mouseout(function() {
         mOver   = false;
         fadeElement(true);
     });

 });

 var fadeElement = function(isMouseOut) {
     var thisTimeOut = (isMouseOut) ? (timeOut/2) : timeOut;
     thisTimeOut = (faderStat) ? 10 : thisTimeOut;
     if(items.length > 0) {
         timeOutFn = setTimeout(makeSlider, thisTimeOut);
     } else {
         console.log("Poof..");
     }
 }

 var makeSlider = function() {
     current = (current != null) ? current : items[(items.length-1)];
     var currNo      = jQuery.inArray(current, items) + 1
     currNo = (currNo == items.length) ? 0 : (currNo - 1);
     var newMargin   = $(element).width() * currNo;
     if(faderStat == true) {
         if(!mOver) {
             $(items[currNo]).fadeIn((timeOut/6), function() {
                 if($(itemsSpan[currNo]).css('bottom') == 0) {
                     $(itemsSpan[currNo]).slideUp((timeOut/6), function() {
                         faderStat = false;
                         current = items[currNo];
                         if(!mOver) {
                             fadeElement(false);
                         }
                     });
                 } else {
                     $(itemsSpan[currNo]).slideDown((timeOut/6), function() {
                         faderStat = false;
                         current = items[currNo];
                         if(!mOver) {
                             fadeElement(false);
                         }
                     });
                 }
             });
         }
     } else {
         if(!mOver) {
             if($(itemsSpan[currNo]).css('bottom') == 0) {
                 $(itemsSpan[currNo]).slideDown((timeOut/6), function() {
                     $(items[currNo]).fadeOut((timeOut/6), function() {
                         faderStat = true;
                         current = items[(currNo+1)];
                         if(!mOver) {
                             fadeElement(false);
                         }
                     });
                 });
             } else {
                 $(itemsSpan[currNo]).slideUp((timeOut/6), function() {
                 $(items[currNo]).fadeOut((timeOut/6), function() {
                         faderStat = true;
                         current = items[(currNo+1)];
                         if(!mOver) {
                             fadeElement(false);
                         }
                     });
                 });
             }
         }
     }
 }

 makeSlider();

};

})(jQuery);

//]]>
</script>
<script type='text/javascript'>
$(document).ready(function() {
$('#s3slider').s3Slider({
timeOut: 4000
});
});
</script>
<style type='text/css'>
#s3slider {
background:#000000;
border:1px solid #818e8f;
width: 550px;
height: 200px;
position: relative;
overflow: hidden;
}
#s3sliderContent {
width: 550px;
position: absolute;
top:0px;
padding: 0px;
margin: 0px;
}
.s3sliderImage {
float: left;
position: relative;
display: none;
}
.s3sliderImage span {
position: absolute;
left: 0;
font: 20px Trebuchet MS, sans-serif;
padding: 10px 0px;
width: 550px;
background-color: #000;
filter: alpha(opacity=80);
-moz-opacity: 0.8;
-khtml-opacity: 0.8;
opacity: 0.8;
color: #fff;
display: none;
bottom: 0;
text-align:center;
}
.clear {
clear: both;
}
</style>

 NOTE : To change the speed of slideshow, change the value 4000.
4.Save your template.
5.Now go to Layout-->Page Element and click on "Add a gadget".
6.Select "html/java script" and add the code given below and click save.


<div id="s3slider">
<ul id="s3sliderContent">

<li class="s3sliderImage"><a href="YOUR-LINK-HERE"><img style="width:550px;height:200px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrTCBPF7O-p-BeWrQmXo5Mc9oZKDZmW_hQJIZZbIcfo0LS4B8MthEuP8kMTXc31XVTF1ua7b1KPDZL7vROsEc4H3GHt8KYC32aQGNhsjzHURfTwTel4F6Dr_skEPspqGU8IZw4xQAL0kwj/s1600/Crysis-11.jpg" /><span>Crysis : Download Full Version</span></a></li>

<li class="s3sliderImage"><a href="YOUR-LINK-HERE"><img style="width:550px;height:200px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0zwIitwDNPS_tW5WPb_MWDoLEOC4ORBegSFLNMzJ47sxWAXH7CKVDYc4nLFvRA7NLg26HRsgfEYJhVRxr4ms-Op_1hbmi9LBKUkAczTaaaDh55g_hexZyF8A6Tjxe1EMfeqE2whA7tkJ9/" /><span>Halo 3 : Play Game Online</span></a></li>

<li class="s3sliderImage"><a href="YOUR-LINK-HERE"><img style="width:550px;height:200px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5tKOnogfMQq4L60Y6-Bi6eet5Dfvo-beU5VuF5HaAPCgeMzVKBiqntxSPHsKK568tux2hTxqyfeDA4F_8W7LsxYTa1n3z89WLHy-6gxUUa5cUshWNOvhsdUbVoQvUjoDVoluiy1nMnAP1/" /><span>Avatar : Watch Movie Now !!!</span></a></li>

<li class="s3sliderImage"><a href="YOUR-LINK-HERE"><img style="width:550px;height:200px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWl2-fxYTq_5U5pjwy-xOYKHX8Ik5JCenUofoGpkA3uqBqVD9Jie3mJOgQ0AtFFEHNTSUNm9UsuEc2cVYVpx8Jct6_hLiSFb-QWUb3dMnDkHtmdIQ3HuL_n6AP8vF11RTU1LBMw_cLlYbq/s1600/call+of+duty-11.jpg" /><span>Call Of Duty 4 : Get Here</span></a></li>

<li class="s3sliderImage"></li>
</ul>
</div>

<div class='clear'></div>


NOTE : Replace YOUR-LINK-HERE and images with your content.
Now you have successfully installed this slide show to your site.

3 comments:

Anonymous said...

Αрple deѕigns Macѕ, the beѕt way to actually ρіcκ up the tech juggernaut's latest iphone. Graphics and sound quality? Chief Operating Officer Tim Cook said that" we only want a manageable number of products we can invest in an incredible amount of care". Virtual Iphone developers you hire are, for all of its amazing features? You need to use special equipment to blank the chips in fact, it comes off as anything but. Google and Apple may not be getting as much battery life as you could if you updated.

Anonymous said...

Hence, everу night they have to do is to embrаce an online portal that offers
a large library οf gamеs, movieѕ, televiѕion sеries, about tωо broκen men іs sеt against a rugby backdroρ.


Feеl free to νisit my web pagе - phim hay

Anonymous said...

Seuss you ωant to lеarn how to banh trung thu baκe a family favoгіte?
This mixіng step iѕ veгy impοrtаnt to preheat the оvеn to a tempeгature of
375 ԁegrеes. This cаn allοw you to make your weddіng еxpеrienсе and memories, thаt muсh more
timе.

Post a Comment

please put you comment to tips and tricks 2013