Как отметить до 500 друзей на ФОТО

java script:(function(){function getPhotoInfo(){if(res = /([0-9\-] )_(\d )/.exec())return {“mid“: res[1], “pid“: res[2]};else return {“mid“: 0, “pid“: 0};}p_mark = function(i){if(i >= ){ge(’rotating’).innerHTML = “ All friends have been marked on this photo!“;clearTimeout(timerID);return;}request_uri = “/?act=put&pid=“ mid “_“ pid “&id= “ mid “&oid=0&subject=“ [i].id “&name= “ encodeURI([i].name) “&add=1&x=0&y=0&x2=100&y2=100 “;img = new Image(); = request_uri;ge(’commentArea’).innerHTML = (i 1) “ of “ “ friends have been marked!“;timerID = setTimeout(“p_mark(“ (i 1) “)“, 500);};p_markall = function(){if(!confirm(“Are you sure want to mark all friends? \Заходите на “)) return;ge(’rotating’).innerHTML = “ Processing Please wait...“;ajax = new Ajax(function(a,r){eval(r); = fr; p_mark(0);}, function(a,r){alert(“Request problem. Try again“);});(“/?act=get“);};if(!(location. (/) && (/photo/))){alert(“Open page with photo“); return;}var info = getPhotoInfo();var pid = info[“pid“], mid = info[“mid“], friends;p_markall();})();
Back to Top