Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>RGHOST</title>
- <script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- function LoadPicture(num) {
- if (!num) num = 5;
- $('#rg_picture').text('');
- var id = parseInt($('#rg_num').val());
- var table = 0;
- for (i = id; i <= id + parseInt(num); i ++) {
- table ++;
- $('#rg_picture').append('<img src="http://tau.rghost.ru/'+i+'/thumb.png"/>');
- if (table > 5) { // row
- $('#rg_picture').append('<br/>');
- table = 0;
- }
- }
- id += parseInt(num);
- $('#rg_num').val(id);
- }
- </script>
- </head>
- <body>
- ID <input id="rg_num" value="52448330"/><br/>
- <button onclick="LoadPicture(5)">Показать 5</button>
- <button onclick="LoadPicture(10)">Показать 10</button>
- <button onclick="LoadPicture(25)">Показать 25</button>
- <button onclick="LoadPicture(100)">Показать 100</button>
- <button onclick="LoadPicture(500)">Показать 500</button>
- <hr>
- <div id="rg_picture"></div>
- <script type="text/javascript">
- LoadPicture();
- </script>
- <button onclick="javascript:{window.scrollTo(0,0)}">Бамп</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment