Tech News Today, Marshmallow Custom Rom, Huawei, Run Programs, Network, Chromebook, Bank Account

Sabtu, 24 Oktober 2015

How To Add jQuery Scroll To Top Button To Blogger

How To Add jQuery Scroll To Top Button To Blogger - To all visitors of this blog, I say welcome and thank you for visiting the blog Tech News Today Look for all the things you need that are available on this blog. If not available, please leave suggestions and comments for the development of this blog. now we will discuss first about How To Add jQuery Scroll To Top Button To Blogger we have collected a lot of information from sources to create this article, so please see.

Articles : How To Add jQuery Scroll To Top Button To Blogger
full Link : How To Add jQuery Scroll To Top Button To Blogger

You can also see our article on:


How To Add jQuery Scroll To Top Button To Blogger

1.Login to your blogger dashboard--> layout- -> Edit HTML
2.Scroll down to where you see </head> tag .
3.Copy below code and paste it just before the </head> tag .
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js' type='text/javascript'/>

<script type='text/javascript'>
//<![CDATA[

$(function(){

$('a[href*=#top]').click(function() {

if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
&& location.hostname == this.hostname) {

var $target = $(this.hash);

$target = $target.length && $target || $('[name=' + this.hash.slice(1) +']');

if ($target.length) {

var targetOffset = $target.offset().top;

$('html,body').animate({scrollTop: targetOffset}, 1000);

return false;

}

}

});

});
//]]>
</script>
<!-- end scrolltop -->
4.Now scroll down where you see <body> tag .
5.Replace <body> tag with <body id='top'> .
6.Now again scroll down where you see </body> tag .
7.Copy below code and paste it just before </body> tag:
<div id='goingtop'>
<a href='#top' title='Go Top'><img src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNF7NSRSZcp3P2vcnKi2Nn46l5_QP1md4QmV5ebdo8KdTSdSkOMryPFoZbBiwuhAmawjD8xk4TU0A8biJLukdRV7414-QmcfgoP8aOQNg2QZu2vU6vg_Q_liG4vjOSJYpl_7S9ezLB2C6Y/' style='right:20px; bottom:20px; position: fixed;'/></a></div>
Note: You can use any image instead of above image.
8.Click on save template and you are done.



information How To Add jQuery Scroll To Top Button To Blogger has been completed in the discussion.

hopefully the article we give the title How To Add jQuery Scroll To Top Button To Blogger can provide knowledge for you in living everyday life in determining the gadget that suits your needs.

you just read the article about How To Add jQuery Scroll To Top Button To Blogger if this article is useful for you and want to bookmark it or share it please use the link http://sihanandi.blogspot.com/2015/10/how-to-add-jquery-scroll-to-top-button.html thank you and do not forget to comment if anyone.

Tag :
Share on Facebook
Share on Twitter
Share on Google+
Tags :

Related : How To Add jQuery Scroll To Top Button To Blogger

0 komentar:

Posting Komentar