fancyboxを使用して、重複することなく複数の画像をグループ化するにはどうすればよいですか?rel = "group"を使用してみましたが、最近の画像のリストが表示されます。
私は次のHTMLを持っています:
<ul>
<li>
<a rel="group1" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg"> <img alt="" src="http://farm3.static.flickr.com/2641/4163443812_df0b200930_m.jpg"> </a>
<h2><a rel="group1" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">Test title about image</a></h2>
</li>
<li>
<a rel="group2" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">
<img alt="" src="http://farm3.static.flickr.com/2641/4163443812_df0b200930_m.jpg">
</a>
<h2><a rel="group2" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">Test title about image</a></h2>
</li>
<li>
<a rel="group3" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">
<img alt="" src="http://farm3.static.flickr.com/2641/4163443812_df0b200930_m.jpg">
</a>
<h2><a rel="group3" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">Test title about image</a></h2>
</li>
<li>
<a rel="group4" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">
<img alt="" src="http://farm3.static.flickr.com/2641/4163443812_df0b200930_m.jpg">
</a>
<h2><a rel="group4" class="fancy" title="Custom title" href="http://farm3.static.flickr.com/2641/4163443812_df0b200930.jpg">Test title about image</a></h2>
</li>
</ul>