SHARE
TWEET

Untitled

a guest Feb 19th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <a class="fancybox" rel="group" href="img1.jpg"> <img src="img1_thumb.jpg"> </a>
  2. <a class="fancybox" rel="group" href="img2.jpg"> <img src="img2_thumb.jpg"> </a>
  3.    
  4. var header = '<img id="w" src="logo.gif">';
  5.  
  6. $('.fancybox').fancybox({
  7.     afterLoad: function() {
  8.         this.wrap.prepend(header);
  9.     }, // afterLoad
  10. }); //fancybox
  11.  
  12. $('#w').click(function() {console.log('clicked');});
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top