Click here to Skip to main content
15,903,012 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
vertically Auto Scroll from in grid view based on time span.

What I have tried:

i have no idea how to do.
Posted
Updated 11-May-16 19:22pm
v4
Comments
iamcpmember 3-May-16 6:49am    
Please post sample code which you have tried..
SUBBU237 12-May-16 1:26am    
thank you i got solution
Try something and come back with some code.
SUBBU237 12-May-16 1:26am    
thank you i got solution
Sinisa Hajnal 4-May-16 2:26am    
For your description I don't even know what you're trying to do.

1 solution

Solution:
set onload="pageScroll()" in body
function pageScroll() {
window.scrollBy(0,20); // horizontal and vertical scroll increments
scrolldelay = setTimeout('pageScroll()',2000);
if (document.body.scrollHeight ==
document.body.scrollTop +
window.innerHeight) {
window.scrollTo(0, 0);
//$(window).scrollTop();
}

}
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900