Advertisement
rg443

wpc_preview (105446)

May 4th, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var j=j||105446;
  2. function wpc_preview(start){
  3. if (!start) start=92173;
  4. for (var a=[],i=start;i>start-450;i--) a.push('<img src="http://127.0.0.'+ (i%10+1) + '/wp1/wallpaperscraft.com/image.php/'+i+'/320x200.jpg" style="width:320px;height:200px" onerror="rem2(this)" />');
  5. if (window.stop)window.stop();
  6. document.body.innerHTML=a.join("");
  7. document.body.insertAdjacentHTML("beforeEnd",'<br><a href="#" onclick="wpc_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="wpc_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="wpc - " +start;
  10. }
  11. document.onkeypress=function(e){if (e.keyCode==106){wpc_preview(j-=450);setTimeout(window.scroll,200,0,0);return false;}; if(e.keyCode==107){wpc_preview(j+=450);setTimeout(window.scroll,200,0,0);return false;}}
  12.  
  13. function rem1(el){setTimeout(function(){el.parentElement.removeChild(el)},100);}
  14. function rem2(el){el.style.display="none";}
  15. function rem3(el){el.style.visibility="hidden";}
  16. wpc_preview(j);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement