Neman: Kayan aikin Samfurin Email na Yanar Gizo

Shin kun taɓa lura da yawan abokan cinikin imel da ke toshe hotuna da nuna madadin rubutu? Ina sha'awar idan kowa ya ga wannan abin da ake amfani da shi ta hanyar amfani da JavaScript ko kuma rubutun Server. Ina so in sa hannu a kan kayan aikin da ke yin sa. Bayan lokaci, na tabbata cewa zan iya haɓaka irin wannan shafin actually Na fara wasa da daren yau. Ga aikin da zai cire duk hotunanku a shafi:

aiki maye gurbin () // cire hotuna
{
var imgs = document.getElementsByTagName ('img'); // tsararru
don (var i = 0; i> imgs.length; i ++) // madauki
{
imgs [i] .src = ""; // saita hotunan komai
}
}

Yana da sauki Javascript. Abu na farko da zanyi shine tara hotunan hotuna a ciki HTML. Tsararru wani rukuni ne na abubuwa. Na gaya wa javascript don samun kowane abu wanda yake da img tag. (Wannan shine yadda kuke nuna hotuna a HTML). Na gaba zan 'madauki' ta hanyar tsararru ta hanyar fada masa ya fara da abu na farko (= 0), saika nemi abubuwa da yawa akwai (imgs.length), kuma idan aka gama shi da madauki sai a ƙara 1 don matsawa zuwa abu na gaba (i ++).

Abinda ya faru a zahiri shine cewa tsararru suna tattara wurin kowane hoto a shafin, madaukai ta hanyar su, kuma saita kowane abu ba komai. Abin da nake so in yi da wannan shi ne cire hoton amma a zahiri n nuna kowane madadin rubutu - kamar dai yadda abokin huldar imel zai yi. Ina kuma son cire sauran tebur da abubuwan sihiri don bayar da shi kamar yadda yake kallon yawancin Abokan Cinikin Waya. Wannan zai maye gurbin lakabin salon layi da tsarin rubutu.

Shin wani ya taɓa gani ko gina irin wannan? Idan haka ne, jefar mani da rubutu a fom na. Idan an rubuta shi a cikin C # ko musamman JavaScript, yana iya ma zama wani abu ne da za a ba ni izini in saya. Amfani da JavaScript shine cewa za'a iya kashe shi kuma yana aiki kai tsaye - kyakkyawan fasali mai kyau! A halin yanzu, Zan ci gaba da aiki da shi da kaina!

9 Comments

  1. 1

    Wannan zai zama mai sauƙin gaske Greasemonkey javascript

    Kun kusan zuwa can, kawai saka alamar ta zama kamar San uwa na gaba.

    to sanya shi a kan rubutun masu amfani.org 🙂

    Hakanan zaka iya amfani da Greasemonkey zuwa XPI ko duk abin da aka kira shi don sanya shi ingantaccen tsawaita Firefox.

  2. 2

    Sannu Doug,

    The Bar ɗin Kayan Ginin Yanar Gizo yana da kayan aiki don yin wannan musamman, wanda ake kira "Sauya Hotuna Tare da Abubuwan Alt" Yayi ainihin abin da kuke so kyauta!

    Hakan ya haifar da batun amfani tare da rukunin yanar gizonku kodayake. Kashe hotuna yana barin rubutu mai baƙar fata akan baƙar fata, don haka duk wanda ke yawo akan yanar gizo ba tare da hotunan ba ba zai karanta sakonninku ba!

    Dingara:

    .post { background-color:#fff; }

    ya kamata ya warware hakan ba tare da ɓata maka taken ba duk da haka.

    • 3

      Babban nema da kamawa, Phil! Godiya sosai. Zan yi zurfin zurfafawa cikin wannan karin dan kadan tunda ina bukatar wasu ayyukan a cikin shafi maimakon mai binciken kansa. Sanyi sosai!

      (Na kuma sabunta aji na post - godiya don nuna wannan!)

  3. 4

    A Agency.com muna amfani da samfurin da ake kira pvIQ daga Pivotal Veracity (http://pivotalveracity.com/solutions/pvIQ.php) wannan babban taimako ne game da matsalarku. Muna aika imel ɗin gwajin mu zuwa asusun mu na asusun ISP daban-daban sannan pvIQ ya dawo da jpgs na imel ɗin da aka sanya daga kowane asusun, kamar yadda zasu bayyana a cikin masu bincike daban-daban. Wannan yana adana mana lokaci mai yawa, kamar yadda duk abin da zamuyi shine duban sakamakon jpgs. Ina ba da shawarar shi.

    • 5

      Barka da Mark,

      Mahimmancin Veracity yana da wasu kayan aikin ban mamaki! Na san kwanan nan sun ƙaddamar da API ɗin kuma. Ina ƙoƙarin yin wani abu mafi ɗan sauƙi, kawai 'saurin' kallo wanda baya buƙatar aika imel ɗin a zahiri. Ka yi tunanin kawai maballin da za ka danna kuma za ka iya yin koyi da yadda zai yi kyau, kawai don kula da ƙananan 'ya'yan itace.

      Doug

      • 6

        Hi,

        Ban duba wannan ba na wani lokaci, don haka zan iya kuskure, amma kofofin suna ci gaba da canza software ta aika wasikun su? Idan sun yi, zan yi tunanin koyaushe kuna yin kama-kama idan kun yi ƙoƙarin amfani da software na gwajin ku. Wannan shine dalilin da yasa muke amfani da pvIQ: yana aiko mana da ainihin abin da tashar zata bayar.

        Mark

        • 7

          Kun yi daidai daidai. Tunanina shine kawai haɓaka mai saurin 'datti da datti' wanda wani zai iya aiwatarwa kafin aikawa zuwa wani abu kamar pvIQ… abubuwa kamar alamun Alt da samfoti na wayoyin hannu (an cire tebur, da sauransu). Tabbas bana son gwada ci gaba da rikici a can tare da Abokan Cinikin Imel! Waɗannan mutanen a Pivotal Veracity su ne fa'idodi a wannan!

          Doug

  4. 8

    Wani abu kamar wannan?

    var showImages = false;
    function toggleImages() {
    var imgs = document.getElementsByTagName("img");
    for (var i=0;i

  5. 9

    Ina tsammanin ƙarin fa'ida mai amfani ga ra'ayinku shine ikon samfoti imel ɗin kamar yadda mashahurin imel ɗin imel yake yi. Zai ɗauki ɗan lokaci da bincike kan yadda kowannensu ke yin sa (waɗanne abubuwa ne suke cirewa, suka bari, da sauransu).

    Kuna gina jerin filtata don zaɓar daga. Ka ce, matattarar GMail, Yahoo Mail, Outlook (PC, Mac, da dai sauransu) masu tacewa, da sauransu. Don haka, maimakon a sami asusun gwaji na gunki tare da kowane sabis a karkashin rana, kuna iya sake zagayowar ta hanyar duba kowane ɗayan da sauri.

    Wataƙila na yi magana da yawa… 😉

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.