Cov Phau Ntawv Kev Nyab Xeeb: Nkag thiab Nrhiav

Depositphotos 27736851 s

Hloov tshiab: - Nrog rau tus qauv xaib tshiab thiab qhov tsis muaj kev siv ntawm cov ntawv sib txuas, Kuv txiav txim siab coj lawv tawm. Tsis muaj kev tsis txaus siab txog tam sim no! Txoj kev hloov kho no tseem ua haujlwm yog tias koj xav siv nws.

Kuv twb lub pob tw ntawm txoj kev tso dag tso mus NektrosCov. Kev nkag mus yog txhua yam vim li cas koj yuav tsum tau tshem ntawm txhua tus ntawm ib-nias kev bookmarking txuas rau ntawm koj lub xaib. Kuv tau muaj ob peb lwm tus neeg tawm tswv yim txog lawv ib yam li… ib tug neeg hais rau kuv Kuv tsuas muaj 25 [sarc].

Kuv tsis xav kom hle lawv… Kuv ua zoo li lawv. Kuv tsis paub meej vim li cas tiag, tab sis kuv ua. Dhau li ua kom yooj yim rau bookmark kuv nplooj ntawv, Kuv tseem xav kom muaj neeg los saib tag nrho cov chaw tawm muaj uas pab bookmark. Muaj ib tuj xwb! Kuv paub tseeb, tsis ntev lossis tom qab, cov uas zoo yuav sawv mus rau sab saud thiab lwm tus yuav ploj tuag, tab sis kuv tsis xav yuam kom leej twg siv ib qho lossis lwm yam.

Yog li… Kuv tau ua ib yam dab tsi zoo tshawb nyiag. Kuv tus tus Sociable plugin thiab ntxiv qee qhov JavaScript uas toggles cov nyees khawm qhib los yog tawm. Nws coj 3 hloov:

  1. Kho Lub Pluag Plab Plooj (Sociable Plugin) ntxiv txuas qhov txuas mus nyem rau thiab tawm… nco ntsoov cov kab hauv qab tsis tau hloov… qhov ntawd tsuas yog qhia koj paub muab qhov chaws tso rau:
    ncej; $ html. = ' Kev Bookmark '; $ html. = '> div id = "bookmark _'. $ postid. '" class = "sociable" style = "display: none"> '; $ html. = get_option ("sociable_tagline"); ?>
  2. Kho kom raug cov ntaub ntawv Sociable.css los teeb tsa tus tes / tus taw qhia tus chij… vim tias nws tsuas yooj yim onclick kev tshwm sim thiab tsis tshua txuas:
    .link {cursor: tes; tus npiv: tus taw qhia; }
  3. Kho kom raug koj lub ntsiab ntawm cov ntawv header los tso rau qhov muaj nuj nqi hauv kev ua haujlwm rau toggle div tawm thiab tawm:
     function showdiv(name){
     var obj = (document.getElementById)? document.getElementById(name) : eval("document.all[name]");
     if (obj.style.display=="none"){
     obj.style.display="";
     }else{
     obj.style.display="none";
     }
     }
    

Yog li, txhaj rau Social Bookmarking link yuav toggle cov ntsiab lus rau hauv thiab tawm rau tshwj xeeb tshaj tawm!

4 Comments

  1. 1
  2. 2
  3. 3

    Yog, thov ua! Kuv xav siv qhov no tab sis xav tias kuv tau ua tej yam tsis raug (txawm hais tias siv technology, tsis yog li ntawd) - Kuv tau txhawb nqa tus thawj, ua tsaug, vim tias thaum kuv sim ua raws li cov kev hloov kuv blog tawg - vijtsam dawb, tsis muaj kev nkag rau admin. Ib qho kev hloov pauv ntawm lub vev xaib yuav yog qhov tsis txaus ntshai rau peb cov uas tsis muaj peev xwm ua tej yam txias ntawd nrog kev ntseeg siab! 🙂 x

  4. 4

Yuav ua li cas koj xav hais tias?

Qhov Web site no siv Akismet los txo cov kev pabcuam. Kawm li cas koj cov ntaub ntawv tawm tswv yim tiav.