Making hover captions dynamic

Hi!

My webpage: www.filaung.no use hover captions to display news-headlines (click “NYHETER” to view).

So far the hover captions only display a variable attached to the button it hovers over, but I want my captions to display a headline loaded from an sql-database.

How should my code (the one attached to the button) look like?

link to the hover caption method:
http://www.kirupa.com/developer/mx/captions.htm

:bu: