Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Hellkeeper« (13. März 2013, 17:10)
Benutzerinformationen überspringen
Wohnort: Kobyłka, Poland
Beruf: Virtual Tours - Spherical Panoramas - Krpano developer
|
|
Quellcode |
1 2 3 |
<hotspot name ="..." ... group="restaurants" ... /> <hotspot name ="..." ... group="hotels" ... /> <hotspot name ="..." ... group="hotels" ... /> |
|
|
Quellcode |
1 2 3 4 5 6 7 |
<action name="switchHotspots">
for(set(i, 0), i LT hotspot.count, inc(i),
if(hotspot[get(i)].group == %1,
switch(hotspot[get(i)].visible);
);
);
</action>
|
|
|
Quellcode |
1 |
... onclick="switchHotspots(hotels)"... |
Benutzerinformationen überspringen
Wohnort: Kobyłka, Poland
Beruf: Virtual Tours - Spherical Panoramas - Krpano developer
|
|
Quellcode |
1 2 3 |
<hotspot name="h1" ... group="hotels,restaurants" ... /> <hotspot name="h2" ... group="hotels" ... /> <hotspot name="h3" ... group="restaurants" ... /> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
<action name="switchHotspots">
for(set(i, 0), i LT hotspot.count, inc(i),
indexoftxt(sindex, hotspot[get(i)].group, %1);
if(sindex GE 0,
switch(hotspot[get(i)].visible);
);
);
</action>
|
Benutzerinformationen überspringen
Wohnort: Kobyłka, Poland
Beruf: Virtual Tours - Spherical Panoramas - Krpano developer

There is no group parameter. You can define your own parameters next to those defined by the Krpano. E.g. you can add paramenter: checked="false" and use it afterwards. Or what ever you need.