Cov txheej txheem:

Tsim Koj Tus Kheej Tus Kheej: 6 Kauj Ruam
Tsim Koj Tus Kheej Tus Kheej: 6 Kauj Ruam

Video: Tsim Koj Tus Kheej Tus Kheej: 6 Kauj Ruam

Video: Tsim Koj Tus Kheej Tus Kheej: 6 Kauj Ruam
Video: Mam hlub tus kheej lawm xwb~Nkauj Noog Hawj [ Official MV 2023 ] New Song 2024, Hlis ntuj nqeg
Anonim
Tsim Koj Tus Kheej Widget
Tsim Koj Tus Kheej Widget

Cov lus qhia no yuav qhia koj yuav ua li cas los tsim Yahoo yooj yim! Widget. Txog qhov kawg ntawm qhov kev qhia no, koj yuav tau kawm qee yam JavaScript thiab XML.

Kauj ruam 1: Pib

Pib Pib
Pib Pib

Qee cov cuab yeej koj yuav xav tau los ua tus widget yog:- Lub khoos phis tawj nrog Mac OS X lossis Windows Xp/Vista- Cov khoos phis tawj khoos phis tawj. (Notepad yog qhov zoo tshaj plaws.)- Ib qho program kho duab. (Microsoft Xim zoo.)- Ua siab ntev thiab sijhawm.- Yahoo Widgets- Widget Converter Widget Thaum koj muaj cov haujlwm no thiab cov cuab yeej, koj tau npaj txhij mus rau theem ob.

Kauj Ruam 2: Tsim Cov Ntawv Txheej Txheem

Tsim Cov Ntawv Txheej Txheem
Tsim Cov Ntawv Txheej Txheem
Tsim Cov Ntawv Txheej Txheem
Tsim Cov Ntawv Txheej Txheem

Tam sim no koj yuav tsum tsim cov ntawv tais ceev tseg kom nyob hauv tsev txhua cov ntaub ntawv uas tsim los ua tus widget. Qhov qauv zoo li no: -Widget Name | Cov ntsiab lus | Widget.kon Main.js Resources | Txhua yam ntawm cov duab uas tus widget yuav siv Koj tuaj yeem rub tawm lub cuab yeej no los tsim cov ntawv tais ceev tseg Tus Qauv - Reinier Kaper Teeb tus nyiam ntawm tus widget los ntawm txoj cai -nyem rau ntawm ib feem ntawm nws, thiab nyem rau ntawm nyiam. Hloov qhov kev nyiam ntawm Cov Qauv rau hauv qab no: hauv paus: Nkag mus rau koj lub nplaub tshev widget. (Nyob hauv 'Kuv Cov Ntaub Ntawv' ntawm Windows) Tam sim no koj tuaj yeem nyem rau ntawm lub cuab yeej thiab lub npov lus yuav tshwm, nug koj lub npe ntawm tus widget.

Kauj Ruam 3: Tsim Tag Nrho Cov Ntaub Ntawv Xav Tau

Tsim Txhua Yam Ntawm Cov Ntaub Ntawv Xav Tau
Tsim Txhua Yam Ntawm Cov Ntaub Ntawv Xav Tau

Peb yuav pib nrog tsim cov ntaub ntawv widget.xml, uas qhia cov ntaub ntawv cav cav txog koj tus widget. Rub tawm tus qauv a tau tsim rau koj siv. Download tau txuas hauv qab no. Muab cov ntawv tso rau hauv 'Cov Ntsiab Lus' cov ntawv nyob hauv daim nplaub tshev uas muaj lub npe uas koj tau xaiv ua ntej. Qhib cov ntawv nrog cov ntawv nyeem uas koj xaiv thiab hloov YourNameHere nrog koj lub npe. Txuag thiab kaw. Ntawm no peb yuav tsim cov ntaub ntawv.kon uas yog cov ntaub ntawv tseem ceeb uas qhia tus widget yuav ua li cas. Cov ntaub ntawv.kon tsuas yog cov ntaub ntawv XML nrog lub npe hloov tshiab txuas ntxiv. Rub tawm cov ntawv yooj yim widget.kon thiab tseem tso rau hauv 'Cov Ntsiab Lus' nplaub tshev. Ib zaug ntxiv, qhib cov ntawv nrog cov ntawv sau. Thawj kab ntawv qhia tias cov ntaub ntawv yog XML cov ntaub ntawv tsim nrog UTF-8 encoding. Cov cim ntxiv tom ntej ntxiv yog daim ntawv cim npe widget; Tom qab ntawd koj tshaj tawm koj cov chaw, zoo li debug;. Tam sim no koj tau npaj los ntxiv koj lub qhov rai ntu;. Widgets muaj ntau yam khoom uas ua qee yam thiab muaj qee yam khoom. Piv txwv li ntawv cov khoom,, tsim cov ntawv. Nov yog cov npe ntawm qee qhov khoom ntawm cov khoom ntawv: -name (piav qhia tus kheej) -window (depreciated) -data (ntawv los tso saib) -color (piav qhia tus kheej) -size -font -hOffset (aka x) -vOffset (aka y) -width -height Nrog qhov hais tias, cia peb pib coding. Ntxiv cov cai hauv qab no rau hauv kon cov ntaub ntawv, hauv cov cim npe: myTextHello World! BlueArial18left252 Hauv lus Askiv, qhov no teeb tsa cov ntawv nyeem lub npe hu ua myText, uas qhia "Nyob Zoo Ntiaj Teb!" nyob rau hauv font Arial, xim xiav, thiab qhov loj 12. Save koj cov ntaub ntawv kon, thiab txuas ntxiv mus rau qib plaub.

