Sebenzisa i-jQuery ukuya kwiJuice kwiPhepha leWebhu eliQhelekileyo

jquery

IJavaScript ayizizo iilwimi ezilula ukuzifunda. Uninzi lwabaphuhlisi bewebhu abaqonda i-HTML esemgangathweni boyikiswa yiyo. Uhlobo olutsha lwezakhelo zeJavaScript sele zilapha okwexeshana ngoku kwaye ziqala ukubetha kwiwebhu.

Zonke izikhangeli zangoku ziyakwazi ukusebenzisa iJavaScript ngokufanelekileyo (ezinye iinguqulelo zakutshanje ziye Firefox bazikhuphile ngenjini zabo, nangona kunjalo). Ndingacebisa ukuba ukhuphele kwaye usebenzise iFirefox- the plugins iyodwa yenza ukuba ibaluleke kakhulu.

jQuery Isakhelo seJavaScript ebesizama ngakumbi nangakumbi kutshanje. Xa ndibeka isibambi ndawo sokuqala ngokutsha, besingenawo umxholo owoneleyo wesiza esipheleleyo kodwa besifuna ukuseta iphepha elimnandi elichaza into ezayo. Kwaye besifuna ukuyenza kwimizuzu embalwa!

jQuery yenza nje iqhinga.

Yenza uphando nge-jQuery + malunga nayo nayiphi na into, kwaye uya kufumanisa ukuba abaphuhlisi bakhe izisombululo, ezibizwa ngokuba ziiplagi, ezikulungeleyo ukuhamba! Kule meko, ndenze uphando lwe "jQuery carousel" kwaye ndafumana into emnandi, ebanzi Isisombululo se-jQuery carousel kwiDynamic Drayivu.

Enye into emnandi malunga ne-jQuery kukuba yiyo ikhowudi ngoku ibanjwe nguGoogle. Ngenxa yoko, awudingi ukufaka i-jQuery kwiserver yakho, kwaye abafundi bewebhusayithi yakho akufuneki bayikhuphele rhoqo. Ukuba bebeye kwindawo enye enesalathiso kwi-jQuery, zigcinwa ngokuzenzekelayo ukuze zisetyenziswe kwindawo yakho!

Yongeza nje ikhowudi ngaphakathi kwethegi yakho yentloko kwaye ucimile kwaye usebenza ngejQuery:


Ukuqhuba i-carousel, kuye kwafuneka ndilayishe kwaye ndibhekise kwiskripthi se-stepcarousel:


Emva koko, ukulungisa iphepha kwakulula! Ndibeka i-carousel yam ngaphakathi kwe-div ebizwa mythulum kunye nesiqwengana se iipaneli ngaphakathi kwe-div ebizwa nekliphu. Ndongeze i-chunk encinci yekhowudi yokuseta ngaphakathi kwethegi yomzimba wam.

Unokwenza ngokusesikweni isenzo kancinci. Kule meko ndaguqula iskripthi ukuba sisebenze ngokuzenzekelayo xa iphepha lilayisha. Ndilungelelanise isantya kunye nexesha eliboniswa yiphaneli nganye, kunye namaqhosha okujikeleza ngesandla iipaneli ngasekhohlo nasekunene. Enye into epholileyo yale plugin-xa ufika kwipaneli yokugqibela, yiyo buyisela umva buyela kwelokuqala!

Ukuba uyoyika inkqubo okanye iJavaScript iyoyikisa, jQuery inokuba sisisombululo kuwe. Uninzi lwexesha, kufuneka ukope kwaye uncamathisele izingqinisiso zefayile, ukuhlela useto olumbalwa, ukumisa iphepha ngokuchanekileyo… kwaye uyasebenza kwaye uyasebenza.

3 Comments

  1. 1

    Ndisakha kwakhona iwebhusayithi yam kwaye ndijonge ukusungulwa kule mpelaveki ukuba yonke into ihamba kakuhle. Ndisebenzisa i-jQuery kwimiba embalwa yayo kwaye andinazikhalazo ukuza kuthi ga ngoku. Yonke into ibonakala inikezela ukuba "iwebhu 2.0" ivakalelwa kwaye sinethemba lokuba iya kuncoma kuphela indawo egqityiweyo.

Ingaba ucinga ntoni?

Le sayithi isebenzisa i-Akismet ukunciphisa ugaxekile. Funda indlela idatha yakho yokubhaliweyo isetyenziswe ngayo.