Tech News World, Contacts Samsung Galaxy, Windows 8, Nokia Lumia, Quad Core Smart Phones, HTC smartphone, Google Nexus, MacBook, PayPal

Saturday, October 24, 2015

How To Add jQuery Scroll To Top Button To Blogger

How To Add jQuery Scroll To Top Button To Blogger - Although I work in the office and a lot of work that makes me tired but still I make a blog Tech News World and still will update it for you because this is part of my hobby who likes the world of technology, especially about the gadget, now we will discuss first about How To Add jQuery Scroll To Top Button To Blogger because it is the topic that you are now looking for, please refer to the information I provide in the guarantee for you,

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/AVvXsEgZ8lRhSnWfDrYz8b2tv_4RixSWNhtLlOtrLMn68l6WHVn8TAYytReUmY6kYOQwDmhQaJXna2WMPa_SUiH3Re1PKi6LyLe36nl7hZHzTHTqPQS68Ht5D7voSyrBE4quS5HDgJ9WezID8YQ/' 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.



so much information about How To Add jQuery Scroll To Top Button To Blogger

hopefully information How To Add jQuery Scroll To Top Button To Blogger can provide useful knowledge for you in getting information about the latest gadgets,

just finished your reading article about How To Add jQuery Scroll To Top Button To Blogger if you feel this article useful for you please bookmark or share using link http://aziin5teens.blogspot.com/2015/10/how-to-add-jquery-scroll-to-top-button.html for more people know

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

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

0 comments:

Post a Comment