Kutsvaga: Online Email Kutarisa Chishandiso

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:

basa kutsiva () // bvisa mifananidzo
{
var imgs = gwaro.getElementsByTagName ('img'); // kurongeka
ye (var i = 0; i> imgs.length; i ++) // chiuno
{
imgs [i] .src = ""; // isa mifananidzo yacho pasina
}
}

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

    Icho chingave chiri nyore chaizvo Greasemonkey javascript

    Iwe wave kutosvika, ingoisa iyo tag tag seinoteveraSibling.

    wobva waisa pane vanoshandisa.org

    Iwe unogona zvakare kushandisa Greasemonkey kuenda kuXPI kana chero chainodaidzwa kuti chive chakakodzera chakamira Firefox kuwedzeredzwa.

  2. 2

    Mhoro Doug,

    The Webhu Yekuvandudza Yekushandisa ine chishandiso chekuita izvi chaizvo, inonzi "Tsiva Mifananidzo neAlt Attribute". Inoita chaizvo zvaunoda zvemahara!

    Iyo yakakanda nyaya yekuwanika pamwe newebsite yako zvakadaro. Kuchenesa mifananidzo kusiya mashizha matema pane yakasviba kumashure, saka chero munhu arikutsvaga pawebhu pasina mifananidzo pane haazove achiverenga zvawatumira!

    Kuwedzera:

    .post { background-color:#fff; }

    inofanirwa kugadzirisa izvo pasina kukanganisa theme yako zvakadaro.

    • 3

      Kuwana kukuru nekubata, Phil! Ndatenda zvikuru. Ndiri kuzochera mune iyi yekuwedzera-pane zvakadzama zvishoma sezvo ini ndichida zvimwe zvekushanda mune peji kwete iro bhurawuza pacharo. Zvakanaka chaizvo!

      (Ini ndakagadzirisa yangu positi kirasi - ndatenda nekunongedzera izvo!)

  3. 4

    At Agency.com tinoshandisa chigadzirwa chinonzi pvIQ kubva kuPivotal Veracity (http://pivotalveracity.com/solutions/pvIQ.php) irwo rubatsiro rukuru padambudziko rako. Isu tinotumira edu maemail emaema kune edu akasiyana ISP bvunzo account uyezve pvIQ inowana jpgs eanopihwa maemail kubva kune yega yega maakaunzi, sezvo ivo vaizoonekwa mune akasiyana mabhurawuza. Izvi zvinotiponesa yakawanda nguva, sezvo zvese zvatinofanirwa kuita kutarisa kune zvinokonzeresa jpgs. Ini ndaikurudzira.

    • 5

      Mhoroi Mako,

      Chakakosha Veracity ine zvishamiso zvishandiso! Ndinoziva kuti vachangobva kuvhura API futi. Ndiri kuyedza kuita chimwe chinhu zvishoma zvakapusa, kungo tarisa 'nekukurumidza' izvo zvisingade chaizvo kutumira iyo email kunze. Chimbofungidzira bhatani bhatani uye iwe unogona kuteedzera kuti raizotaridzika sei, kungo chengeta muchero wakasungirirwa.

      Doug

      • 6

        Mhoro,

        Ini handina kumbotarisa izvi kwechinguva, saka ndinogona kunge ndakanganisa, asi masuo haarambe achichinjisa yavo tsamba ichipa software? Kana vakadaro, ini ndaizofunga iwe unenge uchingogara uchitamba kubata-kana iwe ukaedza kushandisa yako wega bvunzo software. Ndosaka tichishandisa pvIQ: inotitumira izvo chaizvo izvo portal yaizopa.

        maka

        • 7

          Wanyatsotaura. Kufunga kwangu kuri kungogadzira iyo 'inokurumidza & yakasviba' previewer iyo munhu anogona kuitisa asati atumira kune chimwe chinhu senge pvIQ… zvinhu zvakaita seAlt tag uye kutarisisa nhare (matafura abviswa, nezvimwewo). Ini zvechokwadi handidi kuyedza kuenderana nemhirizhonga kunze uko ine Email Vatengi! Ivo vanhu paPivotal Veracity ndiwo mabhenefiti pane izvo!

          Doug

  4. 8

    Chinhu chakadai?

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

  5. 9

    Ini ndinofunga chingave chinobatsira kuwedzera kune yako pfungwa kungave iko kugona kuongorora iwo maemail nenzira imwecheteyo inoita vanozivikanwa email vatengi. Zvinotora nguva uye kutsvagurudza kuti mumwe nemumwe anozviita sei (ndezvipi zvinhu zvavanobvarura, vosiya mukati, nezvimwewo).

    Iwe unovaka akateedzana mafirita aunosarudza kubva. Iti, GMail firita, Yahoo Mail, Outlook (PC, Mac, nezvimwewo) mafirita, nezvimwe. Saka, pane kuti uve nedummy test account neese sevhisi pasi pezuva, unogona kutenderera kuburikidza nekuwongorora kweumwe neumwe nekukurumidza.

    … Pamwe ndataura zvakawanda… 😉

Unofungei?

Nzvimbo iyi inoshandisa Akismet kuderedza spam. Dzidza kuti sei deta yako inoshandiswa.