click scrollDiv to go to top or go to end