Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="item" title="Image" data-href="image.jpg" data-rel="prettyPhoto">
- <img alt="image" src="thumb.jpg" /></div>
- $('#gallery').on('click', '.item:not(.active)', function (e) {
- e.preventDefault();
- e.stopPropagation();
- });
- $('.item[data-href]').each(function() {
- $(this).attr('href', $(this).attr('data-href'));
- });
- $(".item").prettyPhoto();
- $('.item:not(.active)').off('click');
Add Comment
Please, Sign In to add comment