Forum Moderators: not2easy

Message Too Old, No Replies

How to call a javascript function from the CSS class

How to call a javascript function from the CSS class

         

krishire

10:54 am on Nov 26, 2003 (gmt 0)

10+ Year Member



How to call a javascript function from the CSS class

BlobFisk

11:39 am on Nov 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't quite understand exactly what you mean, but I'd have to say that the answer to your question will be that you can't.

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