Note sites and blogs with pagination in the header or footer. When the Anterior
or Próximo
button is pressed, the bold link is highlighted in the numeric link, signaling the page where the user is currently.
Well, in the middle of viewing this functionality, the question arose:
How to achieve this effect flag paging link with each click on one of the control buttons (Previous / Next), that is, highlight the link of the page the user is currently in.
Example
The user visits the Home Page, and it is set to [1] in the paging bar.
The user then slides the mouse pointer over the paging bar.
<< Voltar [1] 2 3 4 5 6 7 8 9 Avançar >>
.. and click on the Avançar
button. logo is redirected another page, and the paging bar is signaled.
<< Voltar 1 [2] 3 4 5 6 7 8 9 Avançar >>
.. it proceeds and clicks the Avançar
button again .. and as soon as another page is directed and the link [3] is now flagged.
<< Voltar 1 2 [3] 4 5 6 7 8 9 Avançar >>
This even goes by switching paging number with each click on the control buttons
Voltar
/Avançar
.