Inspired by
this topic, I wrote a module for Drupal, which organizes such paginated navigation.
Added scrolling with the mouse wheel, corrected some jambs, added standard navigation with js disabled, adapted for drupal. No settings: turned on the module - it works, turned off - went back to the standard navigation.
UPD: Transferred css and js connection in the init module, so that it works everywhere, fixed the conflict with other GET parameters.
UPD2: Fixed a bug with links "First" and "Last." Thank you
gothica .
Download
here .