You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, January 22nd 2009, 9:46pm

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.

Source code

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));"/>

This post has been edited 2 times, last edit by "blake" (Jan 22nd 2009, 11:38pm)


2

Friday, January 23rd 2009, 9:52am

thanks,

I will test that, maybe there is a bug!

best regards,
Klaus