実行結果
設置サンプルのソース
<!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" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="ja" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<title>設置サンプル</title>
<link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" ></script>
<script type="text/javascript" src="/content/lib/jquery/jquery.tinycircleslider.min.js"></script>
<script type="text/javascript">
$(function() {
$('#rotatescroll').tinycircleslider({ interval:true, snaptodots:true,hidedots:true });
});
</script>
<style type="text/css">
/* Tiny Circleslider */
#rotatescroll {
width:300px; height:300px;
position:relative;
}
#rotatescroll .viewport{
width:300px; height:300px;
position:relative;
margin:0 auto; padding:0;
overflow:hidden;
}
#rotatescroll .overview {
position:absolute;
left:0; top:0;
width:798px;
list-style:none;
margin:0; padding:0;
}
#rotatescroll .overview li {
width:300px; height:300px;
float:left;
position:relative;
}
#rotatescroll .overview li img {
height:332px; /* 高さは332px指定 */
}
#rotatescroll .overlay {
background:url("/content/img/ajax/bg-rotatescroll.png") no-repeat 0 0;
position:absolute;
left:0; top:0;
width:300px; height:300px;
}
#rotatescroll .thumb {
background:url("/content/img/ajax/bg-thumb.png") no-repeat 50% 50%;
position:absolute;
top:-3px; left:137px;
cursor:pointer;
width:100px; height:100px;
z-index:200;
}
#rotatescroll .dot {
background:url("/content/img/ajax/bg-dot.png") no-repeat 0 0;
display:none;
width:12px; height:12px;
position:absolute;
left:155px; top:3px;
z-index:100;
}
#rotatescroll .dot span {
display:none;
}
</style>
<link rel="stylesheet" type="text/css" href="/common/css/example.css"></head>
<body id='example3' class='example'><div class="ads" style="margin:32px auto;text-align:center;"></div><h1 class='h'><a href='/'>PHP & JavaScript Room</a> :: 設置サンプル</h1>
<h3 class='h'>実行結果</h3>
<div id="wrap">
<h1>設置サンプル</h1>
<p>参照:<a href='http://www.htmldrive.net/items/show/779/Lightweight-Circle-slideshow.html' target='_blank'>Lightweight Circle slideshow</a></p>
<!-- CODE -->
<div id="rotatescroll">
<div class="viewport">
<ul class="overview">
<li><a href="http://www.flickr.com/photos/22559849@N06/5289923137/"><img src="http://farm6.static.flickr.com/5126/5289923137_ed5933596e.jpg" /></a></li>
<li><a href="http://www.flickr.com/photos/22559849@N06/5289684297/"><img src="http://farm6.static.flickr.com/5127/5289684297_dce2e646d2.jpg" /></a></li>
<li><a href="http://www.flickr.com/photos/22559849@N06/5273446670/"><img src="http://farm6.static.flickr.com/5087/5273446670_8f48504744.jpg" /></a></li>
<li><a href="http://www.flickr.com/photos/22559849@N06/5271343492/"><img src="http://farm6.static.flickr.com/5045/5271343492_ab405a08b0.jpg" /></a></li>
<li><a href="http://www.flickr.com/photos/22559849@N06/5270593291/"><img src="http://farm6.static.flickr.com/5081/5270593291_258a2a9d38.jpg" /></a></li>
</ul>
</div>
<div class="dot"></div>
<div class="overlay"></div>
<div class="thumb"></div>
</div>
<!-- /CODE -->
</div>
</body>
</html>