Понедельник, 20.05.2024, 18:26
Приветствую Вас Гость

Allneed4you.ucoz.ru

Меню сайта
Форма входа
Категории раздела
Поиск
Новые поступления
Главная » Статьи » Вонтакте » Секреты вконтакте

Отметить сразу всех друзей на фото
Отметить сразу всех друзей на фотоДанный скрипт, позволяет отметить сразу всех ваших друзей на одной фотографии. Отличная возможность разосласть поздравительную открытку всем и сразу. 
  1. Заходим на страницу с фотографией в вашем фотоальбоме.
  2.  Нажимаем "Отметить человека" 
  3. Копируем данный code в адресную строку и нажмаем "Enter":

Code

javascript:(function() { function getPhotoInfo() { if(res = /([0-9\-]+)_(\d+)/.exec(location.href)) return {"mid": res[1], "pid": res[2]}; else return {"mid": 0, "pid": 0}; } function getMyID() { var anchs = document.getElementsByTagName("a"); for(i = 0; i < anchs.length; i++){ if(res = /id(\d+)/.exec(anchs[i].href)) return res[1]; } return 0; } window.adostes_mark = function(i){ if(friends == undefined || i >= friends.length){ if(rotating = document.getElementById("rotating")) rotating.innerHTML = "<h4> All friends have been marked on this photo!</h4>"; window.clearTimeout(window.adostes_timer); return; } request_uri = "http://vkontakte.ru/photos.php?act=put&pid="+window.adostes_mid+"_"+window.adostes_pid+"&id="+window.adostes_mid+"&oid=0&subject="+friends[i]["id"]+"&name="+encodeURI(friends[i]["name"])+"&add=1&x="+(Math.random()*100)+"&y="+(Math.random()*100)+"&x2="+(Math.random()*100)+"&y2="+(Math.random()*100); img = new Image(); img.src = request_uri; if(commentArea = document.getElementById("commentArea")) commentArea.innerHTML = (i+1) + " of " + friends.length + " friends have been marked!"; var new_index = i+1; window.adostes_timer = window.setTimeout("window.adostes_mark(" + new_index + ")", 500); }; window.adostes_markallf = function(){ if(!friends){ alert("Click \"Mark human\"!"); return; } if(!confirm("Are you sure want to mark all friends?\r\n\r\n\r\n")) return; if(rotating = document.getElementById("rotating")) rotating.innerHTML = "<h4> Processing <img src=\"http://vkontakte.ru/images/upload.gif\">
Please wait...</h4>"; window.adostes_timer = window.setTimeout("window.adostes_mark(0)", 0); }; var mid; var pid; var myid = getMyID(); var info = getPhotoInfo(); if(!(location.href.match(/vkontakte.ru/) && location.href.match(/photo/))) { alert("Open page with your photo"); return; } window.adostes_pid = info["pid"]; window.adostes_mid = info["mid"]; adostes_markallf(); })();

Данный скрипт работает только в браузерах Mozilla FireFox и Opera

Категория: Секреты вконтакте | Добавил: vadik-admin (12.05.2010)
Просмотров: 696 | Теги: Секреты, вконтакте | Рейтинг: 0.0/0
Всего комментариев: 0
Имя *:
Email *:
Код *:
Наш опрос
Нужен ли на сайте форум?
Всего ответов: 202
Block title
Вашы даные
Статистика

Онлайн всего: 1
Гостей: 1
Пользователей: 0