You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

plugin-featherlight.js 508 B

123456789101112131415
  1. $(document).ready(function() {
  2. //find all images, but not the logo, and add the lightbox
  3. $('img').not('#logo').each(function(){
  4. var $img = $(this);
  5. var filename = $img.attr('src')
  6. //add cursor
  7. $img.css('cursor','zoom-in');
  8. $img.css('cursor','-moz-zoom-in');
  9. $img.css('cursor','-webkit-zoom-in');
  10. //add featherlight
  11. $img.attr('alt', filename);
  12. $img.featherlight(filename);
  13. });
  14. });