Qhov kev ua haujlwm zoo li lub pob "up" rau lub xaib ua rau cov peev txheej hauv Is Taws Nem yooj yim dua rau nws cov qhua. Nws pab koj yooj yim txav los ntawm txhua qhov chaw ntawm nplooj ntawv mus rau sab saum toj ntawm nplooj ntawv. Qhov no yog qhov yuav tsum tau rau cov khw muag khoom online thiab cov chaw nrog cov khoom loj uas yuav tsum tau ua kom ntev mus.
nws yog dab tsi
Tam sim no, feem ntau cov vev xaib tsis muaj lub luag haujlwm xws li khawm "up", thiab tsis muaj dab tsi tseem ceeb hauv qhov no. Tab sis nws txoj kev siv tuaj yeem ua rau muaj txiaj ntsig zoo rau ob qho tib si rau cov peev txheej hauv Internet thiab rau nws cov qhua.
Nyob zoo rau cov qhua
Nws feem ntau tshwm sim thaum nplooj ntawv ntawm cov peev txheej hauv Is Taws Nem tau thauj khoom hnyav nrog cov ntaub ntawv, thaum cov ntaub ntawv xov xwm siv ntau qhov chaw thiab koj yuav tsum mus rau nplooj ntawv nrog nas log. Ntxiv rau qhov no, qhov kawg ntawm tsab xov xwm yuav muaj ntau cov lus hais txog nws.
Thaum tus neeg tuaj saib nyeem ib tsab xov xwm, tsis muaj dab tsi nyuaj txog kev txav mus rau nplooj ntawv, tab sis thaum cov ntawv tau xaus thiab koj yuav tsum tau txav mus los, nws pib nkees me ntsis. Cov neeg feem coob yuav tsuas yog tub nkeeg dhau mus rau lub sijhawm ntev, thiab lawv tsuas yuav kaw qhov chaw, tsis yog taug kev mus ncig nws qhov chaw nthuav dav.
Siv khawmkom tam sim txav mus rau sab saum toj ntawm nplooj ntawv ua rau nws yooj yim dua los siv sijhawm ntawm qhov chaw.
Nyob zoo rau cov peev txheej hauv Internet
Qhov zoo rau cov peev txheej nws tus kheej yog los ntawm cov xwm txheej yav dhau los, vim qhov yooj yim ntawm qhov chaw navigation txhim kho tus cwj pwm zoo vim tias txhua tus neeg tuaj saib yuav ua haujlwm ntau dua hauv lawv qhov kev ua thiab txav mus rau lwm nplooj ntawv.
Yog li, cov kev coj cwj pwm no cuam tshuam rau tus cwj pwm ntawm txhua qhov kev tshawb fawb xyaw rau ntawm qhov chaw thiab ua rau muaj kev txhim kho hauv txoj haujlwm hauv kev tshawb fawb.
Yuav ua li cas txhawm rau "up" khawm ntawm lub xaib koj tus kheej
Kev sib txuas ntxiv. Koj tuaj yeem ua ib lub khawm scroll rau ib lub xaib ntawm ib qho ntawm CMS koj tus kheej los ntawm kev ua raws li ob peb kauj ruam yooj yim heev:
- duab tsim;
- creating a script;
- create khawm style;
- ntxiv rau qhov chaw.
Npaj duab
Txhawm rau ntxiv "nce" khawm ntawm lub xaib, ua ntej koj yuav tsum ua lub cim nws tus kheej, thaum nias, tus neeg siv yuav txav mus rau sab saum toj ntawm nplooj ntawv. Txhawm rau ua qhov no, koj tuaj yeem siv cov kev xaiv npaj txhij, uas koj tuaj yeem xaiv qhov tsim nyog tshaj plaws.
txhawm rau txhim kho lub ntsej muag ntawm lub pob, peb yuav tsum tau ua qee qhov kev txhim kho, uas yog, ua kom lub sprite uas tso cai rau peb los ua ke cov duab tom qab raws li CSS, yog li tsim cov animation tawm ntawm lawv.
Rau cov duab ua haujlwm, koj tuaj yeem siv txhua tus neeg kho. Tab sis qhov kev xaiv yooj yim tshaj plaws yuav yog kev pabcuam online. PIXLR, vim tsis muaj dab tsi rub tawm ntawm no thiab koj tuaj yeem siv ncaj qha rau hauv koj tus browser.
Txhawm rau pib, hauv qhov rai editor uas tshwm sim, xaiv qhov "Upload duab los ntawm lub computer" teb. Cia peb ua daim duab ntawm lub foob pob ua ntxaij ua piv txwv.
Yog tias qhov ntev ntawm lub cim xaiv loj dhau, ces koj yuav tsum tau hloov kho me me. Txhawm rau ua qhov no, mus rau cov ntawv qhia zaub mov saum toj kawg nkaus thiab xaiv "Hloov" teb, thiab tom qab "Free transform …"
Tom ntej no, cov cim tshwj xeeb tshwm nyob ib sab ntawm daim duab, txav uas koj tuaj yeem hloov qhov loj ntawm daim duab. Txhawm rau tswj hwm qhov sib npaug, koj tuaj yeem siv tus yuam sij Hloov, tuav uas koj yuav tsum txav cov cim xiav. Thaum kawg ntawm cov kauj ruam no, tau txais daim duab ntawm lub foob pob hluav taws.
kauj ruam tom ntej yog tsim ib daim qauv ntawm txheej.
Tam sim no koj yuav tsum tau txav daim duab ntawm lub foob pob hluav taws los ntawm txheej tshiab mus rau me ntsis. Txhawm rau ua qhov no, nws yuav yooj yim los siv cov cuab yeej txav mus los, uas nyob rau hauv kab thib ob ntawm cov ntawv qhia zaub mov sab laug, thiab cov xub nce rau ntawm cov keyboard.
Tam sim no peb yuav tsum ua daim duab saum toj kawg nkaus dub thiab dawb. Qhov no tuaj yeem ua tiav siv cov khoom "Kho" - "Hue / Saturation" hauv cov ntawv qhia zaub mov saum toj kawg nkaus. Txhawm rau ua kom tiav desaturation, Saturation slider yuav tsum tau teem rau -100. Qhov kev txiav txim no yuav tso cai rau koj los tsim cov nyhuv uas lub pob "Up" yuav tig los ntawm dub thiab dawb mus rau xim thaum koj hla nws.
Qhov kawg kov yog tshem tawm qhov chaw ntxiv nyob ib ncig ntawm ob daim duab. Txhawm rau ua qhov no, xaiv cov khoom "Qhib" los ntawm cov ntawv qhia zaub mov sab laug thiabpeb xaiv tsuas yog ob lub foob pob hluav taws hauv ib lub duab plaub. Txhawm rau ua qoob loo, nias Enter.
Qhov tshwm sim yog ib daim duab uas tsis muaj qhov chaw dawb ntxiv. Koj yuav tsum tau sau qhov dav thiab qhov siab ntawm cov duab uas tau tshwm sim, vim tias cov ntaub ntawv no yuav muaj txiaj ntsig nyob rau theem tom ntej.
Txhawm rau txuag, koj yuav tsum nyem rau ntawm "Cov Ntaub Ntawv" - "Txuag", qhov twg hauv kab lus laug "Kuv Lub Computer" peb sau lub npe ntawm daim duab (tsuas yog lus Askiv layout), xaiv hom ntawv (hauv qhov no case, PNG) thiab nias lub pob "Yes".
Cov ntaub ntawv nrog cov ntawv ntawm "nce" khawm
Koj tsis tas yuav sau ib tsab ntawv rau qhov no. Nws yuav siv tau rau pej xeem version, ua qee qhov kev hloov kho rau tus lej tiav.
Txhawm rau ua qhov no, koj yuav tsum rub tawm cov code editor. Qhov nrov tshaj plaws thiab kev xaiv dawb yog Notepad ++. Tom qab txhim kho nws, koj yuav tsum luam thiab muab tag nrho cov cai no rau hauv nws:
$(document).ready(function(){$(window).scroll(function() {if ($(this).scrollTop() > 0) {$('scroller').fadeIn (); } else {$('scroller').fadeOut();}}); $('scroller').click(function () {$('body, html').animate({scrollTop: 0}, 400); rov cuav; }); }); |
Tom ntej, nyem rau ntawm cov ntawv qhia zaub mov saum toj kawg nkaus "Cov ntaub ntawv" - "Txuag li … ", tom qab ntawd peb khaws cov cai hauv.js hom. Tom qab ntawd, koj tuaj yeem siv cov cai no ntawm koj qhov chaw los ntawm kev xa cov ntawv sau thiab cov duab rau nws siv kev sib txuas FTP.
Install on site
Txhawm rau teeb tsa lub pob nyem rau ntawm qhov chaw, koj yuav tsum tso rau hauvxav tau qhov chaw code. Koj yuav tsum nkag rau nws ua ntej tag.
Creating a Button Style with CSS
Feem ntau, khawm "nce" rau qhov chaw nyob hauv qab ("footer").
Cov lej hauv qab no yuav tsum muab ntxiv rau ntawm qhov chaw style.css cov ntaub ntawv:
/Up Button/ .scrollTop{ background:url('images/up.png') 0 0 no-repeat;/native image path/ width:39px;/ khawm width/ siab:96px;/50% khawm qhov siab/ qab:5px;/ hauv qab padding ntawm qhov chaw ruaj/ left:89%;/ txav laug/ }.scrollTop:hover{ background-position:0 -108px; } / keeb kwm offset/" |
Hauv qhov no, cov duab dav thiab qhov siab yuav xav tau. Nws tseem tsuas yog nkag mus rau cov ntaub ntawv tau txais mus rau hauv cov cai, thiab lub pob "up" rau lub xaib yuav npaj txhij! Dab tsi ntxiv?
Up khawm rau Wordpress site
Rau CMS no, khawm "Up" tuaj yeem tsim siv plugins, nrog rau nws tus kheej.
Txoj kev plugins yog qhov yooj yim tshaj plaws thiab yooj yim rau nruab, vim nws tsuas yog xav kom koj nyem rau ntawm lub pob nruab thiab teeb tsa tag nrho cov haujlwm hauv cov ntawv qhia zaub mov plugin.
Qhov kev xaiv tom kawg yuav tsum tau ua kom ceev faj, txij li nrog nws yuav yooj yim kis tus kab mob ntawm lub xaib. Qhov kev xaiv nrov tshaj plaws thiab pov thawj yog lub plugin hu ua Scroll Back To Top. Koj tuaj yeem rub tawm nws siv tus qauv tshawb rau Wordpress plugins.
Qhov txuas ntxiv no muajntau functionality, thiab nws yuav yooj yim heev rau customize lub "up" khawm rau ib tug Wordpress site. Nws tsis yog qhov tsim nyog los hloov tag nrho cov txiaj ntsig ntawm txhua qhov, koj tsuas yog yuav tsum teeb tsa cov tsos thiab qhov chaw ntawm lub pob ntawm nplooj ntawv nplooj ntawv.
Raws li koj tuaj yeem pom, teeb tsa khawm nrog plugins yooj yim heev. Tab sis muaj ib qho tseem ceeb nuance, uas yog tias txhua lub plugin tau nruab loads CMS. Qhov no tej zaum yuav cuam tshuam qhov ceev ntawm Internet kev pab. Tias yog vim li cas feem ntau cov tswv ntawm qhov chaw sim ua txhua yam kev hloov pauv ncaj qha rau hauv cov cai, thiab tsis yog nrog kev pab ntawm lwm tus neeg txuas ntxiv. Koj tuaj yeem ua "up" khawm rau qhov chaw HTML, uas yuav txo qis cov peev txheej siv.
Ua ntej hloov tag nrho Wordpress system cov ntaub ntawv, koj yuav tsum tau thaub qab lawv. Tom qab ntawd koj tuaj yeem ua raws txhua kauj ruam los tsim koj tus kheej khawm, piav qhia saum toj no.
Kab "up" rau Joomla
CMS Joomla kuj txhawb kev teeb tsa ntawm plugins, zoo li Wordpress. Qhov kev vam meej tshaj plaws ntawm lub pob "up" rau qhov chaw ntawm Joomla 3 yog qhov txuas ntxiv hu ua Sab saum toj ntawm nplooj ntawv.
Nyob hauv CMS no, txhua lub plugin tuaj yeem ntsia tau los ntawm "Extension Manager". Rau qhov no koj xav tau:
- download lub plugin hauv Is Taws Nem;
- nias rau ntawm "Xaiv" khawm hauv tus tswj hwm txuas ntxiv;
- xaiv downloaded archive;
- nias "Download" thiab nruab.
Tam sim no koj yuav tsum qhib nws hauv "Plugin Manager". Rau qhov nokoj yuav tsum mus rau ntu no, nrhiav lub plugin thiab hloov nws cov xwm txheej mus rau "enabled".
Cov kauj ruam tom ntej yog txhawm rau teeb tsa txhua qhov txuas ntxiv uas siv tib seem uas koj yuav tsum nrhiav "Basic parameters" ntawm cov plugin no ntawm sab xis.
Sab saum toj ntawm nplooj ntawv muaj cov haujlwm hauv qab no:
- Khiav hauv / tus thawj tswj hwm - ua kom muaj kev xaiv tsis yog hauv Internet cov peev txheej xwb, tab sis kuj tseem nyob hauv Joomla CMS vaj huam sib luag nws tus kheej.
- Button Reveal Position - pes tsawg pixels tus neeg siv yuav tsum rov qab thiaj li kom khawm nce tshwm.
- Omit Button Text - muaj cov ntawv nyeem ntawm lub pob.
- Ib txwm nyob rau saum - nplooj ntawv nplooj ntawv yuav ib txwm pom los ntawm nws sab saum toj. Thaum siv cov thauj tog rau nkoj mus rau qhov chaw tshwj xeeb ntawm nplooj ntawv, qhov kev xaiv no tsis tas yuav tsum tau qhib.
- Smooth Scroll - ua rau nplooj ntawv scrolling smoother.
- Scroll Duration - lub sij hawm tom qab uas nplooj ntawv yuav tag nrho txav mus rau qhov pib.
- Scroll Transition - Ntxiv qhov pom kev pom ntau ntxiv rau scrolling.
- Kev hloov pauv yooj yim - "tsis muaj zog" kev txav mus rau sab saum toj ntawm nplooj ntawv.
- Txuas Qhov Chaw - qhov chaw ntawm lub cim. Los ntawm lub neej ntawd, lub pob nyob rau sab xis sab xis.
- Siv Styles - tus kheej khawm style, uas tuaj yeem teeb tsa hauv daim teb hauv qab no. Yog tias hloov mus rau qhov tsis zoo, ces txhua qhov kev teeb tsa style yuav raug coj los ntawm lub ntsiab lus nquag ntawm lub xaib.
- Link Style - ib daim teb rau nkag rau koj lub khawm style tsis.
Txhawm rau kho qhov style ntawm "nce" khawm, koj yuav tsum muaj tsawg kawg nkausCCS kev paub. Txwv tsis pub, koj yuav tsum hloov tus nqi ntawm qhov kawg parameter rau "Tsis yog".
Lwm qhov tseem ceeb tshaj plaws yog qhov kev sau ib txwm nyob ntawm lub cim muaj cov ntawv Askiv: Rov qab mus rau saum. Cov ntawv no tsis tuaj yeem muaj nyob rau ntawm qhov chaw hais lus Lavxias, yog li koj tsuas yog lov tes taw nws hauv cov plugin tsis muaj lossis hloov mus rau Lavxias.
Txhawm rau hloov cov ntawv sau no, koj yuav tsum mus rau lub vev xaib server siv FTP lossis tus thawj tswj cov ntaub ntawv tsim rau hauv hosting. Tom ntej no, hauv phau ntawv "/administrator/language/en-GB/" koj yuav tsum nrhiav cov ntaub ntawv hu ua "en-GB.plg_system_topofthepage.ini".
Ua ntej hloov cov ntawv nyeem, koj yuav tsum hloov qhov encoding ntawm daim ntawv no rau UTF-8. Qhov no yuav ua rau cov zaub ib txwm muaj ntawm cov ntawv Lavxias.
Tom ntej no peb pom kab hauv qab no:
" PLG_SYS_TOPOFTHEPAGE_GOTOTOP="Rov qab mus rau saum"" |
thiab hloov cov kab lus hauv cov lus hais rau Lavxias. Koj tuaj yeem siv cov lus xws li "Up!", "Rau saum!" los yog “Up!”.
Thaum kawg, koj yuav tsum khaws cov ntaub ntawv hloov kho thiab kos rau lub pob "up" rau qhov chaw ntawm Joomla.
Up khawm rau Ucoz
khawm "nce" rau qhov chaw ntawm Ucoz yuav tsum tau ua tiav siv cov cai txhaj tshuaj, vim nws tsis tuaj yeem txuas plugins rau CMS no. Txawm li cas los xij, qhov no tsis xav tau kev kawm ntev ntawm cov ntaub ntawv kaw lus thiab tshawb nrhiav cov kab tsim nyog, koj tsuas yog yuav tsum tau muab cov lej me me rau hauv qhov chaw zoo.
To nruab pebxav tau:
- mus rau "Control Vaj Huam Sib Luag -> Tsim -> Tsim Kev Tswj Xyuas (cov qauv) -> Hauv qab ntawm qhov chaw;
- ntxig tsab ntawv (muaj nyob rau ntawm lub vev xaib raug cai ntawm qhov project thiab cov khoom siv thib peb).
Zoo kawg
Tom qab ntawd, lub cim yuav tshwm nyob rau hauv kaum sab xis sab xis, txav tus neeg siv mus rau sab saum toj ntawm nplooj ntawv.
Raws li koj tuaj yeem pom, teeb tsa lub pob rov qab rau ib qho ntawm CMS tsis yog qhov nyuaj tshwj xeeb. Koj tuaj yeem siv ob qho tib si kev teeb tsa tsis siv neeg (plugins) thiab phau ntawv qhia. Txawm li cas los xij, qhov kev xaiv tom kawg tseem yog qhov tsim nyog tshaj plaws, vim nws tsis cuam tshuam rau kev ua haujlwm ntawm lub xaib.
Koj tuaj yeem siv lub pob "rov qab mus rau saum" rau lub vev xaib HTML kom txo qis kev siv ntawm qhov chaw cov peev txheej, vim tias ntau qhov txuas ntxiv tuaj yeem cuam tshuam tsis zoo rau kev ua haujlwm ntawm cov peev txheej. Ib qho "up" khawm plugin yuav tsis tuaj yeem cuam tshuam zoo rau lub sijhawm thauj khoom ntawm nplooj ntawv nplooj ntawv, tab sis feem ntau tus neeg siv muaj tsawg kawg kaum lub plugins ntsia ntawm CMS. Hauv qhov no, ib qho plugin tuaj yeem cuam tshuam rau kev ua haujlwm ntawm lub xaib nplooj ntawv.