Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. <!-- a simple grid and an animate button -->
  2. <div class="grid"></div>
  3. <span class="animate">Animate</span>
  4.  
  5. <!-- jQuery -->
  6. <script src="http://thecodeplayer.com/u/js/jquery-1.9.1.min.js" type="text/javascript"></script>
  7. <!-- jQuery easing plugin -->
  8. <script src="http://thecodeplayer.com/u/js/jquery.easing.min.js" type="text/javascript></script>
  9. <link rel="stylesheet" href="styles.css">
  10. <script src="jquery.js"></script>
  11.  
  12. //Creating 50 thumbnails inside .grid
  13. //the images are stored on local. So we can use a loop to generate the HTML.
  14. var images = "", count = 10;
  15. for(var i = 1; i <= count; i++)
  16. images += '<img src="/images/'+i+'.jpg" />';
  17.  
  18. //appending the images to .grid
  19. $(".grid").append(images);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement