How To Add Smart Jquery Featured Slider to Blogger/Websites



















UPDATE: I updated some of my posts, this post I update 17+ Featured Content Slider for Blogger Using jQuery ..........






Instructions To Follow:

STEP #1
Log in to Blogger, go to Layout -> Edit HTML
and mark the tick box "Expand Widget Templates"

STEP #2
Now find (CTRL+F) this code in the template:
</head>
And immediately before it, paste this code:




<script src='http://bnote.googlecode.com/files/jquery-1.2.6.min.js' type='text/javascript'></script>
<script src='http://bnote.googlecode.com/files/jquery.jcarousel.pack.js' type='text/javascript'></script>
<script src='http://bnote.googlecode.com/files/jquery-ui-personalized-1.5.2.packed.js' type='text/javascript'></script>

<script type="text/javascript">
jQuery(document).ready(function() {
jQuery('#mycarousel').jcarousel({
wrap:"both",
scroll:2,
animation:"slow"
});
function mycarousel_initCallback(carousel) {
jQuery('#featured-next-button').bind('click', function() {
carousel.next();
return false;
});

jQuery('#featured-prev-button').bind('click', function() {
carousel.prev();
return false;
});
jQuery('.button-nav span').bind('click', function() {
carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
return false;
});
};
jQuery('#feature-carousel').jcarousel({
wrap:"both",
scroll:1,
auto:10,
initCallback: mycarousel_initCallback,
buttonNextHTML: null,
buttonPrevHTML: null
});

});
</script>

<style type="text/css">
.jcarousel-skin-tango .jcarousel-container {-moz-border-radius: 10px;}

.jcarousel-skin-tango .jcarousel-container-horizontal {width: 941px;margin: 0 auto;padding:0 20px;}

.jcarousel-skin-tango .jcarousel-clip-horizontal {width: 941px;height: 254px;}
.jcarousel-skin-tango .jcarousel-item {width: 307px;height: 254px;}
.jcarousel-skin-tango .jcarousel-item-horizontal {margin-right: 10px;}
.jcarousel-skin-tango .jcarousel-item-placeholder {background: #fff;color: #000;}

.jcarousel-skin-tango .jcarousel-next-horizontal {
background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio7TI2Qot13aFA3IvktFPZuU71Zeusw-YOatXVbkRUCrnfR2SHDkshSX8p_HDqFLbfPsA56xLEZP8hlfFfpniWR34xobuhCo3Y5V_BQasdMvIAU0mjOGca5fnjFiXyswiiqFMIwP5t0tje/s1600/image-slider-button.png) no-repeat scroll -46px 0;
cursor:pointer;
height:254px;
right:20px;
position:absolute;
top:0;
width:46px;
}

.jcarousel-skin-tango .jcarousel-prev-horizontal {
background:transparent url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEio7TI2Qot13aFA3IvktFPZuU71Zeusw-YOatXVbkRUCrnfR2SHDkshSX8p_HDqFLbfPsA56xLEZP8hlfFfpniWR34xobuhCo3Y5V_BQasdMvIAU0mjOGca5fnjFiXyswiiqFMIwP5t0tje/s1600/image-slider-button.png) no-repeat scroll 0 0;
cursor:pointer;
height:254px;
left:20px;
position:absolute;
top:0;
width:46px;
}

.jcarousel-container {position: relative;}
.jcarousel-clip {z-index: 2;padding: 0;margin: 0;overflow: hidden;position: relative;}
.jcarousel-list {z-index: 1;overflow: hidden;position: relative;top: 0;left: 0;margin: 0;padding: 0;}
.jcarousel-list li,.jcarousel-item {float: left;list-style: none;width: 75px;height: 75px;}
.jcarousel-next {z-index: 3;display: none;}
.jcarousel-prev {z-index: 3;display: none;}

#news-slider{background-color:#FFFFFF;padding:20px 0;}
#news-slider img{border:none;height:254px;width:307px;}
</style>





Now click Save Template








STEP #3 Log in to Blogger, go to Layout




page-elements

Add a Gadget of HTML/JavaScript type.



image
Then add this code in to it:.



<div id='news-slider'>
<ul class='jcarousel-skin-tango' id='mycarousel'>
<li><a href='SLIDE-1-LINK-HERE'><img src='SLIDE-1-IMAGE-ADDRESS-HERE'/></a></li>
<li><a href='SLIDE-2-LINK-HERE'><img src='SLIDE-2-IMAGE-ADDRESS-HERE'/></a></li>
<li><a href='SLIDE-3-LINK-HERE'><img src='SLIDE-3-IMAGE-ADDRESS-HERE'/></a></li>
<li><a href='SLIDE-4-LINK-HERE'><img src='SLIDE-4-IMAGE-ADDRESS-HERE'/></a></li>
<li><a href='SLIDE-5-LINK-HERE'><img src='SLIDE-5-IMAGE-ADDRESS-HERE'/></a></li>
</ul>
</div>




NOTE : Replace,


SLIDE-X-LINK-HERE with your real featured posts links.


SLIDE-X-IMAGE-ADDRESS-HERE with your real slide images addresses.


Look at the example below:
<div id='news-slider'>
<ul class='jcarousel-skin-tango' id='mycarousel'>
<li><a href='#'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXqvo9MQyDT8kVepqq23MQuGCNbztmH7oQN1ragCzYsVjUkdG8IpKfjhUQbkoxAtXUFh3H0zxm9AJKT3HQVjGBxX7mBNkqwMZuWbbNqbowFr2iu1fYfWtun0wmI-WaNef8uwpsufLQNfl_/s1600/slide1.jpg'/></a></li>
<li><a href='#'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgolgeUZnzCSVOGLIapgWc3W4JewnVTeTSNAX3L3MZlyJiVPFaZvDGAhiKsFeH7GAj64U9wXzCrv9N9hWBTM6XfBo4UXSkTnQbI8nC8wiDYU6wXxWg6UhesXQdvpFO6-wIOe5gHsUy2bwZy/s1600/slide2.jpg'/></a></li>
<li><a href='#'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhyAedLORRvcm6U36PgGLufGR289WiSNcIbnoVdLKpmbF7IPFPID2yKoTVbexrMj0i64-mmcTrYcWSNmcJNSJht59edFPI5q_31NWVeIrKKyEhuzx87XOfllW3WLnzfoLxkoU_sW56M2h7C/s1600/slide3.jpg'/></a></li>
<li><a href='#'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3k3NwF6BSVkOW3sGjL8aKp4PZswzxzrslMj4bamVeurEhw0LAE7uRMBQt7UaZb_MAdWu8LPwqozp-f-CZrHJxKgHK2bAavEkKp3-mVD2rT6IKbD4gSWAJpRMem3e8luGnChAiHSN3xhmZ/s1600/slide4.jpg'/></a></li>
<li><a href='#'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjEiZY9LgVpfPMOwfFBAqnlP9k_oZefnfrRp_vn6DNN7v9374JqNft_xaHAurg_z4RCs1PG7mFaEL4kAFYzKDN0ULOb1-Wisv4_l10MkgwWjwfcqU4r5YDXUEdgB7pS23QIlv95k1IQcj1F/s1600/slide5.jpg'/></a></li>
</ul>
</div>






You are done.






Previous
Next Post »