Shor question - page open on pc with not-so-good cell- Screen show. 我制造了两条大arrow,并知道如何利用联合材料/财富来规划。
First try: onClick->scroll - it works but user must tap many times to scroll article. Second:
var scrolling = false;
$("#scUp").mouseup(function(){
$(this).css("opacity", 0.3);
scrolling = false;
}).mousedown(function(){
$(this).css("opacity", 1);
scrolling = true;
while(scrolling) {
$( html, body ).stop().animate({ scrollTop: 50 }, 500);
}
event.preventDefault();
});
Doesnt work ;) I`m trying to simulate real browser scroll arrows - until you keep preesed mouse button page scrolls down (or up).