我用这样的收藏夹http://www.leandrovieira.com/projects/jquery/lightbox/我这里是使用的jQuery的灯箱组图像
<script type="text/javascript">
$(function() {
// Use this example, or...
$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
// This, or...
$('#gallery a').lightBox(); // Select all links in object with gallery ID
// This, or...
$('a.lightbox').lightBox(); // Select all links with lightbox class
// This, or...
$('a').lightBox(); // Select all links in the page
// ... The possibility are many. Use your creative or choose one in the examples above
});
</script>
我想组图像,所以我写的网址这样<a href='' rel='lightbox[group1]'></a>
和<a href='' rel='lightbox[group2]'></a>
我怎么跑的? $('a[@rel*=lightbox]').lightBox();
不工作,或可能是其他方法?
但是如何分组图像?这将把所有的图像放在一起 – kusanagi 2011-05-25 09:27:58
如果你想要另一个组,然后尝试不同的'rel' – diEcho 2011-05-25 09:55:36