//for(var i = 1, tag = "popular";i <= 25;i++) {
for(var page=1,pagesize=50,tag = "following",i= (page-1)*pagesize+ 1, i2=page*pagesize;i <= i2;i++) {
  var r = new XMLHttpRequest;
  r.tag = "5x." + tag + "." + i;
  r.t1 = new Date;
  r.open("get", "http://users1.jabry.com/rg443/f5i.asp?q=" + tag + "&p=" + i, true);
  r.onreadystatechange = function() {
    if(this.readyState == 4 && this.status == 200) {
      console.log(this.tag, new Date - this.t1,this.responseText.length)
      var a=this.responseText.match(/http.*?\.jpg/gim);
      if (a) {
		a.forEach(function(v,i,a){a[i]='<img src="'+v.replace("http://pcdn.500px.net/","http://notebook1.lan/5x/")+'" alt="" class="c280"/>';});
		var p = document.createElement("p"); p.innerHTML=this.tag +"<br>"+a.join("");setTimeout(function(){document.body.appendChild(p);},300);
		};
    }
  };
  r.send()
};
document.body.innerHTML="<style>img.c280{width:280px;height:280px;background-color:#eee;margin:2px}</style>";
;

This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s