設置サンプル
実行結果
設置サンプルのソース
<!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>jQuery lightBox plugin v0.5 | 設置サンプル</title>
<link rel="stylesheet" type="text/css" href="/content/lib/global.css" />
<link rel="stylesheet" type="text/css" href="/content/lib/jquery/jquery.lightbox-0.5.css" />
<!-- Arquivos utilizados pelo jQuery lightBox plugin -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" ></script>
<script type="text/javascript" src="/content/lib/jquery/jquery.lightbox-0.5.js"></script>
<script type="text/javascript">
$(function() {
$('#gallery a').lightBox();
});
</script>
<style type="text/css">
#gallery ul { list-style:none; }
#gallery ul li { display:inline; }
#gallery ul img { border:5px solid #666; }
#gallery ul a:hover img { border:5px solid #ff6699; color:#fff; }
#gallery ul a:hover { color:#fff; }
</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'>設置サンプル</h2>
<h3 class='h'>実行結果</h3>
<div id="wrap">
<h1><a href='http://leandrovieira.com/projects/jquery/lightbox/'>jQuery lightBox plugin v0.5</a> | 設置サンプル</h1>
<div id="gallery">
<ul>
<li>
<a href="http://farm4.static.flickr.com/3222/2974008614_f4b59bf651_o.png" title="くまさんケーキ">
<img src="http://farm4.static.flickr.com/3222/2974008614_736e2d5b50_s.jpg" width="75" height="75" alt="" />
</a>
</li>
<li>
<a href="http://farm4.static.flickr.com/3141/2973155055_385036c286_o.png" title="クリスピー・クリーム・ドーナツ">
<img src="http://farm4.static.flickr.com/3141/2973155055_4cf4370939_s.jpg" width="75" height="75" alt="" />
</a>
</li>
<li>
<a href="http://farm4.static.flickr.com/3159/2971755812_6b3d0d3666_o.jpg" title="カフェオレ@CAFE EAT代官山">
<img src="http://farm4.static.flickr.com/3159/2971755812_cb4dc9e097_s.jpg" width="75" height="75" alt="" />
</a>
</li>
<li>
<a href="http://farm4.static.flickr.com/3174/2973352946_3814779ceb_o.jpg" title="メロンソーダとカフェオレ@CAFE EAT代官山">
<img src="http://farm4.static.flickr.com/3174/2973352946_d3589b717e_s.jpg" width="75" height="75" alt="メロンソーダとカフェオレ@CAFE EAT代官山" /></a>
</a>
</li>
<li>
<a href="http://farm4.static.flickr.com/3224/2971760010_939762ce95_o.jpg" title="みかん星人">
<img src="http://farm4.static.flickr.com/3224/2971760010_e4c6f7bb44_s.jpg" width="75" height="75" alt="" />
</a>
</li>
</ul>
</div>
</div>
</body>
</html>