In this tutorial im gonna explain, how to add jQuery photo slider for blogger. This will be really cool with blogger. You can add it above to your blogger post with nice looking images with links to your blog post.For this slider we are using jQuery and jquery-easing effects. Check below link for demo.Its not hard to add to your blog. Get my earlier slideshow
1. Log in to blogger account and Click drop down.
2. Now select "Template" Like Below.
3. Now you can see Live on blog, Click EDIT HTML Button"
4. Now click Proceed button.
5. Find this tag by using Ctrl+F ]]></b:skin>
6. Paste below code Before ]]></b:skin> tag
/* slider www.bloggertrix.com*/ .jimgMenu { position: relative; width: 670px; height: 200px; overflow: hidden; margin: 25px 0px 0px; } .jimgMenu ul { list-style: none; margin: 0px; display: block; height: 200px; width: 1340px; } .jimgMenu ul li { float: left; } .jimgMenu ul li a { text-indent: -1000px; background:#FFFFFF none repeat scroll 0%; border-right: 2px solid #fff; cursor:pointer; display:block; overflow:hidden;javascript:; width:78px; height: 200px; } .jimgMenu ul li.landscapes a { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibiWGWqBoeXLXGbxC55rFrfMwvNAQLezhnAtyknQzSuDx1UULZiJ_Q2zOxWSpv3pL2-klzD8rcQt3pyVGwrmFzb4yqmOTY8mdvCR87MxdHQe-VohXg9KlMJY-_G80c99eKTjZ_QRprdfI/s1600/abstract.png) repeat scroll 0%; } .jimgMenu ul li.people a { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM5mSBZNVI4MnFnukh9Oujsw2kWEPuViPsmm4JBVAlBbBWuyGRAuVtu-rb5TbUOO-GCH3KOfzOizfBqrSoqV96eFiAjHn6Rc5oOnZQCu1QlP97Na7ux_JjENMGcJf2I_W40vc_MKS87rU/s1600/games.png) repeat scroll 0%; } .jimgMenu ul li.nature a { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidkV_16_uYdlzrPtZbdKMnRBW1MtWtPgtxGpRMVLZRB94W_briHGJrZydrd44gbEe6ISLDiF4tm6T42e3Xqr2_IPDFEa1kAPij9wem08nLsXnWmle7ShfYRZuKPI-gV72BmN5C9oYPIrk/s1600/nature.png) repeat scroll 0%; } .jimgMenu ul li.abstract a { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpm6KPIeGPZczkax68kvOb4X1_u5jm0RIhM-MmxUvIa2QqBY7Xt4vjSlpxGV5EMHcpk4BcWnh9QMT84fPeZ0-PbQaWc4cW3jJobTzYbYtfHCgIO0Zx0hTp2jqKgi0IqFg5ls4jvy9tqz4/s1600/2010-gqbycitroen-concept-car.png) repeat scroll 0%; } .jimgMenu ul li.urban a { background: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEianExLvOQlGSY6P0UIkYD0-J-e9n3fC3yapGVjs66wJBD6fTARgXHgiMqTXoimSIM0jKz6xYJnqGbhcMGizThScRygVFBnFeabEHsDa9igWZuSkze0bGsiVyApBe_QwDVl7zM7ubTjpDs/s1600/landscape.png) repeat scroll 0%; min-width:310px; } .clear { clear: both;}
7. Again Find this tag by using Ctrl+F </head>
8. Paste below code Before </head> tag
<script src='http://bloggertrixcode.googlecode.com/files/jquery.js' type='text/javascript'/> <script src='http://bloggertrixcode.googlecode.com/files/jquery-easing-1.3.pack.js' type='text/javascript'/> <script src='http://bloggertrixcode.googlecode.com/files/jquery-easing-compatibility.1.2.pack.js' type='text/javascript'/> <script type='text/javascript'> $(document).ready(function () { // find the elements to be eased and hook the hover event $('div.jimgMenu ul li a').hover(function() { // if the element is currently being animated (to a easeOut)... if ($(this).is(':animated')) { $(this).stop().animate({width: "310px"}, {duration: 450, easing:"easeOutQuad"}); } else { // ease in quickly $(this).stop().animate({width: "310px"}, {duration: 400, easing:"easeOutQuad"}); } }, function () { // on hovering out, ease the element out if ($(this).is(':animated')) { $(this).stop().animate({width: "78px"}, {duration: 400, easing:"easeInOutQuad"}) } else { // ease out slowly $(this).stop('animated:').animate({width: "78px"}, {duration: 450, easing:"easeInOutQuad"}); } }); }); </script>
9. Go to blogger and click Layout
10. Click Add Gadget and select 'HTML/Javascript
11. Paste below code.
<div class="jimgMenu"> <ul> <li class="landscapes"><a href="#nogo">Landscapes</a></li> <li class="people"><a href="#nogo">People</a></li> <li class="nature"><a href="#nogo">Nature</a></li> <li class="abstract"><a href="#nogo">Abstract</a></li> <li class="urban"><a href="#nogo">Urban</a></li> </ul> </div>
You can change images links on 6th step code.
12. Now save your HTML/Javascript'.
You are done...
Nice tip..
ReplyDeleteExcellent. Which this professional.
ReplyDelete