Yuav Sau Kab Ntawv Rau Ntawm Tus Xaib

Cov txheej txheem:

Yuav Sau Kab Ntawv Rau Ntawm Tus Xaib
Yuav Sau Kab Ntawv Rau Ntawm Tus Xaib

Video: Yuav Sau Kab Ntawv Rau Ntawm Tus Xaib

Video: Yuav Sau Kab Ntawv Rau Ntawm Tus Xaib
Video: qhia saib Hmoov, xyoo 2021 rau txhua tus. seb xyoo no koj xyoo txoj hmoo zoo li cas. 2024, Hlis ntuj nqeg
Anonim

Koj tuaj yeem tsim kev tsim kho kom yooj yim thiab xav paub ntxiv hauv lub xaib siv cov txuas. Cov txheej txheem no tso cai rau koj los ua kom tus neeg siv khoom nyob ntawm nplooj ntawv cov khoom siv yooj yim raws li qhov ua tau.

Yuav sau kab ntawv rau ntawm tus xaib
Yuav sau kab ntawv rau ntawm tus xaib

Cov Lus Qhia

Kauj ruam 1

Ib qho txuas twg yog tsim los siv cov ntawv uas yuav tsum raug kaw nrog. Cov nplooj ntawv chaw nyob yog qhia nyob rau hauv nqe lus tom qab href tus cwj pwm. Qhov tshwm sim yuav tsum muaj tej yam zoo li no:

Lub Vev Xaib

Mus rau qhov chaw yees duab

Txhawm rau taw rau nplooj ntawv tam sim no nyob rau hauv Is Taws Nem chaw, qhia nws qhov chaw nyob, piv txwv li, KakProsto.ru. Txhawm rau txuas rau cov ntawv html hauv koj lub computer, sau txoj hauv kev rau nws. Qhov tsim nyog, nws yog qhov tsim nyog kom hloov mus rau lus Askiv kom tshem tawm cov ntaub ntawv ntev uas tshwm sim thaum luam ib cov ntawv Lavxias-lus Lavxias nrog nws cov ntawv txhais lus tom qab rau hauv hom ntawv uas xav tau. Piv txwv li, cov ntaub ntawv: /// E: /% D0% A3% D1% 87% D0% B5% D0% B1% D0% B0 / XXX% 20% D0% BF% D0% B0% D0% BF% D0% BA% D0% B0 /% D1% 81% D0% B0% D0% B9% D1% 82% 29% 29% 29/11% 20% D1% 81% D1% 82% D1% 80% 20% D1% 80 % D0% B0% D0% B7% D0% BD% D0% BE% D0% B5 /% D0% BE% D0% B1% D0% BE% 20% D0% B2% D1% 81% D0% B5% D0% BC% 20% D0% B3% D0% BB% D0% B0% D0% B2% D0% BD% D0% B0% D1% 8F.html"

Kauj ruam 2

Qhov txuas txuas tuaj yeem teeb tsa hauv daim ntawv ntawm daim duab. Ua qhov no, ntim cov duab ntawm tus thiab: cim npe. Txhawm rau qhib cov duab puv ntoob ntawm qhov loj dua thaum koj hover dhau lub cim me me, koj yuav tsum tau siv cov pawg.

Los npaj lwm qhov kev hloov pauv ntawm cov duab, txhua tus uas yuav tau nthuav tawm ua qhov txuas thiab ua rau cov nplooj ntawv sib txawv, siv cov cai:

Lub Vev Xaib

div # rotator {txoj hauj lwm: txheeb ze; qhov siab: 150px; npoo-sab laug: 15px;}

div # rotator ul li {ntab: sab laug; txoj hauj lwm: txog; sau-style: tsis muaj;}

div # rotator ul li.show {z-index: 500;}

ua haujlwm theRotator () {

$ ('div # rotator ul li'). css ({opacity: 0.0});

$ ('div # rotator ul li: thawj'). css ({opacity: 1.0});

setInterval ('tig ()', 5000);

}

muaj nuj nqi tig () {

var current = ($ ('div # rotator ul li.show')? $ ('div # rotator ul li.show'): $ ('div # rotator ul li: thawj'));

var next = ((current.next (). ntev)) ((current.next (). hasClass ('qhia'))? $ ('div # rotator ul li: thawj'): current.next ()): $ ('div # rotator ul li: thawj'));

// var sibs = current.siblings ();

// var rndNum = Math.floor (Math.random () * sibs.length);

// var next = $ (kwv tij [rndNum]);

next.css ({opacity: 0.0})

.addClass ('qhia tau tias')

.animate ({opacity: 1.0}, 1000);

current.animate ({opacity: 0.0}, 1000)

.removeClass ('qhia tau');

};

$ (daim ntawv).ready (muaj nuj nqi () {

theRotator ();

});

Kauj ruam 3

Txhawm rau txhawm rau nplooj ntawv rau cov ntawv txuas uas qhib rau hauv lub qhov rais cais, koj yuav tsum ntxiv tus cwj pwm: Mus.

Kauj ruam 4

Yog daim ntawv html ntev dhau, koj tuaj yeem tso cov txuas hauv nws. Piv txwv li, thaum pib, koj tuaj yeem ua lub rooj ntawm cov ntsiab lus, thiab thaum koj nyem rau ntawm cov nqe taub hau tshwj xeeb, tus neeg siv yuav hloov mus rau qhov xav tau ntawm nplooj ntawv. Txhawm rau ua qhov no, koj yuav tsum tau sau npe nrog qhov txuas # # cim: Mus rau hauv ntu thiab tsim phau ntawv teev lus rau cov kev sib txuas: Ntu.

Nws yuav zoo li no:

Lub Vev Xaib

Txuas rau ntu

Feem

Pom zoo: