Blackmore1991,
вариант кнопок вперёд назад
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>demo</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.8.3.js'></script>
<style type='text/css'>
li.current
{
background-color: #FFFFFF;
}
li{
background-color: #FFFF00;
}
div.next, div.prev{
width: 50px;
float: left;
cursor:pointer;
}
</style>
<script type='text/javascript'>
$(window).load(function(){
$(".next, .prev").click(function () {
var $curr = $(".current");
$curr.removeClass('current');
var go = $(this).text();
$curr = $curr[go]().size()? $curr[go]() : $curr[(go=='next'?'prev':'next')+'All'](':last');
$curr.addClass('current');
});
});
</script>
</head>
<body>
<div>
<ul class='menu'>
<li class="current"> 1 </li>
<li> 2 </li>
<li> 3 </li>
<li> 4 </li>
<li> 5 </li>
</ul>
</div>
<div class='next'>next</div>
<div class='prev'>prev</div>
</body>
</html>