I am using fancybox as a gallery portfolio on my site:
http://dennissmolek.com
it's working great but I'm starting to have video's to be uploaded and
want to figure out how to get them working.
I need fancybox to figure out what kind of file is being displayed
instead of declaring the "type" value. I tried omitting this but it
doesnt work unless you add the SWF type.
Only issue is it then encases all the images In a flash player that is
the same size as the Youtube clip regardless. the images are the
incorrect scale, quality, and size. I want the images to scale.
I tried embedding the clip into a hidden div, then having fancybox
display that div. It created a fancybox of the correct size but was
blank.
I have a few other ideas but I cant get it working.
here is my code with the video working but the images encased.
<html>
<head>
<title> fancybox issues </title>
<script src="
http://code.jquery.com/jquery-1.4.4.js"></script>
<script src="wp-content/themes/aiga/js/fancybox/
jquery.fancybox-1.3.4.pack.js"></script>
<script src="wp-content/themes/aiga/js/jquery.easing.1.3.js"></
script>
<link rel="stylesheet" href="wp-content/themes/aiga//js/fancybox/
jquery.fancybox-1.3.4.css" type="text/css" media="screen" />
<script type="text/javascript">
$(document).ready(function(){
});
</script>
</head>
<body>
<ul>
<li><a href="
http://dennissmolek.com/wp-content/uploads/2011/03/
fire2.jpg" class="grouped_elements" rel="shadowbox"><img src="http://
dennissmolek.com/wp-content/uploads/2011/03/fire2-150x150.jpg"> </a> </
li>
<li><a href="
http://dennissmolek.com/wp-content/uploads/2011/03/
robot1.jpg" class="grouped_elements" rel="shadowbox"><img src="http://
dennissmolek.com/wp-content/uploads/2011/03/robot1-150x150.jpg"></a></
li>
<li><a href="
http://www.youtube.com/v/znyMx58fZqQ"
class="grouped_elements" rel="shadowbox">video link </a></li>
</ul>
<script>
$("a.grouped_elements").fancybox({
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'titlePosition' : 'inside',
'autoscale' : 'true',
'type' : 'swf',
});
</script>
</body>
</html>