Header Ads

How to add a scrollbar in your blogger ?

In the past we have as of now demonstrated to you best practices to redo your scrollbar in blogger with distinctive styles, hues and customization. As of late, one of our clients requested that us how include auto scrollbar in blogger that naturally look over the page from the through and through. Making your scrollbar scroll naturally is a flawless approach to somewhat drive your perusers to experience the entire page before leaving your site. In this article, we will demonstrate to you proper methodologies to include an auto looking over scrollbar in blogger


What is a Scrollbar? 


A Scrollbar is a GUI (graphical control component) which controls components like content, pictures, features and whatever else accessible on the website page. In other straightforward words, it's a long thing bar situated at the right half of your screen by which a component can be looked with the assistance of a mouse.

How to add it to blogger ?

First of all login to your blogger account and search for </html> code and paste the following code above </html>.


<script>
    /*<![CDATA[*/
    var div = $('body');
    setInterval(function() {
            var pos = div.scrollTop();
            div.scrollTop(pos + 2);
        }, 10)
        /*]]>*/
</script>

<style>
    body {
        overflow-y: scroll;
    }
</style>
Now save your template and you are done.

No comments

Add your comment here

Powered by Blogger.