Kauj ruam 4: Zoo siab

Zoo siab!
Zoo siab!

Ob-Nyem rau ntawm kon cov ntaub ntawv thiab koj lub cuab yeej yuav thauj khoom. Nrog koj zoo siab! Koj tau tsim koj thawj tus widget. Tab sis peb tseem tsis tau ua tiav coding tsis tau. Tej zaum koj xav, "Qhov ntawd yog txhua yam?", Txoj cai? Txuas ntxiv mus rau kauj ruam 5 ntxiv qee qhov ua haujlwm rau koj tus widget.

Kauj Ruam 5: Ntxiv Kev Ua Haujlwm

Ntxiv Kev Ua Haujlwm
Ntxiv Kev Ua Haujlwm

Tam sim no peb tab tom ua kom cov cuab yeej tso saib lub sijhawm tam sim no. Qhov no yuav xav tau lub sijhawm uas hloov tshiab txhua feeb, thiab lwm cov ntawv. Cov ntawv tom ntej yuav yog JavaScript cov ntaub ntawv, uas yuav mus rau hauv 'Cov Ntsiab Lus' nplaub tshev. Qhib koj cov ntawv sau thiab tsim cov ntawv hu ua main.js. Txhawm rau ntxiv sijhawm, peb yuav siv "Hnub tim yam khoom". Txhawm rau teeb tsa hnub tim, koj tsim muaj nuj nqi. Ntxiv qhov haujlwm no rau js cov ntaub ntawv: ua haujlwm hloov tshiabText () '{theTime = tshiab Hnub (); theHour = Txoj hlua (theTime.getHours ()); theMinutes = Txoj hlua (theTime.getMinutes ()); myText.data = "Lub sijhawm yog:"+theHour+":"+theMinutes; print ('hloov tshiab');} Koj lub cuab yeej yuav tsis qhia lub sijhawm, vim tias nws tsis paub yuav ua dab tsi nrog cov ntawv js. Txhawm rau saib xyuas qhov no, peb ntxiv qhov kev daws teeb meem no rau hauv Kon cov ntawv, hauv cov cim npe tab sis tsis yog hauv cov ntawv cim: suav nrog ('main.js'); Txhawm rau hloov kho lub sijhawm, peb yuav tsum tsim lub sijhawm, uas mus rau hauv cov ntaub ntawv Kon, hauv cov cim npe tab sis tsis yog hauv cov ntawv cim npe: Txuag cov ntaub ntawv thiab thauj cov widget. Nws yuav tsum qhia lub sijhawm. Yog tias nws tsis ua haujlwm, rub ob lub kon thiab js los ntawm hauv qab no thiab hloov nrog cov qub.

Kauj Ruam 6: Sau tag nrho

Siv cov cuab yeej hloov pauv widget los hloov cov widget rau.widget cov ntaub ntawv. NCO TSEG: Luag cov nplaub tshev uas muaj npe lub npe ntawm koj lub cuab yeej mus rau lub hloov pauv, tsis yog kon file. Yog tias koj xav mus txuas ntxiv nrog koj lub cuab yeej, khaws qee cov peev txheej ntawm no. Ntawm no yog cov npe uas koj tuaj yeem sim ua kom tiav nrog koj tus widget:-Ntxiv qhov nyiam los tswj cov font siv tag, thiab font sub-tag- Ntxiv qee qhov kev ua haujlwm zoo li onClick siv lossis lossis tags.-Zaub cov duab los ntawm cov ntaub ntawv hauv ib cheeb tsam siv cov duab duab vam tias koj pom cov ntawv qhia no muaj txiaj ntsig thiab koj yuav txaus siab rau qhov muaj peev xwm tsis kawg ntawm cov cuab yeej, Hunter

Pom zoo: