12 October 2012

Add Moving Featured Post Slider Widget On Blogger

moving featured post  sliderAre you looking for a featured post section in your Blogger blog? You would have probably noticed that featured sections in the WordPress blogs quite often. People normally use this section to show their top performing posts, so that they get a further boost up by those extra impressions. As many people tend to read the featured posts, this widget works quite well.But in this tutorial we would discuss about something new kind of featured post widget,moving featured post slider widget.So here is the tutorial.

 Must Read :   Secure Your Blogger Blog

Add Featured Post Slider on Blogger

  • Log on to your blogger dashboard
  • Go to your Layout  tab.
  • Click on "Add a Widget" then select "HTML/JavaScript" Widget.
  •  Copy and Paste the following code inside the Widget.

<script type="text/javascript"> /*********************************************** * Conveyor belt slideshow script- © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code * Customized by www.techtrickhome.com ***********************************************/ //Specify the slider's width (in pixels) var sliderwidth="960px" //Specify the slider's height var sliderheight="150px" //Specify the slider's slide speed (larger is faster 1-10) var slidespeed=2 //configure background color: slidebgcolor="#ffffff" //Specify the slider's images var leftrightslide=new Array() var finalslide='' leftrightslide[0]='<a href="Your-Link"><img style="border:1px solid #ddd;" src="Your-Image" border=1></a>' leftrightslide[1]='<a href="Your-Link"><img style="border:1px solid #ddd;" src="Your-Image" border=1></a>' leftrightslide[2]='<a href="Your-Link"><img style="border:1px solid #ddd;" src="Your-Image" border=1></a>' leftrightslide[3]='<a href="Your-Link"><img style="border:1px solid #ddd;" src="Your-Image" border=1></a>' leftrightslide[4]='<a href="Your-Link"><img style="border:1px solid #ddd;" src="Your-Image" border=1></a>' //Specify gap between each image (use HTML): var imagegap=" " //Specify pixels gap between each slideshow rotation (use integer): var slideshowgap=5 ////NO NEED TO EDIT BELOW THIS LINE//////////// var copyspeed=slidespeed leftrightslide='<nobr>'+leftrightslide.join(imagegap)+'</nobr>' var iedom=document.all||document.getElementById if (iedom) document.write('<span id="temp" style="visibility:hidden;position:absolute;top:-100px;left:-9000px">'+leftrightslide+'</span>') var actualwidth='' var cross_slide, ns_slide function fillup(){ if (iedom){ cross_slide=document.getElementById? document.getElementById("test2") : document.all.test2 cross_slide2=document.getElementById? document.getElementById("test3") : document.all.test3 cross_slide.innerHTML=cross_slide2.innerHTML=leftrightslide actualwidth=document.all? cross_slide.offsetWidth : document.getElementById("temp").offsetWidth cross_slide2.style.left=actualwidth+slideshowgap+"px" } else if (document.layers){ ns_slide=document.ns_slidemenu.document.ns_slidemenu2 ns_slide2=document.ns_slidemenu.document.ns_slidemenu3 ns_slide.document.write(leftrightslide) ns_slide.document.close() actualwidth=ns_slide.document.width ns_slide2.left=actualwidth+slideshowgap ns_slide2.document.write(leftrightslide) ns_slide2.document.close() } lefttime=setInterval("slideleft()",30) } window.onload=fillup function slideleft(){ if (iedom){ if (parseInt(cross_slide.style.left)>(actualwidth*(-1)+8)) cross_slide.style.left=parseInt(cross_slide.style.left)-copyspeed+"px" else cross_slide.style.left=parseInt(cross_slide2.style.left)+actualwidth+slideshowgap+"px" if (parseInt(cross_slide2.style.left)>(actualwidth*(-1)+8)) cross_slide2.style.left=parseInt(cross_slide2.style.left)-copyspeed+"px" else cross_slide2.style.left=parseInt(cross_slide.style.left)+actualwidth+slideshowgap+"px" } else if (document.layers){ if (ns_slide.left>(actualwidth*(-1)+8)) ns_slide.left-=copyspeed else ns_slide.left=ns_slide2.left+actualwidth+slideshowgap if (ns_slide2.left>(actualwidth*(-1)+8)) ns_slide2.left-=copyspeed else ns_slide2.left=ns_slide.left+actualwidth+slideshowgap } } if (iedom||document.layers){ with (document){ document.write('<table border="0" cellspacing="0" cellpadding="0"><td>') if (iedom){ write('<div style="position:relative;width:'+sliderwidth+';height:'+sliderheight+';overflow:hidden">') write('<div style="position:absolute;width:'+sliderwidth+';height:'+sliderheight+';background-color:'+slidebgcolor+'" onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed">') write('<div id="test2" style="position:absolute;left:0px;top:0px"></div>') write('<div id="test3" style="position:absolute;left:-1000px;top:0px"></div>') write('</div></div>') } else if (document.layers){ write('<ilayer width='+sliderwidth+' height='+sliderheight+' name="ns_slidemenu" bgColor='+slidebgcolor+'>') write('<layer name="ns_slidemenu2" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>') write('<layer name="ns_slidemenu3" left=0 top=0 onMouseover="copyspeed=0" onMouseout="copyspeed=slidespeed"></layer>') write('</ilayer>') } document.write('</td></table>') } } <a style="font-size:10px; font-weight:bold; color:#3B78CD; text-decoration:underline;" href='http://www.ravisaive.in/' target='_blank'>Ravi Saive</a> </script>


  • Be sure to change the width(red coloured) in the script according to your blog width
  • Also before adding your picture url must resize their height according to this slider height(pink coloure) before upload.
  • If you don't want any border betwwen post images then must change border 1px to 0px on the above script.
  • If you want to add more post then just repeat that step on the above script "leftrightslide[4]='<a href="Your-Link"><img style="border:1px solid #ddd;" src="Your-Image" border=1></a>'"
  • Replace Links and Images with your own as shown in color Blue and grey.
  • To change moving speed of Slidshow change number as shown in Orange colour.

Now save it and you're done.

 Must Read :  Add Page Peel Effect on Blogger

If facing  any problem ,don't hesitate to ask using the comment box below.

Articles You May Like

18 comments: Leave Your Comments

  1. Replies
    1. what du u mean by this "dont work at all"?Where r u facing problem?

    2. It is working here smoothly :)

    3. Yup,Gagan is absolutely right.You can check our home page as a demo. :)

  2. Hi
    i want to add attribution gadget in my blog
    help me out
    my blog is http://pakindiafash.blogspot.com

  3. oh ho nyc post bt not working

  4. Thank you so much for this, i guess this will improve my website to rank your website on google

  5. Nice post. Bookmarked. It helped me very much. I think it can be a great lesson for the beginners.

  6. Totally not workin' for me. Not sure what I'm doing wrong :(

  7. how to approve AdSense account

  8. This site is nice!!
    To design web sites or making blogs here many information is there.
    I am using this code in my Blog Free Mcx Tips , Free Stock Tips
    By Mcx Tips , Stock Tips

  9. thanks