Amfani da jQuery don Juice Pagean Gidan Yanar Gizo na Yau da kullun

jquery

JavaScript ba shine mafi sauƙin harsuna don koyo ba. Yawancin masu haɓaka yanar gizo waɗanda suka fahimci daidaitaccen HTML suna tsoratar da su daidai. Wani sabon nau'in tsarin JavaScript ya kasance na ɗan lokaci yanzu kuma yana fara fara buga yanar gizo a gaba.

Duk masu bincike na zamani suna iya gudanar da JavaScript yadda yakamata (wasu gyare-gyare kwanannan zuwa Firefox da gaske sun haɓaka injin su, kodayake). Ina ba da shawarar bayarwa da amfani da Firefox - the plugins shi kadai yasa ba shi da kima.

jQuery tsari ne na JavaScript Na jima ina kara yin gwaji. Lokacin da na sanya mai wurin zama don sabon farawa, ba mu da wadataccen abun ciki don cikakken rukunin yanar gizo amma muna so mu saita kyakkyawan shafi wanda ke bayanin abin da ke zuwa. Kuma muna so mu yi shi a cikin 'yan mintoci kaɗan!

jQuery yayi dabara kawai.

Yi bincike don jQuery + kusan komai, kuma zaku sami cewa masu haɓakawa sun gina mafita, waɗanda ake kira plugins, waɗanda suke shirye su tafi! A wannan yanayin, Na yi bincike don "jQuery carousel" kuma na sami abin ban sha'awa, cikakke jQuery carousel bayani akan Dynamic Drive.

Wani abu mai kyau game da jQuery shine hakan ne lambar yanzu Google ce ke karɓar bakinta. A sakamakon haka, baku buƙatar shigar da jQuery zuwa sabarku ba, haka kuma masu karatun gidan yanar gizonku ba sa sauke shi kowane lokaci. Idan sun kasance zuwa wani shafin tare da batun jQuery, ana ajiye shi ta atomatik don amfani tare da rukunin yanar gizonku!

Kawai ƙara lambar a cikin alamar kanka kuma kun tafi kuna gudana tare da jQuery:


Don gudanar da carousel, dole ne in loda kuma in yi la'akari da rubutun stepcarousel:


Bayan haka, gyara shafin ya kasance mai sauƙi! Na sanya carousel na a cikin dakin da aka kira mygallery da tsiri na bangarori a cikin kiran da aka kira bel. Sannan na kara karamin kundi na lambar saituna a jikin jikina.

Kuna iya siffanta aikin kadan. A wannan yanayin na gyara rubutun don gudana ta atomatik lokacin da shafin yayi lodi. Na keɓance saurin da tsawon lokacin da kowane kwamiti ke nunawa, da maɓallan don juya juzu'in bangarorin da hannu hagu da dama. Wani fasali mai kyau na wannan kayan aikin - lokacin da kuka isa ga rukuni na ƙarshe, shi sake dawowa koma na farko!

Idan kuna jin tsoron shirye-shirye ko JavaScript yana tsoratarwa, jQuery na iya zama mafita a gare ku. Mafi yawan lokuta, kawai kuna buƙatar kwafa da liƙa bayanan bayanan fayil, shirya settingsan saituna, tsara shafin daidai… kuma kuna tafiya kuna gudana.

3 Comments

  1. 1

    A yanzu haka ina sake gina gidan yanar gizina da nufin kaddamarwa a karshen wannan makon idan komai ya tafi daidai. Ina amfani da jQuery don yan bangarorin sa kuma ba ni da korafi har yanzu. Duk abin da alama yana ba da wannan "yanar gizo na 2.0" yana jin kuma da fatan kawai zai yaba shafin da aka gama.

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.