You can use FancyBox to init an entire div or entire divs full of images without having to tag each one. Here's a basic working demo of the concept that can be run from the root folder of the demo package:
Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<script type="text/javascript">
jQuery(function($){
$(".group1 a").attr('rel', 'group1').fancybox({});
});
</script>
</head>
<body>
<div class="group1">
<a href="./example/9_b.jpg" title="Lorem ipsum dolor sit amet"><img alt="" src="./example/9_s.jpg" /></a>
<a href="./example/10_b.jpg" title=""><img alt="" src="./example/10_s.jpg" /></a>
<a href="./example/11_b.jpg" title=""><img alt="" src="./example/11_s.jpg" /></a>
<a href="./example/12_b.jpg" title=""><img alt="" src="./example/12_s.jpg" /></a>
</div>
</body>
</html>
The highlighted part makes them a gallery. If you want them to each be separate (no next/previous buttons), just skip it.
Oh, and by the way, ColorBox is on a par with FabcyBox, both scripts having many more options than SlimBox. But I think the FancyBox user interface is more easily configured. That's not to say it's a snap, just easier then ColorBox, at least for certain things.
Bookmarks