Selected/Active class on page list?

Permalink
Has any1 got an example of this code? I tried to replicate the auto-nav version but to no avail.