Nrhiav: Online Email Saib Ua Ntej

Koj puas tau pom ntau npaum li cas email neeg siv khoom thaiv cov duab thiab tso tawm cov ntawv nyeem sab nraud? Kuv xav paub tias yog leej twg muaj tiag pom qhov no siv siv JavaScript lossis Server-sab scripting. Kuv xav tau txais ib txhais tes ntawm qhov khoom siv uas ua nws. Ua haujlwm dhau sijhawm, Kuv paub tseeb tias kuv tuaj yeem tsim kho ib nplooj ntawv zoo li no ... Kuv yeej pib ua si hmo no. Ntawm no yog qhov haujlwm uas tshem tawm tag nrho koj cov duab ntawm nplooj ntawv:

muaj nuj nqi hloov () // tshem cov duab
{
var imgs = document.getElementsByTagName ('img'); // array
rau (var i = 0; i> imgs.length; i ++) // voj
{
imgs [i] .src = ""; // teeb cov duab rau tsis muaj dab tsi
}
}

Nws yooj yim zoo nkauj Javascript. Thawj qhov kuv ua yog sau ib qho kab ntawm cov duab hauv HTMLCov. Ib qho array yog pawg ntawm cov khoom. Kuv tau hais kom qhov javascript kom tau txais txhua qhov chaw uas muaj tus cim img. (Ntawd yog li cas koj tso cov duab hauv HTML). Tom ntej no Kuv 'voj' los ntawm cov kab los qhia nws kom pib nrog thawj yam khoom (= 0), mus rau ntau yam khoom muaj (imgs.length), thiab thaum nws ua nrog lub voj ntxiv 1 txav mus rau yam khoom tom ntej (kuv ++).

Dab tsi cia li tshwm sim yog tias cov array sau qhov chaw ntawm txhua cov duab ntawm nplooj ntawv, loops los ntawm lawv, thiab teeb txhua qhov tsis muaj dab tsi. Dab tsi kuv xav ua nrog qhov no yog tshem tawm cov duab tab sis tiag tiag tso tawm lwm cov ntawv nyeem - ib yam li email thov yuav. Kuv kuj tseem nyiam tshem tawm lwm cov lus thiab div ntsiab los ua nws raws li nws yuav zoo rau ntau Cov Neeg Siv Khoom txawb. Qhov no yuav hloov inline style tag thiab font formatting.

Puas muaj leej twg pom lossis tsim txhua yam zoo li no? Yog muaj, xa ntawv rau kuv hauv kuv daim foos. Yog tias nws tau sau rau hauv C # lossis tshwj xeeb JavaScript, nws txawm tias qee yam kuv tuaj yeem raug tso cai yuav. Qhov kom zoo dua ntawm JavaScript yog tias nws tuaj yeem raug tua thiab ntawm qhov muaj zog - qhov ua tau zoo heev! Lub caij no, Kuv yuav txuas ntxiv ua haujlwm ntawm nws tus kheej!

