Object properties - Interactivity

Asked by Rupert Barnes

I want to change the object properties on the mouseover event, specifically to change the opacity (or colour).

I see the "onmouseover" and "onmouseout" fields in Object Properties (Interactivity), and I can get these with XML screen too. What do I put in "onmouseover" so that the opacity or the colour changes on passing the mouse over the object?

Do these work in raw IE9, or must it have a script running?

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
Mc
Solved:
Last query:
Last reply:
Revision history for this message
Best Mc (mc...) said :
#1

try to put something like

this.style.fill='red';this.style.opacity=0.5

and it should work in raw ie9, but i cant try (works on firefox/chrome/opera, though)

Revision history for this message
Rupert Barnes (7-r) said :
#2

That's brilliant - and it does work on IE9. (You have to add the reverse to "onmouseout" - that's to be expected.)

Thank you.

Revision history for this message
Rupert Barnes (7-r) said :
#3

Thanks Mc, that solved my question.