Neman: Kayan aikin Samfurin Email na Yanar Gizo

Have you ever noticed how many email clients block images and display the alternative text? I'm curious if anyone has actually seen this emulated utilizing JavaScript or Server-side scripting. I'd like to get a hand on a tool that does it. Over time, I'm sure that I can develop such a page… I actually started playing tonight. Here's a function that removes all of your images on a page:

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
}
}

It's pretty simple Javascript. The first thing I do is collect an array of the images in HTML. An array is a group of items. I told the javascript to get every element that has an img tag. (That's how you display images in HTML). Next I ‘loop' through the array by telling it to start with the first item (=0), go for as many items there are (imgs.length), and when it's done with the loop add 1 to move to the next item (i++).

What basically happens is that the array collects the location of every image on the page, loops through them, and sets each to nothing. What I'd really like to do with this is remove the image but actually display any alternative text – just like an email client would. I'd also love to remove other table and div elements to render it as it would look in many Mobile Clients. This would replace inline style tag and font formatting.

Has anyone seen or built anything like this? If so, drop me a note in my contact form. If it's written in C# or especially JavaScript, it may even be something I could be authorized to purchase. The advantage of JavaScript is that it could be turned off and on dynamically – a really nice feature! Meanwhile, I'll continue working on it myself!

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.