Yuav Ua Li Cas Ntxig Qhov Txuas Rau Hauv Chij

Cov txheej txheem:

Yuav Ua Li Cas Ntxig Qhov Txuas Rau Hauv Chij
Yuav Ua Li Cas Ntxig Qhov Txuas Rau Hauv Chij

Video: Yuav Ua Li Cas Ntxig Qhov Txuas Rau Hauv Chij

Video: Yuav Ua Li Cas Ntxig Qhov Txuas Rau Hauv Chij
Video: Qhia txog tus neeg ua pa tsw ntxhiabu0026tus neeg pob tseg nrov 2 yuav ua li cas 2024, Tej zaum
Anonim

Yog tias koj muaj daim chij, tab sis tsis muaj qhov npaj tau ntawm html-code los ntxig rau nws rau hauv nplooj ntawv, tom qab ntawd ntxiv cov txuas rau koj xav tau tsis yog qhov nyuaj. Txawm hais tias daim chij tsim los siv cov thev naus laus zis siv tshuab. Cov kev xaiv uas tsim nyog rau kev koom tes txuas rau chij hauv cov duab thiab teeb nraus hauv qhov chaws tau piav qhia hauv qab no.

Yuav ua li cas ntxig qhov txuas rau hauv chij
Yuav ua li cas ntxig qhov txuas rau hauv chij

Cov Lus Qhia

Kauj ruam 1

Yog tias tus chij nyob rau hauv ib qho ntawm cov qauv nraaj (gif, jpg, png, bmp), ces nws yuav txaus kom muab cov duab tso rau sab hauv cov kab ntawv txuas. Ua ntej, tsim cov ntawv cim. Hauv cov ntawv cim ntawm lub vev xaib (HTML - HyperText Markup Language - "hypertext markup language"), nws cov lus piav yooj yim tshaj plaws zoo li qhov no: Ntawm no "qhov chaw nyob txheeb ze" ntawm daim duab tau teev nyob rau hauv src attribute. Hauv cov ntawv no, qhov browser yuav xav tias daim duab nyob hauv qhov qub hauv koj qhov server uas nplooj ntawv nws tus kheej nyob qhov twg yog daim chij. Tab sis nws yog qhov zoo dua los teev lub npe "tsis muaj chaw nyob":

Kauj ruam 2

Muaj ob peb tus cwj pwm ntxiv los ntxiv rau qhov no. Ob qho kev sib tw yuav qhia chij qhov ntev (qhov siab thiab dav). Cov no yog cov kev xaiv xaiv tau - cov duab yuav raug tso tawm yam tsis muaj lawv yog tias txhua yam mus zoo thaum nplooj ntawv thauj khoom ntawm lub vev xaib mus rau qhov browser. Tab sis yog tias daim duab rau qee qhov laj thawj tsis yog thauj khoom, ces qhov tsis muaj qhov ntev yuav tuaj yeem ua rau qhov tseeb tias tag nrho lwm cov qauv tsim yuav tawm ntawm qhov chaw. Qhov luaj li cas loj yuav zoo li no:

Kauj ruam 3

Los ntawm lub neej ntawd, qhov browser rub xiav ciam teb ib puag ncig cov duab txuas. Txhawm rau zam qhov no, ntxiv tus cwj pwm ciam teb nrog tus tsis suav tus nqi rau chij cim npe:

Kauj ruam 4

Ntxiv ib qho ntxiv cwj pwm (npe), uas yuav muaj cov ntawv sau rau tus tooltip thaum koj hover tus nas tus chij dhau lub chij:

Kauj ruam 5

Koj tau npaj cov duab cim nrog cov cwj pwm tseem ceeb tshaj plaws, tam sim no koj yuav tsum tau muab tso rau hauv qhov txuas tag. Txhua qhov hyperlink yog tsim los ntawm ob daim pib - qhib thiab kaw: Lub cim qhib muaj href tus cwj pwm, uas muaj qhov chaw nyob rau xa qhov kev thov. Ntawm ob kab ntawv txuas no thiab tso cov cim chij: Cov HTML code ntawm chij nrog qhov txuas yog npaj txhij, tsis txhob hnov qab hloov: - hauv href attribute: "https://kakprosto.ru" nrog qhov chaw nyob ntawm koj qhov txuas rau qhov chij; - hauv src qhov cwj pwm: "https://kakprosto.ru/banner.gif" rau qhov chaw nyob ntawm daim duab rau chij; - hauv qhov dav ntaus nqi: "468" rau qhov dav ntawm koj chij; - hauv qhov siab tus cwj pwm: "60" rau qhov siab ntawm koj lub chij; - hauv cov npe ntaus cim: "Nws yog tus chij!" pop-up ntawv rau koj chij;

Kauj Ruam 6

Tag nrho cov saum toj no xa mus rau cov duab chij, tab sis tseem muaj cov chij ua tau siv tshuab thev naus laus zis. Yuav kom ntxig qhov txuas rau hauv cov yeeb yaj kiab flash hauv tus qauv kev ua, koj yuav tsum tsis muaj lub chij nws tus kheej nkaus xwb, tab sis kuj yog nws cov cai. Tsis tas li, koj tuaj yeem hloov kho cov cai thiab tom qab ntawd sau cov Flash movie tsuas yog nyob hauv tus kws kho ntawv tshwj xeeb - cov ntawv nyeem tsis tu ncua tsis haum rau qhov no. Txawm li cas los xij, muaj ib txoj hauv kev kom tau txais txhua yam kev nyuaj no, txwv koj tus kheej kom kho tsuas yog HTML thiab CSS (Cascading Style Sheets - "cascading style sheet"). Cov lus CSS siv rau cov ntawv qhia ntxaws dua (piv rau HTML) cov lus qhia ntawm cov tsos ntawm cov nplooj ntawv. Nrog nws cov kev pab, ntau theej qauv multilayer tuaj yeem tsim nyob rau ntawm nplooj ntawv. Peb yuav siv qhov no los tso Flash banner tso rau hauv qab txheej, thiab muab tso nrog txheej nrog txuas txuas saum nws, HTML code ntawm lub chij yuav zoo li no:

Tsis txhob hnov qab hloov cov qhov dav thiab qhov siab nyob hauv nws (hauv ob qho chaw), lub npe chij banner.swf (hauv ob qhov chaw) thiab qhov chaw nyob txuas https://kakprosto.ru (hauv ib qho chaw). Thiab SCC code sib haum rau cov HTML code no yuav tsum zoo li no:

div.linkedFlashContainer {txoj haujlwm: tus txheeb ze; z-Performance index: 1; ciam teb: 0px; dav: 468px; qhov siab: 60px}

a.flashLink {txoj hauj lwm: txog; z-Performance index: 2; dav: 468px; qhov siab: 60px; tom qab: url (spacer.gif) tsis muaj rov tso;}

Daim duab pob tshab (muaj qhov loj me) hu ua spacer

Pom zoo: