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.

  • 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);

  • Hi,

    Klaus: yes, i use version 1.0.8.16

    there is no 1.0.8.16... *wink*

    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

  • 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:

    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.

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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!