the simplest way to create a fancybox gallery is this
1. the script:
$(document).ready(function() {
$("a.gallery").fancybox();
});
2. the html:
// call your first image
<a class="gallery" rel="gallery" href="image01.jpg" ><img
src="image01_thumbnail.jpg" />show gallery</a>
//load and hide the rest of your images
<div style="display:none;">
<a class="gallery" rel="gallery" title="gallery title #2"
href="image02.jpg"></a>
<a class="gallery" rel="gallery" title="gallery title #3"
href="image03.jpg"></a>
<a class="gallery" rel="gallery" title="gallery title #4"
href="image04.jpg"></a>
<a class="gallery" rel="gallery" title="gallery title #5"
href="image05.jpg"></a>
<a class="gallery" rel="gallery" title="gallery title #6"
href="image06.jpg"></a>
etc ....
</div>
... later you can add some effects and adjust the parameters
On the other hand, if you want to show video from vimeo, youtube or
whatever, I would recommend you to do it in AJAX mode using an
external .txt file to call the video; just follow this 3 steps to
avoid some headaches.
1. set your script: (youtube example)
$("a#youtube").fancybox({
'frameWidth': 425, 'frameHeight': 344, 'overlayOpacity':0.6,
'hideOnContentClick': false,
'callbackOnClose': function() { // this is important to finish
the video after closing fancybox
$("#fancy_content").empty();
}
});
2. your html (call your external file)
<a id="youtube" href="youtube.txt">show youtube video in fancybox</a>
3. create your .txt file with your video provider parameters - here
for a youtube example:
<object width="425" height="344"><param name="movie" value="http://
www.youtube.com/v/b-yJBsjatW0&hl=en&fs=1"></param><param
name="allowFullScreen" value="true"></param><param
name="allowscriptaccess" value="always"></param><embed src="http://
www.youtube.com/v/b-yJBsjatW0&hl=en&fs=1" type="application/x-
shockwave-flash" allowscriptaccess="always" allowfullscreen="true"
width="425" height="344"></embed></object>
saludos y buena suerte