Sie sind nicht angemeldet.

1

Montag, 29. Juni 2020, 09:56

show / hide hotspots when an initvar is available or not

I have 5 hotspots defined in my pano which take their url from the initvars (1 parameter for each hotspot)

Quellcode

1
initvars:{hotspot_1:"link_to_page_1",hotspot_2:"link_to_page_2",hotspot_3:"link_to_page_3",hotspot_4:"link_to_page_4",hotspot_5:"link_to_page_5"}



Sometimes I only need to show 3 of the 5 hotspots, so I will only pass 3 initvars instead of 5.

How can I check in the XML to show or hide the hotspots?

2

Montag, 29. Juni 2020, 11:25

simply like this :

Quellcode

1
<hotspot .... if="hotspot_2" />

3

Freitag, 3. Juli 2020, 10:57

works! thanks a lot