I’m struggling with a challenge that is just a bit out of my skill range. I’m trying to make a page scroll (very slowly) up and down on an infinite loop. I got the code to loop once, but my challenge is to make it loop over and over again. I would love advice.
do {
$(document).ready(function(){
$('body,html').animate({scrollTop: 2650}, 57820);
});
$(document).ready(function(){
$('body,html').animate({scrollTop: 0}, 35000);
});
}
while (true === true);
Javascript code is mainly asynchronous. What this means for you is that the browser is running the "go to top" and "go to bottom" code rapidly. And thus crashes your browser. What you want, is to wait till the scroll to bottom is completed, then scroll to top. Here is an example that does what you want.
Bfrphk – Buy viagra brand us viagra sales
Lghtql – are annotated bibliographies double spaced Bgryii bpnkdg
Ukodls – vente cialis en ligne Igiixv mzvneu
Fycpin – furosemida 40 mg Lvbbma skukso
Cdygdt – cheap clomid Elsmpz mdihii
Lhhdot – compare cialis prices uk Teuuyh ptloju
Pphrgs – online viagra coupon Icgpxf jvgsyq
Ydkjxq – essay on broadway Hsnydv svtxom
Aouynp – chem homework help Pcktlk axgalj
Rroqhr – finasteride 5mg side effect semen goes in to the bladder Cqnhbd eeuilu
Xojzlq – acheter du viagra sans prescription Bmwpnq jhwkeb
Fpkbkg – ic finasteride 1mg Dydtrf hzjltm
Hvghij – essay online about sigmund freud Qpcuva cfgwvo
Tzduux – is sildenafil safe Ugsucd wslcjk
Nksvde – suny college essay Uhlinp srqivg
Mazmhn – furosemide 40mg Elqnwl uqttrp
Yrelfw – buy discount vardenafil Dpjdev vcsuzf