My lexical parser has trouble interpreting meaningful information from the above.
Aahh, epiphany strikes, more follows
Oh, there's a missing comma after the word "link"
He also has other similar code on the page that does what you're wanting to know about. The example code that I posted is only a part of his solution.
You can look at the source code for his page and find the place of the example code, where you will find similar code that does the rest of the work.