9 Comments

  1. 1

    Uas yuav yog qhov yooj yim Greasemonkey javascript

    Koj yuav luag muaj, tsuas yog ntxig rau alt tag li nextSibling.

    tom qab ntawd muab tso rau hauv userscripts.org 🙂

    Koj kuj tseem tuaj yeem siv Greasemonkey rau XPI lossis txhua qhov nws raug hu los ua nws kom tsim nyog ntawm Firefox txuas ntxiv.

  2. 2

    Kuv tuaj los Doug,

    cov Tus Tsim Tawm Web site Toolbar muaj cov cuab yeej siv los ua qhov no tshwj xeeb, hu ua "Hloov Duab nrog Alt Attributes". Nws yog raws nraim qhov koj xav tau dawb!

    Nws tau muab pov tseg qhov teeb meem kev nkag nrog koj lub xaib ho. Tig cov duab tawm tawm cov ntawv dub nyob rau tom qab dub, yog li leej twg caij saum nthwv dej yam tsis muaj duab nyob rau yuav tsis nyeem koj cov ntawv!

    Ntxiv:

    .post { background-color:#fff; }

    yuav tsum daws tau uas tsis muaj messing txog koj lub ntsiab ho.

    • 3

      Koob nrhiav thiab ntes, Phil! Tsaug heev. Kuv yuav khawb rau hauv qhov no ntxiv me ntsis ntxaum vim tias kuv xav tau qee qhov haujlwm ntawd hauv nplooj ntawv es tsis yog browser. Txias heev!

      (Kuv tseem hloov kuv chav kawm tom qab - ua tsaug rau taw tawm!)

  3. 4

    Ntawm Agency.com peb siv cov khoom lag luam hu ua pvIQ los ntawm Pivotal Veracity (http://pivotalveracity.com/solutions/pvIQ.php) uas yog kev pab loj nrog koj cov teeb meem. Peb xa peb cov ntawv kuaj mob email mus rau peb ntau ISP xeem nyiaj thiab tom qab ntawd pvIQ khaws cov jpgs ntawm cov xa xov xa rov qab los ntawm txhua tus ntawm cov nyiaj, raws li lawv yuav tshwm sim hauv cov browser sib txawv. Qhov no cawm peb lub sijhawm ntau heev ntawm lub sijhawm, raws li txhua yam peb tau ua yog saib lub txiaj ntsig jpgs. Kuv xav mas.

    • 5

      Kuv tuaj los Mark,

      Pivotal Veracity muaj qee cov cuab yeej zoo kawg! Kuv paub tias lawv tau nyuam qhuav tsim qhov API thiab. Kuv tab tom sim ua qee yam yooj yim me ntsis, tsuas yog saib 'nrawm' saib uas tsis xav tau xa email tawm. Xav txog qhov tsuas yog lub pob nyem thiab koj tuaj yeem yoog ua li cas nws yuav zoo, tsuas yog coj los saib xyuas cov txiv ntoo qis.

      Doug

      • 6

        Kuv tuaj los,

        Kuv tsis tau saib qhov no ib pliag, yog li kuv yuav yuam kev, tab sis tsis txhob lub portals hloov pauv lawv cov ntawv xa mus software? Yog tias lawv tau ua, Kuv yuav xav tias koj yuav tsum tau tas li ua si ntes yog tias koj tau sim siv koj li software kuaj. Yog vim li cas peb thiaj siv pvIQ: nws xa peb raws nraim qhov twg cov portal yuav tshwm sim.

        Mark

        • 7

          Koj hais yog tag lawm. Kuv txoj kev xav tsuas yog txhim kho kev saib xyuas 'sai & qias neeg' uas ib tug neeg tuaj yeem ua ua ntej xa mus rau qee yam xws li pvIQ ... yam li Alt tag thiab mobile saib ua ntej (cov ntxhuav tshem tawm, thiab lwm yam). Kuv twv yuav raug hu tsis xav sim nrog tus mess muaj sia nrog Clients Email! Cov uas nyob ntawm Pivotal Veracity yog qhov zoo ntawm qhov ntawd!

          Doug

  4. 8
  5. 9

    Kuv xav tias qhov muaj txiaj ntsig zoo ntxiv rau koj lub tswv yim yuav yog qhov muaj peev xwm saib ua ntej cov emails ib yam uas cov neeg siv email ua. Nws yuav siv qee lub sijhawm thiab tshawb fawb txog seb txhua tus puas ua nws (cov ntsiab lus dab tsi rau lawv hle tawm, tawm mus, thiab lwm yam).

    Koj tsim cov kev lim dej los xaiv los ntawm. Hais tias, lub lim piam GMail, Yahoo Xa Ntawv, Outlook (PC, Mac, thiab lwm yam) cov ntxaij lim dej, thiab lwm yam Yog li, tsis tas yuav tsum muaj cov kev ntsuas cov teeb meem nrog txhua qhov kev pabcuam hauv qab lub hnub, koj tuaj yeem ncig los ntawm kev saib ua ntej ntawm txhua tus kuj tau nrawm.

    … Tej zaum kuv twb hais ntau dhau lawm… 😉

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.