Skip to main content

How to Create a Scrollbar Percentage View On Blog

Percentage Scroolbar is a useful widget to tell visitors how long the article is or how high the article is currently reading which is displayed as a percentage, besides being useful for providing information to readers, sometimes it is also commonly used to beautify the author's blog. So, so that my friend is not curious, I will share the tutorial.

Tutorial on Making Scrollbar Percentage Views on Blog

Scrollbar Percentage View On Blogger - TrickPk Blog

Here are some steps follow it, for scrollbar percentage view on a blog. 

STEP 1. Please buddy open the Blog DashboardThemesEdit HTML .

STEP 2. Then place the CSS code below right above ]]> </ b: skin> or </style> .

#PersenScroll {display:none;position:fixed;top:0;right:5px;z-index:500;padding:3px 8px;background:linear-gradient(135deg,#437ff4,#0de9dc);color:#FFF;border-radius:3px}

#PersenScroll:after {background: linear-gradient(135deg,#437ff4,#0de9dc);position: absolute;top: 4px;right: -8px;height: 24px;width: 6px;margin-top: -4px;content: "";border-radius: 2px;}

STEP 3. Then enter the following HTML code just above </body> .

<div id='PersenScroll'></div>

STEP 4. Don't forget to also enter the following JS code above </body> .

<script type='text/javascript'>

/*<![CDATA[*/
$(window).scroll(function() {
var scrollTimer = null;
var viewportHeight = $(this).height(),
scrollbarHeight = viewportHeight / $(document).height() * viewportHeight,
progress = $(this).scrollTop() / ($(document).height() - viewportHeight),
distance = progress * (viewportHeight - scrollbarHeight) + scrollbarHeight / 2 - $('#PersenScroll').height() / 2;
$('#PersenScroll')
.css('top', distance)
.text('(' + Math.round(progress * 100) + '%)')
.fadeIn(100);
if (scrollTimer !== null) {
clearTimeout(scrollTimer);
}
</script>
scrollTimer = setTimeout(function() {
$('#PersenScroll').fadeOut();
}, 1500);
});
/*]]>*/

STEP 5. MAKE SURE !! You have installed Jquery, if not, please enter the code below right above </head> . If it is installed, do not reinstall it.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

STEP 6. Finally, please save the theme of your blog. And finished the results can be seen below.

Outcomes :

Okay, here is the tutorial this time, thanks to online friends who have visited this blog. If your friends have suggestions, input, or questions, please leave them in the comments column. Thank you and see you in the next article.

Comments

Popular posts from this blog

10000+ New Facebook VIP Stylish Bio Symbols 2024

Hello Friends, agar aaf bhi Instagram or Facebook account ky liye vip bio symbols search kar rahe hy to yaha par hum aaf ky liye facebook vip account bio symbols dene wale hai. Dosto aaf sab ka bahut bahut shukria hamari blog per visit karny ky liye, So dosto Aaj hum aafke liye Instagram or Facebook VIP Account New Bio Symbols 2024 lekar aaye hai jise aap Bio me copy aur paste karke apne facebook profile ko Vip account bana sakte hai. Yaha par humny Facebook aur Instagram vip account bnany ke liye tmam qism ke VIP bio symbols share kiye hai yaha par aafko VIP Symbols ke sath sath long vip bio symbols + Fb aur Instagram Stylish bio symbols bhi mil jayege. Aaf yaha se kisibhi Bio symbols ko copy karke fb account me paste kar sakte hai.To chaliye ASCII art Instagram, Facebook Stylish symbols ki taraf barhty hy Also Read: Facebook VIP Account Latest Bio Symbols Facebook VIP Account Latest Bio Symbols Part Part 1 Facebook VIP Account Latest Bio Symbols Part Part 2 Faceboo

100% Download Free Nadra Polio Vaccination Certificate Online

Polio vaccination is mandatory for all international travelers from Pakistan, regardless of age, to prevent the spread of polio to other countries. Pakistan remains among only two countries in the world where wild poliovirus remains in circulation, so it is crucial to ensure that anyone crossing borders or traveling from infected countries is vaccinated. Nadra Polio Vaccine For Overseas Air Travel Polio Vaccination Card Kesy Hasil Kary If you are planning to travel abroad, one document you may need to have on hand is a polio certificate. This certificate serves as proof that you have received the polio vaccine, which is required for entry into some countries. In this article, we'll cover everything you need to know about polio certificates, including why they're required, how to get them, and more. What is a polio certificate? A polio certificate is a document that serves as proof that you have received the polio vaccine. This vaccine is required for entry into some count

Procedure How to Set Rose Telegram Bot

The Rose bot is one of the most popular moderator bots for Telegram. There are many other Telegram groups bot for it but this one is the best... Telegram groups can have up to 100k members, that's a huge number. Managing such a large group seemed impossible. But, group managing bots like the Rose bot make it really simple. In this article, we will share a guide to help you set up the Rose bot on Telegram . What is Bot Rose? The Rose bot is one of the most popular moderator bots for Telegram. There are many other Telegram groups for it but this one is the best and most popular one out there. How to set rose telegram bot? To set up Bot Rose on Telegram, follow these steps: Open Telegram Group : To add Rose bot in your Telegram Group.  Add @MissRose_bot to group : Tap Add Member in your Telegram group. Find @MissRose_bot and add rose bot to group Give Admin Rights to Rose bot : you have to give Admin rights or Admin permission to Rose bot after adding it to your group. Send /conn