Advertisement
rg443

gde_preview (614354)

May 5th, 2013
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var j=j||614354;
  2. function gde_preview(start){
  3. if (!start) start=514016;
  4. for (var a=[],i=start;i>start-450;i--) a.push('<img src="http://127.0.0.'+ (i%10+1) + '/wp1/st.gdefon.ru/wallpapers_preview/'+i+'_(www.GdeFon.ru).jpg?resize=320,200" style="width:320px;height:200px" onerror="rem1(this)" />');
  5. if (window.stop)window.stop();
  6. document.body.innerHTML="<div id=\"data1\" style=\"width:1280px\">"+a.join("")+"</div>";
  7. document.body.insertAdjacentHTML("beforeEnd",'<br><a href="#" onclick="gde_preview(j-=450);setTimeout(window.scroll,200,0,0);return false;" style="font:menu;font-size:14pt;color:black;text-decoration:none;">next</a>');
  8. document.body.insertAdjacentHTML("beforeEnd",'<a href="#" onclick="gde_preview(j+=450);setTimeout(window.scroll,200,0,0);return false;" style="margin-left:10px;font:menu;font-size:9pt;color:black;text-decoration:none;">scroll up</a>');
  9. document.title="gde - " +start;
  10. }
  11. function rem1(el){setTimeout(function(){el.parentElement.removeChild(el)},10);}
  12. function rem2(el){el.style.display="none";}
  13. function rem3(el){el.style.visibility="hidden";}
  14. gde_preview(j);
  15. document.onkeypress=function(e){if (e.keyCode==106){gde_preview(j-=450);window.scroll(0,0);} if (e.keyCode==107){gde_preview(j+=450);window.scroll(0,0);} }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement