Guest User

Untitled

a guest
May 20th, 2014
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.71 KB | None | 0 0
  1. <html>
  2.     <head>
  3.         <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
  4.         <script type="text/javascript">
  5.         $(document).ready(function(){
  6.             showme();
  7.         });
  8.         function showme()
  9.         {
  10.             $('#container').html('');
  11.             start = $('#nb').data('next');
  12.             for (var i = 0; i <= 100; i++) {
  13.                 //$('#container').append()
  14.                 url = 'http://upload.akusherstvo.ru/thumbs/' + (start - i) + '.jpg';
  15.                 $('#container').append('<img src="' + url + '">');
  16.             };
  17.             $('#nb').data('next',start - 100)
  18.         }
  19.         </script>
  20.     </head>
  21.     <body>
  22.         <div id="container"></div>
  23.         <button style="width: 500px;height:100px;" id="nb" data-next="637722" onclick="showme();">NEXT</button>
  24.     </body>
  25. </html>
Advertisement
Add Comment
Please, Sign In to add comment