Today I'm going to publish a Simple Responsive Slider for blogger blogs. As you may already noticed in the title that this a responsive sliderBut let me explain about it what is a responsive slider responsive slider is a slider widget which can adapt it's size to the resolution of the browser. It's easy to add and use. The main features of this slider is it's responsive, easy to use and the size of the script is just
OK, That's enough ;)
you can check the responsiveness of the widget using the live demo given below.
Stay Tuned...
Thanks Buddies ;)
1kb
So, It's easy to load. :DOK, That's enough ;)
you can check the responsiveness of the widget using the live demo given below.
Live Demo:-
How To Add Responsive Slider Widget To Your Blog
- Go to
Layout
>>Add A Gadget
, then chooseHTML/JavaScript
- Paste this code inside it.If your blog already have a jQuery Plugin then remove the highlighted code.
(<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
)<style type='text/css'> .btnt-slider { margin: 30px auto; max-width: 850px; padding: 0 20px; } .rslides { list-style: none outside none; margin: 0 auto; max-height: 400px; max-width: 800px; overflow: hidden; padding: 0; position: relative; width: 100%; } .rslides li { -webkit-backface-visibility: hidden; position: absolute; border: 5px solid #555; display: none; left: 0; top: 0; margin: 0; padding: 0; list-style: none; } .rslides img { display: block; height: auto; float: left; width: 100%; border: 0; margin: 0; max-width: 100%; } ul.rslides .rslides_nav { height: 30px; position: absolute; text-indent: -99999px; top: 45%; width: 30px; z-index: 9999; display: none; } ul.rslides:hover .rslides_nav { display: block; } .prev { background: url("http://i1203.photobucket.com/albums/bb382/chandeep10/btnt-custom-theme/arrows_zps95b22e18.png") repeat scroll 0 0 transparent; float: left; left: 15px; } .next { background: url("http://i1203.photobucket.com/albums/bb382/chandeep10/btnt-custom-theme/arrows_zps95b22e18.png") repeat scroll right 0 transparent; float: right; right: 15px; } </style> <script type='text/javascript'> /*<![CDATA[*/ $(function() { $(".rslides").responsiveSlides({ auto: true, speed: 500, timeout: 3000, nav: true, pause: true, prevText: "Previous", nextText: "Next", navContainer: "ul.rslides", }); }); /*]]>*/</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src='https://dl.dropboxusercontent.com/u/36169749/scripts/widgets/btnt-responsive-slider.js' type='text/javascript'></script> <div class="btnt-slider"> <ul class="rslides"> <li><a href="http://www.blogtipsntricks.com/"><img alt="" src="http://img-url.com/" /></a></li> <li><a href="http://www.blogtipsntricks.com/"><img alt="" src="http://img-url.com/" /></a></li> <li><a href="http://www.blogtipsntricks.com/"><img alt="" src="http://img-url.com/" /></a></li> </ul> </div> - After Adding the above code Replace
http://www.blogtipsntricks.com/
with your link - Then Replace
http://img-url.com/
with the image link you want to show in the slider - Now save the widget and See your blog. Simple Right? :D
To Show The Slider Only On Homepage
If you want to show the slider widget only on homepage then add the above slider code in-between the following code.<b:if cond='data:blog.url == data:blog.homepageUrl'><!-- SLIDER WIDGET CODE GOES HERE --></b:if>
FINAL WORDS...
Please let me know your views about this widget through comment and do share it with your friends. And I'm Really sorry for infrequent posting. From Now On I hope I'll publish frequent articles, widgets, templates and much more...Stay Tuned...
Thanks Buddies ;)