Overriding onmousedown event of toolbar button

I’m using dhtmlx 4.1.2 toolbar widget.
I want to do some css changes on pressing(mouse down) of toolbar button.
So, I want to

  1. override the onmousedown event of toolbar buttons.
  2. call base method for default functionality
  3. Apply css changes which i want.

Help me in overriding and calling base method of onmousedown event.

Hi

for css you can just update the following defaut classes:

.dhx_toolbar_btn .dhxtoolbar_btn_def {}
.dhx_toolbar_btn .dhxtoolbar_btn_over {}
.dhx_toolbar_btn .dhxtoolbar_btn_pres {}
.dhx_toolbar_btn .dhxtoolbar_btn_dis {}