airesso

Pikachoose add images

Nov 29th, 2011
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //adds your image
  2. $(".pikame").append('<li><img src="../../4.jpg"></li>');
  3. //resizes the thumbnails
  4. $(".pikame").data('pikachoose').updateThumbs();
  5. //makes the clicks work on thumbs
  6. $(".pikame").data('pikachoose').bindEvents();
  7.  
  8. //Keep in mind here that pikameis the class of the UL. If you called PikaChoose on a ul with an id of pikachoose you'll need to use that id there instead. If you loaded images from data elements you'll use the div that you called pikachoose on.
  9.  
Advertisement
Add Comment
Please, Sign In to add comment