Saturday, October 24, 2015

How To Add jQuery Scroll To Top Button To Blogger

How To Add jQuery Scroll To Top Button To Blogger - The L1’s pricing makes for a great part of its appeal. Now available in the UK, you can easily pick one up from most retailers at an original price of £169.John Lewis currently carries the black and white models and you can find the pink version at Argos. Some seem to offer even cheaper prices, like Alza or CSMobiles. In the UK, the L1 is available with 2GB RAM and 16GB of internal storage. Sony unveiled a raft of new, well we have collected a lot of data from the field directly and from many other blogs so very complete his discussion here about How To Add jQuery Scroll To Top Button To Blogger, on this blog we also have to provide the latest automotive information from all the brands associated with the automobile. ok please continue reading:

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/AVvXsEiexMm4-qZ_tOTYyveIxI3jzh5p-9NK354dFX12PWwBTmLEqYuEWrsSeyqzEIrK0J1op4tkz1XTTCGEekB09hr6CpLba4jwaKJb6WgohuCyyYqbu-FiE8n4zM8aR94JTS3I2wF7eOXCBd11/' 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.

No comments:

Post a Comment