Custom Left and Right Arrow Script
by Faisal Khan Janjua
JavaScript
var cirarow = 1;
jQuery('.cir-left').on("click", function(){
cirarow--;
if(cirarow == -1){
cirarow=2;
}
circleive(cirarow);
});
jQuery('.cir-right').on("click", function(){
cirarow++;
if(cirarow == 3){
cirarow=0;
}
circleive(cirarow);
});
function circleive(x){
if(x==0){
jQuery('.packageInfo .packageSlider').attr('class','packageSlider yllw');
}
else if(x==1){
jQuery('.packageInfo .packageSlider').attr('class','packageSlider orng');
}
else if(x==2){
jQuery('.packageInfo .packageSlider').attr('class','packageSlider blue');
}
else{
jQuery('.packageInfo .packageSlider').attr('class','packageSlider yllw');
}
}