You can use this code to add a slider
<div class="holder">
<div class="slider-parent">
<div class="arrow-left2"></div>
<div class="arrow-right2"></div>
<div class="slider2">
<ul>
<li><img src="images/slider/10.jpg" alt="Chapelle's Show" /> </li>
<li><img src="images/slider/11.jpg" alt="Rescue Me" /></li>
<li><img src="images/slider/12.jpg" alt="The Guild" /></li>
<li><img src="images/slider/13.jpg" alt="Trailer Park Boys" /></li>
<li><img src="images/slider/14.jpg" alt="The Lincoln Lawyer" /></li>
<li><img src="images/slider/15.jpg" alt="Bones" /></li>
<li><img src="images/slider/16.jpg" alt="Survivor Man" /></li>
<li><img src="images/slider/17.jpg" alt="WildBoyz" /></li>
<li><img src="images/slider/18.jpg" alt="American Dad" /></li>
</ul>
</div><!--end slider div-->
</div> <!--Slider parent end-->
</div><!--end holder div-->
The css:
.holder{
width:960px;
}
.slider-parent{
width:100%;
height:210px;
background-color:#e1e1e1;
position:relative;
}
.slider2{
position:absolute;
width:780px;
height:200px;
background-color:#e1e1e1;
top:20px;
left:90px;
overflow:hidden;
}
.slider2 ul {
width:1460px;
height:200px;
background-color:#e1e1e1;
}
.slider2 ul li{
width:140px;
height:200px;
background-color:orange;
margin-right:20px;
float:left;
}
.slider2 ul li:hover{
width:140px;
height:200px;
opacity:.8;
margin-right:20px;
float:left;
}
.arrow-left2{
width:60px;
height:60px;
background-color:white;
position:absolute;
top:100px;
left:0px;
background-image: url('../images/arrow-left.png');
background-repeat:no-repeat;
background-position:center;
border-radius:10px;
}
.arrow-right2{
width:60px;
height:60px;
background-color:white;
position:absolute;
top:100px;
right:0px;
background-image: url('../images/arrow-right.png');
background-repeat:no-repeat;
background-position:center;
border-radius:10px;
}
.arrow-left2:hover{
width:60px;
height:60px;
background-color:white;
position:absolute;
top:100px;
left:0px;
background-image: url('../images/arrow-left.png');
background-repeat:no-repeat;
background-position:center;
border-radius:10px;
opacity:.6;
}
.arrow-right2:hover{
width:60px;
height:60px;
background-color:white;
position:absolute;
top:100px;
right:0px;
background-image: url('../images/arrow-right.png');
background-repeat:no-repeat;
background-position:center;
border-radius:10px;
opacity:.6;
}
The JS:
jQuery(".arrow-right2").hover(function() {
count2++;
// alert(count);
if (count2 >4) {
count2 = 4;
jQuery(".slider2 ul").animate({
"margin-right": "0px"
}); //animate method ennnd
} else {
jQuery(".slider2 ul").animate({
"margin-left": "-=160px"
}); //animate method ennnd
}
}) //click right method end
jQuery(".arrow-left2").hover(function() {
count2--;
if (count2 <0){
count2 = 0;
jQuery(".slider2 ul").animate({
"margin-left": "0px"
}); //animate method ennnd
} else {
jQuery(".slider2 ul").animate({
"margin-left": "+=160px"
}); //animate method ennnd
}
}) //click left method end
If this doesn't work let me know, might have forgotten some js...