I am using the FancyBox plugin and when the user clicks on a small image, a larger image pops up. I saw the code for doing it with 1 image, but not for 2, so I assumed the correct way was to just do the following, which I am curious if it is correct or not? Do you just put the statements element you want the fancybox to operate on right after each other.
<script type="text/javascript">
$(document).ready(function() {
$("a#link1").fancybox();
$("a#link2").fancybox();
});
</script>