Template:Slider

 sliderChange = function(direction) { var obj = $('#slider-container'); var list = obj.children('.slider-item'); var first_li = list.eq(0); var second_li = list.eq(1); var last_li = list.eq(-1); if (direction == 'forward') { first_li.fadeOut(function{           second_li.fadeIn;            first_li.remove.appendTo(obj);        }); } else { first_li.fadeOut(function{           last_li.remove.prependTo(obj);            last_li.fadeIn;        }); } };

$(document).ready(function {   $('.slider-item:empty').remove // leave only ones actually containing something    $('#slider-btn-back').show;    $('#slider-btn-back').click(function{sliderChange('back')});    $('#slider-btn-forward').show;    $('#slider-btn-forward').click(function{sliderChange('forward')}); });  font-size: 2em; text-align: center; vertical-align: middle; cursor: pointer; display: none; }   background: none repeat scroll 0 0 #F6F6F6; } .slider-item { vertical-align: middle; }   width:  ; height: ;
 * 1) slider-btn-forward, #slider-btn-back {
 * 1) slider-btn-forward:hover, #slider-btn-back:hover {
 * 1) slider {