Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- {literal}
- $(document).ready(function(){
- if($('.carousel.property .content ul').length>0){
- $('.carousel.property .content ul').carouFredSel({
- scroll: {
- items: 1
- },
- auto: false,
- next: {
- button: '.carousel.property .content .carousel-next',
- key: 'right'
- },
- prev: {
- button: '.carousel.property .content .carousel-prev',
- key: 'left'
- }
- });
- $('.carousel.property .content li img').on({
- click: function(e) {
- var src = $(this).attr('src');
- var img = $(this).closest('.carousel.property').find('.preview img');
- var img_a = img.parents('a').eq(0);
- img.attr('src', src);
- img_a.attr('href', src);
- $('.carousel.property .content li').each(function() {
- $(this).removeClass('active');
- });
- $(this).closest('li').addClass('active');
- }
- });
- $('.carousel.property ul li:first').addClass('active');
- }
- $('a.lbgallery').lightBox();
- });
- {/literal}
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement