Web Analytics Made Easy -
StatCounter Fancybox in a gallery help - CodingForum

Announcement

Collapse
No announcement yet.

Fancybox in a gallery help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fancybox in a gallery help

    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????

    Code:
    <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>

  • #2
    Anyone?

    Comment

    Working...
    X