Smooth Jquery Featured Post Slideshow For Blogger
1. Login to your blogger dashboard--> Template- -> 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[/* ------------------------------------------------------------------------s3SliderDevelopped By: Boban Karišik -> http://www.serie3.info/CSS Help: Mészáros Róbert -> http://www.perspectived.com/Version: 1.0Copyright: Feel free to redistribute the script/modify it, aslong 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) + 1currNo = (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--> 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:650px;height:300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfdTQBstg2fCutPUgkHFVdB3FIOqL9f5OUrvJ3c06LVZGy6UHNaLwLfS9tj1tIFGdXrEra9YNt1eNW2pzidfAF7RKNr0ajp0mBraRRovSVZtHw-hNdHIHz-kyVY2NNTN09bHOXwhgYVxIb/s1600/screen1.jpg" /><span>Fish Dom 2</span></a></li><li class="s3sliderImage"><a href="YOUR-LINK-HERE"><img style="width:650px;height:300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcMasQypJTR5A7tkHGTpGmosmdrpUWTo2T6WGF7_yIYYfuRT1fxWXVzMHS0eqwTyWgW19kcpKxVvA9AIiBoKlcootEyuIVx-paQfnl1KJFzNvL1osM9Pbnn1k1iqz60i-GZMucf87YyqgG/s1600/Mini+Racing+3D.jpg" /><span>Mini Racing 3D</span></a></li><li class="s3sliderImage"><a href="YOUR-LINK-HERE"><img style="width:650px;height:300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOVtmPWxSdwZ06HQw0MONS27CgaWfHu_Qu73bBwCPHQd_JN1OHJey2x1CkEjFgazA4JiDxASQ1jSG_fDYxYKqMk3lkdYCkREkO_zsMc37uRSoVoEaTtkLsagYdjY90-JkXVM2ezq9CI3ha/s1600/galaxy-life.jpg" /><span>Galaxy Life</span></a></li><li class="s3sliderImage"><a href="YOUR-LINK-HERE"><img style="width:650px;height:300px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfdTQBstg2fCutPUgkHFVdB3FIOqL9f5OUrvJ3c06LVZGy6UHNaLwLfS9tj1tIFGdXrEra9YNt1eNW2pzidfAF7RKNr0ajp0mBraRRovSVZtHw-hNdHIHz-kyVY2NNTN09bHOXwhgYVxIb/s1600/screen1.jpg" /><span>Fish Dom 2</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.
Comments
Post a Comment
-Berkomentarlah yang baik dan rapi.
-Menggunakan link aktif akan dihapus.