galleria デモ2の設置サンプル
実行結果
Galleria Demo 02 | 設置サンプル
設置サンプルのソース
<!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>galleria - Google Code | 設置サンプル | デモ2</title>
<link href="/content/lib/jquery/galleria.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" ></script>
<script type="text/javascript" src="/content/lib/jquery/jquery.galleria.js"></script>
<script type="text/javascript">
$(function(){
$('.gallery_demo_unstyled').addClass('gallery_demo'); // adds new class name to maintain degradability
$('.nav').css('display','none'); // hides the nav initially
$('ul.gallery_demo').galleria({
history : false, // deactivates the history object for bookmarking, back-button etc.
clickNext : false, // helper for making the image clickable. Let's not have that in this example.
insert : undefined, // the containing selector for our main image.
// If not found or undefined (like here), galleria will create a container
// before the ul with the class .galleria_container (see CSS)
onImage : function() { $('.nav').css('display','block'); } // shows the nav when the image is showing
});
});
</script>
<style media="screen,projection" type="text/css">
*{margin:0;padding:0}
body{padding:20px;background:white;background:#000;color:#fff;font:80%/140% 'helvetica neue',sans-serif;width:900px;margin: 0 auto;}
h1,h2{font:bold 80% 'helvetica neue',sans-serif;letter-spacing:3px;text-transform:uppercase;}
a{color:#ff6699;text-decoration:none;outline:none;}
a:hover{color:#67a;}
.caption{color:#888;position:absolute;top:250px;left:3px;width:200px;}
.demo{position:relative;margin-top:2em;}
.gallery_demo{width:200px;float:left;}
.gallery_demo li{width:55px;height:70px;border:3px double #eee;margin: 0 2px 2px 0;background:#eee;}
.gallery_demo li.hover{border-color:#bbb;}
.gallery_demo li.active{border-style:solid;border-color:#222;}
.gallery_demo li div{left:240px}
.gallery_demo li div .caption{font:italic 0.7em/1.4 georgia,serif;}
.galleria_container{margin:0 auto 60px auto;height:338px;width:700px;float:right;}
.nav{padding-top:15px;clear:both;}
.info{text-align:left;margin:30px 0;border-top:1px dotted #221;padding-top:30px;clear:both;}
.info p{margin-top:1.6em;}
.nav{position:absolute;top:310px;left:0;}
</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>
<h2 class='h'>galleria デモ2の設置サンプル</h2>
<h3 class='h'>実行結果</h3>
<h1><a href='http://code.google.com/p/galleria/'>Galleria</a> Demo 02 | 設置サンプル</h1>
<div class="demo">
<ul class="gallery_demo_unstyled">
<li><img src="/content/lib/galleryimages/christmas-party-1.jpg" alt="クリパ" title="なにやらクリスマスパーティーの打ち合わせの模様。"></li>
<li><img src="/content/lib/galleryimages/christmas-party-2.jpg" alt="クリパ" title="おべんとう食べてるw"></li>
<!-- 初期表示画像 -->
<li class="noscale"><img src="/content/lib/galleryimages/christmas-party-3.jpg" alt="クリパ" title="クリスマスですから、シャンパンだってラッパ飲みしちゃいます!"></li>
<li><img src="/content/lib/galleryimages/christmas-party-4.jpg" alt="クリパ" title="千鳥足でも踊れば分かりませんw"></li>
<li><img src="/content/lib/galleryimages/christmas-party-5.jpg" alt="クリパ" title="どさくさにまぎれてセクハラか!?"></li>
<li><img src="/content/lib/galleryimages/christmas-party-6.jpg" alt="クリパ" title="あーぁ。いますねこういうよっぱゲ。。"></li>
<li><img src="/content/lib/galleryimages/christmas-party-7.jpg" alt="クリパ" title="マイペースにもほどがあるとは、まさにw"></li>
<li><img src="/content/lib/galleryimages/christmas-party-8.jpg" alt="クリパ" title="リンボーダンスなんて調子に乗ってやってると怪我するよw"></li>
<li><img src="/content/lib/galleryimages/christmas-party-9.jpg" alt="クリパ" title="忙しくたって、クリスマス気分は味わえます、っていい例。"></li>
</ul>
<p class="nav"><a href="#" onclick="$.galleria.prev(); return false;">前へ</a> | <a href="#" onclick="$.galleria.next(); return false;">次へ</a></p>
</div>
<br clear="all" />
</body>
</html>