Forum Moderators: not2easy
While it's possible to manipulate the DOM and CSS styling of DOM elements with Javascript, you cannot run Javascript functions using CSS.
You need to use an event to run javascript functions from elements, like onclick, onmouseover etc. etc.
HTH