/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Script wont start

Hello,

I have a big problem with my javascript script.

[QUOTE]

function start() {
window.setInterval((window.scrollBy(0, 20)), 3000);
}

start();

[/QUOTE]

The script don´t start on websites.
Which thing I must correct, that the script can start? ?

Best reguards,
kioskmoder ??

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@rootNov 30.2016 — Its not clear if you resolved this, you didn't post your answer, so here is what I would have done.function start() {
window.scrollBy(0, 20);
}
setInterval("start()",3000);
Copy linkTweet thisAlerts:
@kioskmoderauthorDec 07.2016 — Its not clear if you resolved this, you didn't post your answer, so here is what I would have done.function start() {
window.scrollBy(0, 20);
}
setInterval("start()",3000);
[/QUOTE]


I have tested the code and unfortunately it does not work. Does anyone have a different solution?
Copy linkTweet thisAlerts:
@rootDec 07.2016 — Unfortunately I have tested the code and I can tell you it does work.

So the issue here is your implementation, you don't provide enough details of the page itself, if it is smaller than the view port size, then it won't scroll.
×

Success!

Help @kioskmoder spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.15,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...