<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="style.css" rel="stylesheet" type="text/css" media="all" />
<script src="jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="jquery.easing.1.3.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
$("a.panel-01").click(function() {scrollGeneral(0)});
$("a.panel-02").click(function() {scrollGeneral(1000)});
$("a.panel-03").click(function() {scrollGeneral(2000)});
$("a.panel-04").click(function() {scrollGeneral(3000)});
$("a.panel-05").click(function() {scrollGeneral(4000)});
})
function scrollGeneral(pos) {
$("div#container").animate({scrollLeft: pos}, {duration: 750, easing: "easeOutQuint"});
return false;
}
</script>
<title>scroll-panel</title>
</head>
<body>
<!-- navi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<div id="navi">
<ul>
<li><a href="javascript:;" class="panel-01">01</a></li>
<li><a href="javascript:;" class="panel-02">02</a></li>
<li><a href="javascript:;" class="panel-03">03</a></li>
<li><a href="javascript:;" class="panel-04">04</a></li>
<li><a href="javascript:;" class="panel-05">05</a></li>
</ul>
</div><!-- navi -->
<div id="container">
<div id="general">
<!-- panel-01 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<div id="panel-01" class="inner">
<p>panel-01</p>
</div><!-- panel-01 -->
<!-- panel-02 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<div id="panel-02" class="inner">
<p>panel-02</p>
</div><!-- panel-02 -->
<!-- panel-03 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<div id="panel-03" class="inner">
<p>panel-03</p>
</div><!-- panel-03 -->
<!-- panel-04 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<div id="panel-04" class="inner">
<p>panel-04</p>
</div><!-- panel-04 -->
<!-- panel-05 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<div id="panel-05" class="inner">
<p>panel-05</p>
</div><!-- panel-05 -->
</div><!-- general -->
</div><!-- container -->
</body>
</html>