<link rel="stylesheet" type="text/css" href="featureCarousel.css">
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="jquery.featureCarousel.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#id名").featureCarousel({
autoPlay:1, //自動再生
animationEasing: 'easeOutQuart' //easing.jsが必要
});
});
</script>
上記記述後、下記の通り画像とキャプションを記述すれば完成です。
<div id="id名">
<!-- ここから画像1枚目 -->
<div class="feature">
<a href="#"><img src="画像パス"></a>
<div>
<p>キャプション</p>
</div>
</div>
<!-- ここまで画像1枚目 -->
<!-- 以後、画像分繰り返し -->
</div>
また最低限のオプションとして例示していますが、以下のように多くのオプションがあります。
This is some information that can go along with an image. Anything can be placed here, including images.
This is some information that can go along with an image. Anything can be placed here, including images.
This is some information that can go along with an image. Anything can be placed here, including images.