A Cool Any Size JQuery Powered Featured Posts Slider For Blogger ( blogger slider )

Add The Any Size jQuery Slider To Blogger



Remember Always Back Up Your Template Before You Make Changes

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)

]]></b:skin>

Step 3. Copy and Paste the following code Directly Above / Before ]]></b:skin>

/*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/AVvXsEh5lSFqBeV-cjQltrDrpWuh7BSv443NpL7EQfWZyKq8ZGdQpjKO5LrWqdALhVpMmOB6XWKkF4YxPLNRTq26HdH6kGH2-ywAQhDOkFEEl5LmvNwhUYI4C_7rwE7u-PFY2qy4zRIMetPXKvs/s1600/btn_prev.gif) no-repeat 0 0; 

#nextBtn a{ 
background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgY1UlWc37V5wunt1zzac9tpBkzdEt16wLDFPvhlBr1JOk9JHJEwazB1ER7nsgjdAimp2sUrUAzsRHDeVRtFjSH_XkD803bUhuCc5X-H23omy-pwBZgiC8Pd0vUyr_17g9PlIrhsG45sGk/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)

</head>

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

Note - If you have previously added jQuery to your template you can leave out the section in green.
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js' type='text/javascript'/>
<script src='http://suyb.googlecode.com/files/easySlider1.7.js-blogger.js'/>
<script>
$(document).ready(function(){ 
$(&quot;#slider&quot;).easySlider({
auto: true,
continuous: true 
});
});
</script>

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.

<div id="slider"> <ul> 

<li><a href="http://www.spiceupyourblog.com"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhX4q8uKUcynqI1Qidt6iW-o3FnFtea0ARSYGTL1TRkMtscCrzUMh21bJkAJgk1T-0kyNlnMCLRtxMkrWgMbUDIVqGQfIj3frNqpaFtrUHpnI7PGU-YCBUuP-7xlZm7V_PkxEKNL_Uyvrg/s320/01.jpg" width="320px" height="111px" /></a></li>

<li><a href="http://www.bestbloggertemplates.net"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5fAP5kr4A3aN5bZyoeP65T1pk7k7g8p68rGBOgCE2VpDkJ7KdGlnqCiYkeWKkvu7arzgy8bPDPDS1ggnc-RfuOoqvAKYhrchqu6l5tMbdjPB2BkyfdwMmiz-hvNNmCRuBWFsq1YA1BGU/s320/02.jpg" width="320px" height="111px"/></a></li>

<li><a href="http://www.socialiconstudio.com"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5616RuHC7N54TvScHfIRW_XxZDqRAI9HHFatQnC-DLY3RzAYss2iI9M015pvn4944AiF0IjB4df_1g5W9g7yTFnuVKSuGLWbIdTN-I90PZAJYJcMM1aBesjHr0PQs0C32gChSZ9gzBvk/s320/03.jpg" width="320px" height="111px" /></a></li>

<li><a href="http://www.spiceupyourblog.com"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgh4bJWOKG8owSkzt-zq9bNQ-aLtpmie5rcOFZigXBvnH9NAoCIY8xjKFg_z7n9_9qPrtA2Vhml063vUzrB9zePNox5en-yIxIap4SvstjZtQKnMrAlaNYAyS3oFwtNRTXYlApL24QJYL8/s320/04.jpg" width="320px" height="111px" /></a></li>

<li><a href="http://www.bestbloggertemplates.net"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAOk_hdlz7rIWICONbDLEY6RGu2v0I7-O9gnJmJVhidq0LbdvKcvK1nCfXdYnEYxn3TJghyA02ufPxAkNJQDJJ14JtopekO4u1bDL4-BsyAI_njxCxpsZ8jatqXrcBASN1CcXwkeUs2_0/s320/05.jpg" width="320px" height="111px" /></a></li>

</ul>
</div>
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 <ul> tag above :

<li><a href="http://www.bestbloggertemplates.net"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgAOk_hdlz7rIWICONbDLEY6RGu2v0I7-O9gnJmJVhidq0LbdvKcvK1nCfXdYnEYxn3TJghyA02ufPxAkNJQDJJ14JtopekO4u1bDL4-BsyAI_njxCxpsZ8jatqXrcBASN1CcXwkeUs2_0/s320/05.jpg" width="320px" height="111px" /></a></li>


[sursa]

Comentarii