Can we have a fix table of contents?

If we use fastpages and set toc:true, we will generate a table of contents on the above of the article, how can we have a fix table of contents like below and can jump to anywhere on the contents?