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

Monday, February 4th 2013, 10:24am

Onhover/Showtext problem

There be a problem (maybe a bug) with ONHOVER/SHOWTEXT functions.

If I make a button (layer/plugin) that open a new pano and:
- this button have Onhover function that use Showtext to display shorter and simple text
- this button stay in the new pano (keep = true)
If the cursor remain on the button until the loading of the new pano is started then the text (set with previous Onhover funtion) remain visible even i click and move the pano. Then, when I move che cursor upon a layer with a Showtext function, the previous text disappear and it show new text.

2

Tuesday, February 5th 2013, 5:42pm

Hi,

are you using the latest krpano version?

Best regards,
Klaus

3

Wednesday, February 6th 2013, 10:02am

I have the same problem. But I thought it´s because I set the hotspots parent to "parent=stage" (see belows example code). The onhover-text stays visible if the mouse cursor is moved away from the hotspot while the loading is still in progress. If the mouse is´nt moved until it´s finished, everything is fine. And the onhover-text only disappears if I move the mouse over another hotspot. Very annoying problem *unsure*

Best regards
Nupsi

addplugin(carrier);
set(plugin[carrier].url,skin/blank.png);
set(plugin[carrier].parent,STAGE);
set(plugin[carrier].width,440);
set(plugin[carrier].height,410);
set(plugin[carrier].x,5);
set(plugin[carrier].y,5);
set(plugin[carrier].handcursor,false);
set(plugin[carrier].align,topright);
set(plugin[carrier].edge,topright);
set(plugin[carrier].zorder,9);
set(plugin[carrier].keep,true);

addplugin(chs1);
set(plugin[chs1].url,skin/chs1.png);
set(plugin[chs1].parent,carrier);
set(plugin[chs1].align,topleft);
set(plugin[chs1].x,49);
set(plugin[chs1].y,342);
set(plugin[chs1].edge,center);
set(plugin[chs1].enabled,true);
set(plugin[chs1].onhover,showtext(Mailand,tooltip));
set(plugin[chs1].onclick,pano_autoload(10));
set(plugin[chs1].keep,true);

4

Wednesday, February 6th 2013, 7:03pm

Klaus: yes, i use version 1.0.8.16

My layer is not parent or child object.

5

Tuesday, February 19th 2013, 3:11pm

Hi,
Klaus: yes, i use version 1.0.8.16
there is no 1.0.8.16... ;-)

Btw - sorry, I'm not able to reproduce the problem... I have now tried several ways to find an example that shows your described behavior but haven't found one...

Can you please provide an example where this problem can be seen?
Then I will fix it of course!

Best regards,
Klaus

riefa

Beginner

Posts: 25

Location: Jakarta, Indonesia

Occupation: VR Photographer

  • Send private message

6

Monday, July 1st 2013, 6:43am

I also have a problem with the onhover showtext. I am using krpano 1.16.4, just download it yesterday.

It doesn't show when I hover the text on the hotspot.

You can see the pano with the above problem I describe above, here.

I use these for all hotspots in the tour:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<textstyle name="hotspottext"
           font="Tahoma"
           fontsize="15"
           bold="true"
           italic="false"
           textcolor="16777215"
           background="false"
           backgroundcolor="16777215"
           border="false"
           bordercolor="0" 
	   alpha="1"
           blendmode="normal"
           effect="glow(0x000000);"
           origin="cursor"
           edge="bottom"
           textalign="center"
           xoffset="0"
           yoffset="-3"
           noclip="true"
           showtime="0.1"
           fadetime="0"
           fadeintime="0" 
        />	
<hotspot name="spot1" style="skin_hotspotstyle" ath="-179.305" atv="-1.446" linkedscene="scene_mpl001" onhover="showtext(Outdoor Area,hotspottext)" />


If anyone can show me where is the error, would be much appreciated :)

Note: I am a total newbie on coding stuffs :D

Thank you.
Cheers,
Riefa Istamar
www.idVR360.com

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

7

Monday, July 1st 2013, 4:52pm

Your problem is here:
- You are defining onhover action in your hotspot which is not needed. It is already defined in your style (skin_hotspotstyle) associated to this hotspot. You can find how it is defined in your vtourskin.xml
There you have:
onhover="if(skin_settings.tooltips_hotspots, if(linkedscene, showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS)) );"

That mean you will show it first if skin_settings.tooltips_hotspot is true. In your case it is not.
In same file you have definition
<skin_settings...
tooltips_hotspots="false"

Change it to true.
If still not woking than you have to adapt the code to:
onhover="if(skin_settings.tooltips_hotspots, ifnot(linkedscene=='null',showtext(get(scene[get(linkedscene)].title),SKIN_TOOLTIPS)) );"

riefa

Beginner

Posts: 25

Location: Jakarta, Indonesia

Occupation: VR Photographer

  • Send private message

8

Monday, July 1st 2013, 8:17pm

Umalo, thank you!

Problem solved ;)
Cheers,
Riefa Istamar
www.idVR360.com