Create HTML and/or Javascript code to be inserted in an existing webpage.
Begin time counter when the page is first loaded
When the visitor clicks the mouse, hyperlink to one of 25 different pages, depending upon the elapsed time
I would leave it to the programmer to determine the best algorithm to link the elapsed time to the list of pages.