Cara Membuat Tombol Back To Top efek Scroll
BACK TO TOP |
Dengan Membuat Tombol Back To Top (Kembali Ke Atas) sangat membantu untuk bergerak cepat kembali pada artikel yang diatas,
sehingga kita tidak perlu lagi menggunakan fungsi scroll mouse untuk
melihat halaman yang telah terlewat.
Nah..!! jika saat ini anda berada pada halaman komentar dan ingin
melihat atau membaca ulang artikel yang anda kunjungi, cukup KLIK Tombol
Back To Top, maka anda akan diarahkan kehalaman Title Judul Blog atau
Header.
Akan tetapi kalau artikel blog cukup pendek mungkin Tombol Back To Top (Kembali Ke Atas)ini sedikit tidak berlaku, namun jika terkadang artikel blog kita cukup panjang tentu Tombol Back To Top sangat dapat membantu.
Berikut Cara Membuat Tombol Back To Top Efek Scroll
- Log in to akun Blogger
- Tata letak >>> tambahkan Gadget
- Copy kode berikut lalu Paste pada HTML/JavaScript
<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/AVvXsEjqEI2dZwGmBpk6Qld8aKWIUbLeL9nYAJxW8gcwHQLQ78quKOQC2hX5M-2j5CU6S5AvGIK3BtAfysZ75M_Tahfz9bKYd-eEtrb3wQsQ92Im-jJie3T7yjfsKo1WDsUEOek9BYDE2Patb7Vm/s1600/back+to+top10.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>
4. Simpan dan selesai.
"SELAMAT MENCOBA"
brigade bm9
BalasHapus38 super custom
glock battlefield green
glock battlefield green
taurus 9mm subcompact
kahr p380
mp9-n
taurus g3 upgrades
we g17 gen4
diamondback db15 review 2018
Our accredited editors make sure they edit your trustworthy online essay writing service usa in such a way that they seem perfect. Moreover, we have substantive formatters on the board with us who are aware of all the standard formatting strategies.
BalasHapusNeed urgent help in writing university assignments? No worries students can hire experienced and certified assignment helpers from SourceEssay. We make sure the university assignments are written with accuracy, adhering to the university guidelines, proofread by subject matter experts and delivered to students on time. Avail university Online assignment help from SourceEssay today.
BalasHapusThank you very much for sharing this wonderful blog with us. If you require expert assignment assistance, I recommend one of the greatest assignment service providers. If you're looking for the greatest solution or support for your troubles or problems, Assignment Help Australia is the place to go.
BalasHapusYou can also look for something similar to Dissertation here 1.
A Quick Introduction of Fine Arts Degrees
2. What Is The Best Way To Write A Visual Analysis Essay? What Is The Best Way To Write A Visual Analysis Essay?
You can Also check my amazing informative blogs mentioned below
What Is The Best Way To Write A Visual Analysis Essay?
Good Information
HapusSSL connection error on Google Chrome
Desktop Support Interview Questions and Answers with PDF
You might not have permission to use this Network resource
“something went wrong please try again
Application of Computer Graphics
How to Make bootable Pendrive
BalasHapusAgarwal Safe Home Movers and Packers in Bangalore
House Shifting Service Near Me Bangalore
Movers and Packers in Bangalore
Packers And Movers Bangalore
Movers and Packers in Bangalore
Packers And Movers Bangalore
Movers and Packers in Bangalore
Packers And Movers Bangalore
Nice article about making the Back To Top button
BalasHapusLead Generation and Appointment Setting Services
Now I got to know about how to make the Back to Top Button
BalasHapus
BalasHapusMovers and Packers in Bangalore
Packers And Movers Bangalore
Movers and Packers in Bangalore
Packers And Movers Bangalore
Movers and Packers in Bangalore
Packers And Movers Bangalore
Movers and Packers in Bangalore
Packers And Movers Bangalore
COVID alerts
BalasHapusPaper crafts include various hobbies such as tissue paper flowers, card making, paper cutting, scrapbooking, decoupage, quilling, bookbinding, origami, etc. Even in the digital age of adult coloring books and Cricut.com/setup machines, distinctive paper crafts are still in fashion from time to time.
BalasHapusSuch a very useful article. Very interesting to read this article
BalasHapusThese postal worker jobs can lead to other amazing positions and are the gateway to a lifelong career with USPS.Postal Worker Jobs
If you're looking to research your family history, look no further than Findmypast Review . This website is a great place to start your search because it has a wide variety of resources. You can search for records by name, date, or location, and the site has a variety of features to make your research easier. For example, you can use the Census Records search tool to find ancestors who lived in a specific area at a specific time. You can also use the California Psychics Review to find genealogical information about living people or events.
BalasHapusHi Dear,
BalasHapusThank you very much for this useful article.so we are provide Buzz CNN is a worldwide blogging website which is related to Business Ideas, Learning, and Entertaining purpose.
Best business ideas with low investment
If you want to add a back to top button with a scroll effect to your blog, here's how you can do it:
BalasHapus1. Go to your blog's HTML code and find the code for your button.
2. Add the following code to your button code:
onclick="scrollToTop()"
3. Save your changes and preview your blog to see the button in action.
When clicked, the button will take you back to the top of the page with a smooth scroll effect.
nice
BalasHapusMantap kak!
BalasHapusberita
Global Assignment Help never compromises with quality hence our motto is to serve the best assignments for your academics. So if you are in search of the best online Programming Assignment Help, we are here to give you the best service. The team of professional writers at Global Assignment Expert helps to give you all the support related to all assignment help.
BalasHapusThank you for sharing nice information. Criminal Injuries Compensation: Make CICA Compensation Claim
BalasHapusChoose the Best Products to buy online. thenextgadgets BEST Buying Guide, Reviews, and News. In-depth reviews, comparison guides, and product roundups to help you make informed purchasing decisions.
BalasHapusFor nearly 20 years, Techno group has been designing and manufacturing fiber glass products for many sectors. Established in 1998 in Dammam KSA, Techno Group is a private manufacturing company owned and managed by Mr. Mustafa Mahroos.
BalasHapusFiberglass sheets
Sigma Carpet is recognized as a powerful creative source stretching the way people think about pattern and colour on the floor.Our ability to combine thoughtful design with experience and technical knowledge allows us to deliver high performance floor coverings that will take your breath away. hand tufted carpet Dubai!
BalasHapusThe article is really fantastic essay expert
BalasHapusI endorse your ideas you have presented in this article. I was searching to read that kind of article and I finally found it. I am impressed with your content. Now its time to avail Best 10 seat minibus hire in Dartford for more information.
BalasHapusThank you very much for this useful article sell used furniture dubai
BalasHapususeful article hasamclub
BalasHapusThank you very much for sharing this wonderful blog with us. ezeemovingservices
BalasHapusThis topic is a goldmine of practical wisdom and actionable advice! It's refreshing to come across such helpful content that offers real solutions to common challenges. Houston Oilers Varsity Jacket the insights shared here are not only enlightening but also incredibly empowering.
BalasHapusI just wanted to take a moment to express my gratitude for this incredibly helpful post. Your in-depth analysis and practical advice have been instrumental in helping me navigate this challenging topic with confidence and ease. Chicago Fire Christopher Herrmann Jacket I especially appreciate the way you've provided clear explanations and actionable strategies that I can implement right away. Your expertise on the subject is evident, and I feel much more equipped to tackle these challenges thanks to your guidance. Keep up the fantastic work!
BalasHapus