Cara memasang Tombol Back to Top di Blogspot


Hai para pemaca setia kali ini Admin akan membahas cara memeasang tombol Back to Top pada Blog.
Fungsi nya untuk apa min ?
fungsinya untuk mempermudah pengunjung kembali ke bagian atas blog anda hanya dengan satu Klik saja dan tanpa harus Scroll-scroll ke atas atau megusap-ngusap layar Gadget anda , jadi kali ini admin akan membagi tips gampang nya nih untuk memasang tombol Back to Top di Blogspot , nah bagi anda yang Blog nya belum di isi tombol Back to Top bisa simak  tutorial Admin ini ya , yuk langsung saja di simak.

Baca juga : Membuat Like box Fanspage Melayang di blog.
                    Cara memasukan Lagu di Blog.
                    Cara membuat animasi berjalan di Blog

Cara memasang tombol Back to Top :

  • Pertama-tama buka >>Blogger anda
  • Setelah itu cari >>Tataletak
  • Setelah membuka tataletak cari  >> + Tambahkan Gadget (posisi nya bebas di mana saja)
  • Jika sudah mementuka posisi nya langsung pilih >> +HTML / JavaScript
jika sudah ketemu langsung saja Copy kode di bawah ini , di HTML / JavaScript kan ada kolom Judul nah itu bisa di kosogkan saja.

Baerikut Script nya :
 

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" >

var scrolltotop={
    //startline: Integer. Number of pixels from top of doc scrollbar is scrolled before showing control
    //scrollto: Keyword (Integer, or "Scroll_to_Element_ID"). How far to scroll document up when control is clicked on (0=top).
    setting: {startline:100, scrollto: 0, scrollduration:1000, fadeduration:[500, 100]},
    controlHTML: '<img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB1ptfB_rMTFhCCleLMTOo3iwWsFwnXWNqzxMHml7Qt6CGCICHhZ8Z9YubfBH8HGOHcvlkfvPOdxMN1L1EH-7FvViU1EWb9Hv034P2d1R9Gk4XgF_IfZ-bFmv4WZdwKgzy8B5cEpGnMcE/s1600/back+to+top+button.gif " />', //HTML for control, which is auto wrapped in DIV w/ ID="topcontrol"
    controlattrs: {offsetx:5, offsety:5}, //offset of control relative to right/ bottom of window corner
    anchorkeyword: '#top', //Enter href value of HTML anchors on the page that should also act as "Scroll Up" links

    state: {isvisible:false, shouldvisible:false},

    scrollup:function(){
        if (!this.cssfixedsupport) //if control is positioned using JavaScript
            this.$control.css({opacity:0}) //hide control immediately after clicking it
        var dest=isNaN(this.setting.scrollto)? this.setting.scrollto : parseInt(this.setting.scrollto)
        if (typeof dest=="string" && jQuery('#'+dest).length==1) //check element set by string exists
            dest=jQuery('#'+dest).offset().top
        else
            dest=0
        this.$body.animate({scrollTop: dest}, this.setting.scrollduration);
    },

    keepfixed:function(){
        var $window=jQuery(window)
        var controlx=$window.scrollLeft() + $window.width() - this.$control.width() - this.controlattrs.offsetx
        var controly=$window.scrollTop() + $window.height() - this.$control.height() - this.controlattrs.offsety
        this.$control.css({left:controlx+'px', top:controly+'px'})
    },

    togglecontrol:function(){
        var scrolltop=jQuery(window).scrollTop()
        if (!this.cssfixedsupport)
            this.keepfixed()
        this.state.shouldvisible=(scrolltop>=this.setting.startline)? true : false
        if (this.state.shouldvisible && !this.state.isvisible){
            this.$control.stop().animate({opacity:1}, this.setting.fadeduration[0])
            this.state.isvisible=true
        }
        else if (this.state.shouldvisible==false && this.state.isvisible){
            this.$control.stop().animate({opacity:0}, this.setting.fadeduration[1])
            this.state.isvisible=false
        }
    },

    init:function(){
        jQuery(document).ready(function($){
            var mainobj=scrolltotop
            var iebrws=document.all
            mainobj.cssfixedsupport=!iebrws || iebrws && document.compatMode=="CSS1Compat" && window.XMLHttpRequest //not IE or IE7+ browsers in standards mode
            mainobj.$body=(window.opera)? (document.compatMode=="CSS1Compat"? $('html') : $('body')) : $('html,body')
            mainobj.$control=$('<div id="topcontrol">'+mainobj.controlHTML+'</div>')
                .css({position:mainobj.cssfixedsupport? 'fixed' : 'absolute', bottom:mainobj.controlattrs.offsety, right:mainobj.controlattrs.offsetx, opacity:0, cursor:'pointer'})
                .attr({title:'Scroll Back to Top'})
                .click(function(){mainobj.scrollup(); return false})
                .appendTo('body')
            if (document.all && !window.XMLHttpRequest && mainobj.$control.text()!='') //loose check for IE6 and below, plus whether control contains any text
                mainobj.$control.css({width:mainobj.$control.width()}) //IE6- seems to require an explicit width on a DIV containing text
            mainobj.togglecontrol()
            $('a[href="' + mainobj.anchorkeyword +'"]').click(function(){
                mainobj.scrollup()
                return false
            })
            $(window).bind('scroll resize', function(e){
                mainobj.togglecontrol()
            })
        })
    }
}

scrolltotop.init()
</script>

Catatan : Script yang berwarna merah bisa di ganti sesuai gambar yg anda inginkan.

Berikut adalah gambar yang bisa kalian pilih :

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmM-0msOWBwBeovDzieEJ-z5j9jRWcyCqo_tLRO4qjH1L3WFt3qeXJhGEOtoQ45K3GMKFfcbNLswjSit5kcmcXLisEIwViBAy2TaPUYMwn6QEMEho2tULUNYL0UYUfdgv4n3XPDvNOx_o/s1600/back+to+top.png

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsjREmEmPFrRk503V9uX1RuTPlpjYHZJpBaOnPS3gPWY1eWEEZgWReioI_D9GR3jxa_miBiMI_lrlC78t-nmQV4hLG9k6aX7IebAxpt5grXdh_aVAN-mEr5ojeYQVlf7UqBCEmQDKZY0c/s1600/back+to+top.png

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB1ptfB_rMTFhCCleLMTOo3iwWsFwnXWNqzxMHml7Qt6CGCICHhZ8Z9YubfBH8HGOHcvlkfvPOdxMN1L1EH-7FvViU1EWb9Hv034P2d1R9Gk4XgF_IfZ-bFmv4WZdwKgzy8B5cEpGnMcE/s1600/back+to+top+button.gif


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZijwzppEmbH4TANn72XB5OElf23A4sNh5aji2ESL-V46rSSx_dxstDjK6HIfPkNU0J57G56n67Km9HkPCZdKl2ZgcZ81Cr5DC0JI3OqYNss2HDEngdGfTxysKjCDtgbz5t0qqIxPypCk/s1600/back+to+top+button.gif





https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7L_vCHHIxxLw07XPkX6FNGTVqdQ3tlOzPE_voDenqz2EOOJmZA990IcjSUC4A_PKzymAQ8aSVrGITYkhcZZCFXLaFRi_Va7OJNeY7NPdjV66xspS5I6Oo6Rhatulz8YTvtnbw_x6smTU/s1600/back-to-top-button.png



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhhscA5ddoEdAu2wmO_n4YTRkyQoXXqHiRIsyxossbOlW-OKbFCK0r_lKRAOxL30pUp7wWXJh4JPHMTR8lGFMryo0uUjHgBL_w-euV3E0RIdilwf6X6ZiSjV1cex984082UyYvXqlThXI0/s1600/back-to-top-button.png


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiv2yVPl83hvxAZyEfPxeV1jc5aWpshmBXRhXUx5dkleOnu2pTllFyjXXB7weKzGgEHCvGBgp_kd9Dw-wsnJ9u_HUYgrbcsif9USVgNefRuxiTNX9ZMXUaDFEUzNlucETfTpSa0bPdrsUnz/s1600/c.png






