You are not logged in.

1

Friday, May 13th 2011, 4:28pm

Flickering text on hovering over...

Hi,

following the code

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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
****************************************************************************************************
<!-- Map -->
****************************************************************************************************

	<plugin name="mapvillaflora" keep="true" zorder="1" align="center" edge="center" x="0" y="0" url="skin/map.png" onclick="action(closemap); openurl(,_blank);" visible="false" />



****************************************************************************************************
<!-- Map Spots -->
****************************************************************************************************

	<plugin name="ms01" url="skin/hs25t.png" zorder="3" origin="lefttop" parent="mapvillaflora" edge="center" keep="true" x="241" y="246" onhover="showtext(test);" onclick="action(loadindex);" />
	<plugin name="ms02" url="skin/hs25t.png" zorder="3" origin="lefttop" parent="mapvillaflora" edge="center" keep="true" x="286" y="231" onhover="showtext(test);" onclick="action(loadpano02);" />
	<plugin name="ms03" url="skin/hs25t.png" zorder="3" origin="lefttop" parent="mapvillaflora" edge="center" keep="true" x="346" y="292" onhover="showtext(test);" onclick="action(loadpano03);" />
	<plugin name="ms04" url="skin/hs25t.png" zorder="3" origin="lefttop" parent="mapvillaflora" edge="center" keep="true" x="246" y="297" onhover="showtext(test);" onclick="action(loadpano04);" />



****************************************************************************************************
<!-- Actions to Switch “Map” Visibility -->
****************************************************************************************************

    <action name="openmap">

        set(plugin[mapvillaflora].visible,true);

        set(plugin[map].onhover,showtext(get(closemap)););
        set(plugin[map].onclick,action(closemap););
        set(plugin[mapvillaflora].onhover,showtext(get(closemap)););
        set(plugin[mapvillaflora].onclick,action(closemap););

    </action>
    <action name="closemap">

        set(plugin[mapvillaflora].visible,false);

        set(plugin[map].onhover,showtext(get(openmap)););
        set(plugin[map].onclick,action(openmap););

    </action>



****************************************************************************************************
<!-- Control Buttons -->
****************************************************************************************************

	<plugin name="map" parent="controlbar" keep="true" zorder="3" align="bottom" x="+240"  y="5" style="options"  crop=  "80|0|10|20" onovercrop=  "80|20|10|20" ondowncrop=  "80|40|10|20" onhover="showtext(get(openmap));" onclick="action(openmap);" />


Did you ever see flickering text when hovering over a plugin/hotspot?
Do you see any conflict or something wrong in the code?

The VR is still not online; I wish you can see the error form the code.
Regards,
Marco
Marco

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

2

Friday, May 13th 2011, 5:05pm

well where is it online?
i should first take those ***** out the code

then get rid of teh spaces after = in these things onovercrop= "80|20|10|20"

also by the open url.. why is it there in the first place?

tuur *thumbsup*

3

Friday, May 13th 2011, 5:38pm

I've fund the problem:

just deleted row #30.

Why "showtext" on row #30 (associated to the Map) can't exist along with "showtext" on rows #13-16 (associated to the MapSpot), even though they are on different zorders?
Marco

4

Wednesday, May 18th 2011, 8:45pm

Anybody knows why?
Where's the conflict, or the wrong code?

Marco
Marco

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

5

Wednesday, May 18th 2011, 11:54pm

you have an action called 'closemap' but you alsoo have showtext(get(closemap))

try renaming one of those, maybe there is an internal name conflict. Im assuming closemap is a variable you set somewhere?

6

Thursday, May 19th 2011, 12:42am

Hi Zephyr,

I tried to change the second "closemap" in showtext(get(closemap1))… it doesn't work.
When hovering over one of the mapspots, its text is still flickering.

I have an action that close the map when clicking on the Map (all the area of the Map) plus a showtext that says "Close the Map" when hovering over the Map itself;
and an action to change panorama when clicking on the mapspot which is on the Map plus a showtext associated to the mapspot that shows the name of the panorama on hovering over the mapspot.

What's flickering is only the text of the mapspot.

Any Idea?
Thanks,
Marco
Marco

Similar threads