...

View Full Version : Fancybox in a gallery help



mat3000000
08-25-2011, 04:14 PM
Does anyone have a solution? The first image works fine, but obviously when the image is changed by the second function it will not work????


<script type="text/javascript">
jQuery(document).ready(function(){

$("a#single_image").fancybox({
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'speedIn' : 600,
'speedOut' : 200,
'overlayShow' : false
});

});

</script>
</head>

<body>
<div class="hidden">
<script type="text/javascript">
$(function() {
$(".image").click(function() {
var image = $(this).attr("rel");
var large = $(this).attr("title");
$('#image').hide();
$('#image').fadeIn('slow');
$('#image').html('<a href="' + large + '" id="single_image"><img src="' + image + '"/></a>');
return false;
});
});
</script>

mat3000000
08-26-2011, 06:50 PM
Anyone?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum