Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript" src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- showme();
- });
- function showme()
- {
- $('#container').html('');
- start = $('#nb').data('next');
- for (var i = 0; i <= 100; i++) {
- //$('#container').append()
- url = 'http://upload.akusherstvo.ru/thumbs/' + (start - i) + '.jpg';
- $('#container').append('<img src="' + url + '">');
- };
- $('#nb').data('next',start - 100)
- }
- </script>
- </head>
- <body>
- <div id="container"></div>
- <button style="width: 500px;height:100px;" id="nb" data-next="637722" onclick="showme();">NEXT</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment