Sie sind nicht angemeldet.

1

Donnerstag, 22. Januar 2009, 21:46

Display onhover text for a plugin, that changes with the state of that plugin?

I have a functioning dropdown panel - using the closed and open state and would like to add unique onhover text to the panel when in the closed state, and in the open state... I was trying this, with no luck... any suggestions? TIA - Blake

BTW - Interestingly enough, the below code sets the state as closed, and will trigger the correct action (openPanel) to "open" the panel (and close the panel), but the onhover text only displays the text as if it were in the "open" state at all times.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
<plugin	name="panel"
url="graphics/panel/blankPanel.png"
zorder="1"
align="top"
edge="bottom"
x="0"
y="50"
alpha="0.90"
scale="1.0" 
state="closed"
onhover="if(state == closed, showtext(Panel is Closed), showtext(Panel is Open));"
onclick="if(state == closed, action(openPanel), action(closePanel));"/>

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »blake« (22. Januar 2009, 23:38)


2

Freitag, 23. Januar 2009, 09:52

thanks,

I will test that, maybe there is a bug!

best regards,
Klaus