views:

32

answers:

1

Hi,

How can I detect if color of bottom change because css or javascript event when i put mouse on button?

My solution that not good enough:

  1. create function that will listen to javascript events
  2. check with firebug if element have css 'hover' rule

Problems in my solution:

  1. Can't detect which event happen before css or javascript

  2. Not Auto check

Please give better solution if you have. (I working with JQUERY)

Thanks, Yosef

+2  A: 

You can check with Firebug which events are fired in JavaScript. Go to the Console and click "Profile". Then move your mouse over the button and you will see the JavaScript event show up.

Vincent Ramdhanie
What about css???
Yosef
You can go to the HTML Tab and select "Style" on the right hand pane. Then navigate to the element that you are interested in and you will see all styles that apply to the element. You can then look for hover styles etc.
Vincent Ramdhanie
This I write in my solution. I asking about better way.And how its solves:Can't detect which event happen before css or javascript
Yosef