I have a portal website, with some banners which rotate randomly based on a java script code(which I have downloaded online).

I need to get the click count on these banners.

may be a JS function that is triggered every time the banner is clicked, and increases the counter.
I am not javascript programmer.

any help is greatly appreciated.

thanks in advance.