https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXyqrsRYXxUaQRwSLHYAYnzHRcjjqkawPOKqzI1rdmQ89hba9FMxVdVtSeXPNsyEGcu60BVW9rvrm6vGkTBRY_vuPndMhumzC4w2cjOTdS32mSSp-P7rmbM-KwoyboHWXI1eA2uR8Rb34B/s1600/i.png


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcX2bm-n4zxUt_9Vv2Zzzn5TIFkEt2Rti1PMWNJt-z0mXsPQjQJ8APhx0PmOe7Gz5IOnPaPcRvT2wEqP3JOqkflEpjLIQDmx8odHwFE1i8PpyfWfbV0W5WbVBjUlZloPVjLPWXKOtAJHqo/s1600/h.png





https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC0eJX1S_1aRMCmS5E_fYHunH7qN0DRBHOSahy_B-KEYnjvVQdEWEkAssgKWEvjRgyGmT75gTLffq8wdqrOL5zy22y7VPSQGAEFF7jluJm9k1ZJEpY3ge2v5MpEWtcH56iI523fon-q1_M/s1600/g.png



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPZxBEZpiht0J_EhN7bZiB3L120SIgvUEavbJssD-sDcSoQe7VG7MdaUzTCepBrP1giO3P2hqg3rfNZysdKhdVoCAQDNRRiULYfu0mHkVKqCcXLt5YhmOnRdG2072Cz33WNkboDv2vsMn0/s1600/f.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTD3LlFl6t5n8tDMAmbpQsu4qX-nWjmweLcz4-xOwaZSkUvxDxhSbw22mLEqmGPOVu9d8SaRlwBbwmCmxjMlw9lyon57OvS_4W5_qf0Jz_rAX0Hj64ESgXBJSlJDsElF9Q5NNTa3dvgbFB/s1600/e.png



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimUubS3JFVsmrxJqXbWtkglMPUdhJza4tFZRXYtSzHtRNCpH2xxqtAZ0lq9Bup3ayynnFaperfM3BXMCvujbh8U5FyzyUMnUusXXuY6qpcKXDutsOrC23BwVIUdEM5INcnR8lTuKRaDucv/s1600/d.png

 Sekian Tutorial yang bisa saya berikan semoga bermanfaat bagi kalian :)

Jangan lupa Follow Google + dan Fanspage Admin ya :)
Previous
Next Post »

9 komentar

Click here for komentar
14 Maret 2017 pukul 03.01 ×

wah,,, blog ane juga udah dipasang tuh Back to top, terus kalo zombi yang jalan gimana tuh caranya min ???

Balas
avatar
admin
14 Maret 2017 pukul 06.36 ×

Di postingan admin sebelum nya ada kok tutor nya gan , langsung di lihat saja :-d

Balas
avatar
admin
14 Maret 2017 pukul 06.47 ×

Keren gan tutorialnya, izin sedot ya buat MUSIKITABRO makasih sebelumnya

Balas
avatar
admin
14 Maret 2017 pukul 07.44 ×

Udah ane pasang di blog saya dan berhasil gan, makasi ya tutorialnya gan.

Balas
avatar
admin
14 Maret 2017 pukul 14.45 ×

Kerenn gan..... Nyoba" dulu biar makin cantik.....

Balas
avatar
admin
Anonim
14 Maret 2017 pukul 15.14 ×

bagus nih, biar gak repot scroll sampe cape segala

Balas
avatar
admin
15 Maret 2017 pukul 06.52 ×

Makasi info nya gan , saya mau coba dulu :-d

Balas
avatar
admin
15 Maret 2017 pukul 21.06 ×

Keren tuh gan patut di coba,bwat kasih nilai positif di blog kita,makasih infonya

Balas
avatar
admin
Thanks for your comment