Build some javascript that detects how far a user has scrolled

Closed Posted 4 years ago Paid on delivery
Closed Paid on delivery

Note - this must not reply on JQuery

I'm looking for some JS which will:

Detect how far the user has scrolled down the page.

When the user stops scrolling (after a configurable amount of time in ms) when a scroll position is considered stable, it should fire the percentage scrolled to a URL endpoint using a function like:

function firepixel(scrollnum){

// Fire the pixel

var img = [login to view URL]("img");

[login to view URL]("src", btPixel(scrollamount));

[login to view URL]("style", "display:none");

[login to view URL](img);

}

This script will be sent to page from a 3rd party server, so will need to ensure it's looking at the total page

JavaScript

Project ID: #21713067

About the project

8 proposals Remote project Active 4 years ago

8 freelancers are bidding on average £14 for this job

glennwilkins

sir message me i can write script for this ... sir message me i can write script for this ... sir message me i can write script for this ...

£20 GBP in 1 day
(70 Reviews)
5.2
LiZeEn

Hi, Sir! I am very interested in your project. I can finish this project perfectly within budget and on time. Also I can satisfy all your requirements. About my skills you will be sure after read my profiles and review More

£10 GBP in 1 day
(1 Review)
2.9
msmfwat5

Hello there, I can start working on your script right now. It should take an hour to complete and would be completely in javascript without any libraries. I will be available online for an hour today and tomorrow fro More

£10 GBP in 1 day
(3 Reviews)
2.3
mr7ether

I'll be happy to build you a JS script which will calculate the scroll height in a specific time and send it as the end point to URL. I'll make sure it is built as per your specifications and upto your satisfaction. More

£15 GBP in 7 days
(1 Review)
2.0
Shampinon

Hello, I am good in Javascript. You need a event handler with timer which will check if scrolling is stopped, and I can make it.

£15 GBP in 1 day
(1 Review)
0.6
leojesu20

Hello how are you? I am Leonardo Martínez and I have a lot experience in javascript development. I can solve your problem in 2-3 hours. I have worked on several projects that require solving difficult problems and I More

£14 GBP in 1 day
(0 Reviews)
0.0