Advertisement
rg443

setwalls_preview (62775)

May 19th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var j= j||75468;
  2. j=62973;
  3. function grid_preview(start){
  4. if (!start) start=50000;
  5. for (var a=[],i=start;i>start-450;i--) {a.push('<img src="http://127.0.0.'+ (i%10+1) + '/wp1/www.setwalls.ru/mini/'+m(i)+'/'+i+'.jpg" style="width:327px;height:204px" onerror="rem3(this)" />'); if (i<=2) break;}
  6. if (window.stop)window.stop();
  7. document.body.innerHTML=a.join("");
  8. document.body.insertAdjacentHTML("beforeEnd",'<br><a href="#" onclick="grid_preview(j-=450);setTimeout(window.scroll,200,0,0);return false;" style="font:menu;font-size:14pt;color:black;text-decoration:none;">more</a>');
  9. document.body.insertAdjacentHTML("beforeEnd",'<a href="#" onclick="grid_preview(j+=450);setTimeout(window.scroll,200,0,0);return false;" style="font:menu;font-size:9pt;color:black;text-decoration:none;margin-left:10px;" title="scroll back"> scroll back </a>');
  10. document.title="setwalls - " +start;
  11. }
  12. function rem1(el){setTimeout(function(){el.parentElement.removeChild(el)},100);}
  13. function rem2(el){el.style.display="none";}
  14. function rem3(el){el.style.visibility="hidden";}
  15. function m(b) {
  16.   var a = 201309;
  17.   b < 62121 && (a=201308);
  18.   b < 61607 && (a=201307);
  19.   b < 59359 && (a=201306);
  20.   b < 57727 && (a=201305);
  21.   b < 29724 && (a=201304);
  22.   return a
  23. }
  24. style=document.createElement("style");style.type="text/css";style.appendChild(document.createTextNode("img{border-radius: 10px;margin:1px;box-shadow: 0px 5px 15px #000000;}"));document.getElementsByTagName("head")[0].appendChild(style);
  25.  
  26. grid_preview(j);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement