Yawancinmu muna da shafinmu na VK. Muna saka hotuna a can, ajiye wasu mutane kuma saka su cikin samfurori daban-daban don kowa ya gani. Wani lokaci wani mai amfani da cibiyar sadarwar zamantakewa na iya so ya share duk hotuna da suke kan shafi na sirri, don dalilai daban-daban. Shin yana yiwuwa a aiwatar da wannan aiki a aikace?
Share duk hotuna a kan VK a yanzu.
Masu haɓakawa na VKontakte hanya, zuwa ga babban mai girma na masu halartar, ba su la'akari da kayan aiki na yau da kullum don halakar da dukan hotuna a kan shafin mai amfani ba. Idan hotuna masu zane a cikin bayaninka basu da 'yan kaɗan, to, zaka iya cire kowane fayil ɗin daban. Idan kundin yana daya, sannan zaka iya cire shi tare da abinda ke ciki. Amma idan akwai samfoti da hotuna da yawa a cikin daruruwan ko ma dubban guda? Za mu magance wannan batu.
Hanyar 1: Rubutu na Musamman
Masu shirye-shiryen sana'a da masu koyarwa da kansu suna rubuta rubutattun ta atomatik don tallafawa ayyuka masu ban sha'awa, ciki har da masu amfani da cibiyoyin sadarwar jama'a. Bari mu gwada tare don amfani da rubutun, wanda zai share duk hotuna a cikin asusunka na sirri na VKontakte. Nemo irin wannan shirye-shiryen za ku iya a kan fadin yanar gizo.
- Muna bude shafin VKontakte a cikin wani bincike, muna tafiya ta hanyar izini kuma zuwa shafinmu, wanda zamu yi kokarin sharewa daga hotuna.
- A gefen hagu mun sami layin "Hotuna", danna kan shi tare da maballin hagu na hagu kuma zuwa wannan sashe.
- Mun danna kan maballin F12, a kasan shafin yanar gizon ya buɗe mahaɗin hoton sabis. Danna kan hoton "Kayan aiki" kuma zuwa wannan shafin.
- Mun shiga cikin hotunan hoto wanda aka nufa don ɗauka duka kuma ya buɗe hoton farko don kallo a yanayin allon gaba. Faɗa rubutun rubutun shirin cikin filin kyauta:
setInterval (delPhoto, 3000);
aikin delPhoto () {
a = 0;
b = 1;
yayin da (a! = b) {
Photoview.deletePhoto ();
a = cur.pvIndex;
Photoview.show (ƙarya, cur.pvIndex + 1, null);
b = cur.pvIndex;
}
}
Sa'an nan kuma mu yanke shawarar karshe game da share hotuna kuma danna maballin Shigar. - Muna jiran cikar aiki. Anyi! Kundin yana komai. Maimaita tsari don kowane babban fayil tare da hotunan hotuna. Kuna iya gwada wasu rubutun da aka samo a kanka ta amfani da irin wannan algorithm.
Hanyar 2: Shirin "Canja Hotuna"
Kyakkyawan sauƙi ga rubutun shine aikace-aikacen Photo Transfer, wanda za'a iya sauke shi a kan hanyar sadarwar VKontakte kuma an shigar a kwamfutarka. Ayyukan wannan shirin zai taimake mu a cikin sauri cire duk hotuna daga shafinku yanzu.
- A cikin bincike na intanit, muna buɗe shafin VKontakte, zamu shiga ta hanyar tantancewa da kuma je asusun ku. A gefen hagu na kayan aiki, danna kan gunkin "Hotuna". A cikin sashin hoto ya ƙirƙiri sabon kundin komai.
- Mun zo da duk wani sunan kundi, rufe shi don duk masu amfani sai dai kansu.
- Yanzu, a gefen hagu, danna kan layi "Wasanni".
- Gungura zuwa shafin "Wasanni" kafin sashe "Aikace-aikace"inda muke motsawa don ci gaba.
- A cikin aikace-aikacen aikace-aikacen a cikin masaukin bincike muna fara bugawa sunan shirin da muke bukata. Lokacin da gunkin aikace-aikace ya bayyana a sakamakon "Canja hotuna"Danna wannan hoton.
- A shafi na gaba, muna karanta labarun shirin sosai kuma idan duk abin da ya dace da ku, to danna maɓallin. "Run aikace-aikace".
- Muna rufe taga na maraba da shirin kuma fara aiki.
- A cikin aikace-aikace aikace-aikace a cikin sashe "Daga" Zaɓi madogarar da za a motsa dukkan hotuna.
- A gefen dama na shafin a cikin sashen "Ina za a" Saka fayil din da muka halitta.
- Amfani da maɓalli na musamman, zaɓi duk hotuna kuma motsa su zuwa sabon kundi.
- Har yanzu muna komawa shafin tare da hotuna. Tsayar da linzamin kwamfuta akan murfin kundi tare da hotunan da aka tura kuma danna gunkin a kusurwar dama "Shirya".
- Ya rage kawai don share wannan kundin tare da hotuna, bi da bi, gaba daya share sauran fayiloli. Aiki nasarar warware nasarar.
Akwai har yanzu da ake kira bots, amma ba a ba su shawarar don dalilai na tsaro da kuma saboda mummunan haɗarin rasa asusunka. Kamar yadda kake gani, hanyoyin da za a sauƙaƙe mai amfani na VKontakte zuwa aiwatar da cire hotuna da kuma aiki. Kuna iya, a hankalinka, zabi zaɓi da kake buƙatar kuma sanya shi cikin aiki. Sa'a mai kyau!
Karanta kuma: Ƙara hotuna zuwa VKontakte