i use such lightbox http://www.leandrovieira.com/projects/jquery/lightbox/ here is example of using
<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>
i want to group images, so i write url like this <a href='' rel='lightbox[group1]'></a> and <a href='' rel='lightbox[group2]'></a>
how i run this? $('a[@rel*=lightbox]').lightBox(); not work, or may be anothe method?
If you have HTML tags like this:
<a href='' rel='group1'></a>and<a href='' rel='group2'></a>You can use this:
$('a[@rel=group1]').lightBox();and$('a[@rel=group2]').lightBox();