lundi 20 juin 2011

A Cool Any Size jQuery Powered Featured Posts Slider For Blogger

Over the last few weeks i have published some cool jQuery Gadgets and Widgets for your Blogs.In this post i have taken the jQuery Easy Slider, a stylish slide show with some neat options and turned it into a kinda mini slider with the option to go large.We previously published the Blogger jQuery Anything Slider that had the option to add videos or images as slides and a Simple But Stylish Blogger Featured Posts Slider.So i wanted to continue with a slide show that could be easily re sized from spanning the width of your blog to the miniature example i have here.

This jQuery Featured Posts Slider also has features like auto scroll, continues scroll plus next slide and previous slide buttons for manual scroll.The original Easy Slider script and code was created by the very cool Css Globe, below is a live demo of our version.

Scripts Updated : 16 April 2014.

View Demo Button

As you can see i have gone small in the demo but it could be even smaller and of course much much bigger.

Add The Any Size jQuery Slider To Blogger


Remember Always Back Up Your Template Before You Make Changes - How To Back Up A Blogger Template

Step 1. In Your Blogger Dashboard Click Design > Edit Html

Design Edit Html Blogger

Step 2. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code - How To Find Code In A Blogger Template)

]]>

Step 3. Copy and Paste the following code Directly Above / Before ]]>

/*Slider Css*/
#slider{}
#slider ul, #slider li{
margin:0;
padding:0;
list-style:none;
}
#slider li{
width:320px;
height:111px;
overflow:hidden;
}
#prevBtn, #nextBtn{
display:block;
width:30px;
height:77px;
position:absolute;
left:-30px;
top:15px;
}
#nextBtn{
left:320px;
}
#prevBtn a, #nextBtn a{
display:block;
width:30px;
height:77px;
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhG2kpEmwAnlv34IRkpOfyU9HV-q-ZP__jhcJ6Fr_4NzLpcpTVHj36HNEQ_Kb4o4SUoKtsIH6L_qRcUvooH4iEKycFPWY7o1VVAEFE93x-hz2bARcbSSdZF_45uDiZ7fzPtr_7L8w04KUY/s1600/btn_prev.gif) no-repeat 0 0;
}
#nextBtn a{
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNJq-6hRa8jLtpfSmQKLsrPmr0IpB2I-H0ahQ29pK6wmoL7Lf76cZxCQMZZthntDVuX9LatOC3Zgqny59KUnb725a-YeIwbn79v5GeOjcUNdvKKq1C8fJn5GFSThVvtsUVNxp8N2hiX5I/s1600/btn_next.gif) no-repeat 0 0;
}
/*Slider Css Info @ http://www.spiceupyourblog.com*/


Change the size of the slider - The width and height are highlighted in yellow so you change these to your required dimensions.You will also have to change the position of the next and previous buttons which is a little more tricky.

Highlighted in red you can see i have the buttons 15px from the top, if you made the slider bigger you would increase the margin from the top.So for example if you made the slider 222px high you would make this 30px.You can try a few margins until you get it right.

Step 4. Find the following piece of code in your blogs Html : (Click Ctrl and F for a search bar to help find the code - How To Find Code In A Blogger Template)


Step 5. Now Copy And Paste This Code Directly Above / Before

Note - If you have previously added jQuery to your template you can leave out the section in green.

That's the Css and Script added for the slider now we add the Html for the actual images.

The Html, Links And Images


This is the html for the actual slider in the demo blog, you can see the links and images highlighted.You can copy and paste this code into a Html / Javascript gadget from your design page, add your links then save and drag and drop into position.

Note - The links are in yellow and the image URLs in red, change these to your links and images.

Note 1 - If you do change the size of the slider you need to change the width and height in each slide above to the same dimensions.

Add More Slides - To add more slides you simply add another link and image like this after the

0 commentaires:

Enregistrer un commentaire

Abonnement Publier les commentaires [Atom]

<< Accueil