J!Extensions Store™
Forum
Welcome, Guest
Please Login to access forum.
Re:Modify scroll to top (1 viewing) 
Go to bottom
TOPIC: Re:Modify scroll to top
#4113
Atlanta Internet Design
Junior Boarder
Posts: 25
User Offline
Modify scroll to top 3 Years, 5 Months ago Karma: 0  
Hi,

I would like to adjust how far the scroll to top goes. If this is javascript, I can adjust it in the cpanel if you can tell me what to look for.

Thanks
 
Logged Logged  
  The administrator has disabled public write access.
#4114
John Dagelmore
Admin
Posts: 3504
User Offline
Re:Modify scroll to top 3 Years, 5 Months ago Karma: 75  
Hi,

i haven't understood what you want to adjust. However the javascript of the module is included in this file.

root/modules/mod_pagescrollbuttons/helper.php

Cheers
 
Logged Logged  
  The administrator has disabled public write access.
#4115
Atlanta Internet Design
Junior Boarder
Posts: 25
User Offline
Re:Modify scroll to top 3 Years, 5 Months ago Karma: 0  
Hi,

Thanks for the fast response. I have attached a screen shot which I hope will illustrate what I am trying to do.

Thanks
 
Logged Logged  
 
Last Edit: 2016/02/06 14:03 By photofixations. Reason: correction
  The administrator has disabled public write access.
#4117
John Dagelmore
Admin
Posts: 3504
User Offline
Re:Modify scroll to top 3 Years, 5 Months ago Karma: 75  
The scroll to top by default goes to 0 using the scrollTop: 0
If you want to modify the scroll minimum value you have to work on that in the javascript contained in the helper.php
 
Logged Logged  
  The administrator has disabled public write access.
#4118
Atlanta Internet Design
Junior Boarder
Posts: 25
User Offline
Re:Modify scroll to top 3 Years, 5 Months ago Karma: 0  
Hi,

I have gone through all of the code in:
/home/atlan131/public_html/aid1010.com/modules/mod_pagescrollbuttons/helper.php and have tried several things none of which have worked. Could you assist in narrowing down the specific code you are referencing.

thanks
 
Logged Logged  
  The administrator has disabled public write access.
#4119
John Dagelmore
Admin
Posts: 3504
User Offline
Re:Modify scroll to top 3 Years, 5 Months ago Karma: 75  
Hi,

i was referring to the code used to perform the scroll to top till the zero scrolling, line 202

Code:

$('html, body').animate({scrollTop: 0}, $animationSpeed);
 
Logged Logged  
  The administrator has disabled public write access.
Go to top