SHOW:
|
|
- or go back to the newest paste.
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(){ |
5 | + | var start = 637798; |
6 | - | showme(); |
6 | + | $(function(){showme();}); |
7 | - | }); |
7 | + | |
8 | { | |
9 | $('#container').empty(); | |
10 | - | $('#container').html(''); |
10 | + | |
11 | - | start = $('#nb').data('next'); |
11 | + | var num = (start - i); |
12 | var im = $('<img />'); | |
13 | - | //$('#container').append() |
13 | + | im.attr('src','http://upload.akusherstvo.ru/thumbs/' + num + '.jpg'); |
14 | - | url = 'http://upload.akusherstvo.ru/thumbs/' + (start - i) + '.jpg'; |
14 | + | im.css({maxWidth:'200px',maxHeight:'150px'}); |
15 | - | $('#container').append('<img src="' + url + '">'); |
15 | + | var link = $('<a></a>'); |
16 | link.attr('href','http://upload.akusherstvo.ru/images/'+ num + '.jpg') | |
17 | - | $('#nb').data('next',start - 100) |
17 | + | var wrapper = $('<div></div>'); |
18 | wrapper.css({ | |
19 | float: 'left', | |
20 | width:'200px', | |
21 | height:'150px', | |
22 | margin: '0 5px 5px 0', | |
23 | - | <button style="width: 500px;height:100px;" id="nb" data-next="637722" onclick="showme();">NEXT</button> |
23 | + | textAlign: 'center' |
24 | }); | |
25 | $('#container').append(wrapper.append(link.append(im))); | |
26 | }; | |
27 | $('#container').append($('<div></div>').css({clear:'both'})); | |
28 | start -= 100; | |
29 | window.scrollTo(0,0); | |
30 | } | |
31 | </script> | |
32 | </head> | |
33 | <body> | |
34 | <div id="container"></div> | |
35 | <button style="width: 500px;height:100px;" id="nb" onclick="showme();">NEXT</button> | |
36 | </body> | |
37 | </html> |