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

Tuesday, January 19th 2010, 3:20am

closing showtext or triggering onout event

Hello,

I've got hotspots with showtext as onhover event. Sometimes the showtext doesn't disappear.
I know that I can change onhover value like this :

krpano.set("hotspot[nameOfMyHotspot].onhover", "null");

But I would like to avoid this solution because it means that I'll have to assign onhover to showtext after.

Is there a way (function ?) to close or hide the showtext ?
Or is it possible to call onout event ?

If anyone has any suggestions, I would greatly appreciate it.
Thank you very much,

kiwi

2

Thursday, January 21st 2010, 11:31am

Hi,
Sometimes the showtext doesn't disappear.
that would be strange...
when does this happen?

best regards,
Klaus

3

Thursday, January 21st 2010, 3:51pm

Well, it's not as strange as that. It's more something with flash, and roll out event.

I'm making a website with panos as a part of the site, and just outside the pano (but still in the flash) lies a navigation bar.
So if the mouse comes very fast from a hotspot to navigation buttons, I think it doesn't fire roll out event.
That's why I would just like to tell all hotspots to rollout when the mouse is outside the pano.

Unfortunately, I can't show you anything now as it is still in production.

VN2009

Professional

Posts: 1,334

Location: Duluth MN

  • Send private message

4

Thursday, January 21st 2010, 11:03pm

i have had this happen to me also. inside my zoo tour project. if you pass over an animal link quickly the showtext stays with the cursor. i have to go back to the same animal and re-hover and mvoe away slowly then it will disappear. it is randow and does not happen all the time.

http://www.virtualnorthland.com/panos/world/

see attached.
VN2009 has attached the following image:
  • Capture.jpg

5

Friday, January 22nd 2010, 11:37am

Hi,

okay, I see, but really a bit strange...

but you could disable the calling of the "onhover" event manually,
by setting the "hovering" attribute of the "plugin" or "hotspot" to "false",

e.g.

Source code

1
set(hovering,false);

or

Source code

1
set(plugin[name].hovering,false);


best regards,
Klaus

6

Friday, January 22nd 2010, 5:25pm

Hi Klaus,

I'm trying to set hovring to false in my plugin but it's still not working :

krpano.set("plugin[anim1].hovering", false);

I also tried this way, but not working either :

krpano.set("plugin[anim1].hovering", "false");

I am doing wrong ?

Thanks for your help.

7

Monday, January 25th 2010, 10:25am

Hi,

WHEN have you set this:
krpano.set("plugin[anim1].hovering", false);
note - that must be done after the mouse over to disable it manually,

best regards,
Klaus

8

Monday, January 25th 2010, 2:40pm

Hi Klaus,

I do it when clicking in my navigation bar to close hovering if the showtext is still enable.
But does it means that I have to manually enable hovering afterwards ?

all the best,
kiwi

9

Tuesday, January 26th 2010, 10:24am

Hi,

internally it works so:

the "hovering" attribute will be set automatically on AS3 "ROLL_OVER" event,
and unset on the "ROLL_OUT" event,

and as long this attribute is set, the "onhover" event will be called (in intervals) for this plugin/hotspot,

best regards,
Klaus

10

Thursday, September 16th 2010, 11:59am

Hello,

I have the same problem since i have first used krpano.
When you quickly move over the Hotspot, the onHover won't disappear.

Source code

1
2
3
4
5
6
<hotspot name="sp5" url="../../hotspot_ani_white.swf" scale="0.3" ath="-235" atv="8"
	onHover="showtext(Hallo,hotspotstyle)"
	onOver="set(hotspot[sp5].url,../../hotspot_ani_highlight.png);"
	onOut="set(hotspot[sp5].url,../../hotspot_ani_white.swf);"
	ondown="doit()">
</hotspot>


The onOut event also won't called.

What can I do?

Tim

11

Tuesday, September 21st 2010, 4:49pm

Hi,

this is a problem because of the url changing,
it will be fixed in the next krpano release,

best regards,
Klaus