The page tests how to extract the file name and the various parts of that to produce pagination:
Now use the above information to produce the links:
Now use CSS on the links: