Sie sind nicht angemeldet.

1

Dienstag, 19. Februar 2013, 21:47

Text Flickers onhover events when changing the HTML dynamically

krpano 1.0.8.15 TEST LINK
FULL XML LINK
I am calling an action when hovering over a plugin.
The action dynamically resets the HTML of a textfield. This causes the Text to flicker during onhover event.

Quellcode

1
2
3
4
5
6
7
8
9
10
11
<!-- NOTE: using the textfield with static text (THIS IS A TEST) functions properly when onhover event -->
<plugin name="txt_popup" url="%CURRENTXML%/plugins/textfield.swf" 
html="[b]THIS IS A TEST[/b]" css="font-size:18px; color:#000000; 
 />

<!-- NOTE: when dynamically changing the text (ANOTHER TEST) during the onhover event, the text flickers -->
<plugin name="btn_fs"  onhover="text_show();" />

<action name="text_show">
set(plugin[txt_popup].html, [b]ANOTHER TEST[/b]);
</action>

2

Dienstag, 19. Februar 2013, 22:20

Hi!
for this case you need to use ONOVER instead ONHOVER
because onhover event call over and over again until you hold your mouse pointer over plugin
but onover call just once when mouse pointer come to over a plugin

take a look for details - http://www.krpano.com/docu/xml/#plugin.onover

Hope it helps
Andrey *thumbup*

PS:
nefar1ous - I wonder that you don't know about that ;-)
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

3

Mittwoch, 20. Februar 2013, 04:33

Thanks Andrey, too far into the a.m. hours i guess. So tired I let frustration get the better of me. I got it backwards and argued with myself about who was correct, left or right side of my brain :)

And it never hurts to have these here for those who get lost, confused, or stay up too many hours looking at code.