Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Donnerstag, 15. Oktober 2009, 01:55

Hotspot grouping

Is there a way to group 2 hotspots, so when you mouse over either one, both highlight?

Kirk

2

Donnerstag, 15. Oktober 2009, 02:10

grouping is not available yet but it will be on next version. you can do what you say though.

onover="tween(hotspot[hotspot1].alpha,1); tween(hotspot[hotspot2].alpha,1);"
onout="tween(hotspot[hotspot1].alpha,0.5); tween(hotspot[hotspot2].alpha,0.5);"

use that on both hotspots and when 1 is hovered over they both will light up. swap out your hotspot name and use a different setting to highlight however you wish. alpha may not do what you are looking for, but you get the idea.

3

Donnerstag, 15. Oktober 2009, 04:01

Am I writing this correctly? It's not working

Quellcode

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
	<hotspot name="hs3"
	     	keep="false"
	     	visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	     	zorder="0"
	     	fillcolor 	="0xffffff" fillalpha 	="0.00" borderwidth 	="0.0" bordercolor 	="0xffffff" borderalpha 	="0.00"
	     	fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" bordercolorhover="0xffffff" borderalphahover="0.80"
	     	fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
	     	onhover=""
			 onover="tween(hotspot[hs3].alpha,1); tween(hotspot[hs4].alpha,1);"
 			 onout="tween(hotspot[hs3].alpha,0.5); tween(hotspot[hs4].alpha,0.5);"
	     	ondown=""
	     	onup=""
	     	onclick=""
	     	flying="0"
		>
		<point ath=" 52.3685" atv=" -4.6356" />
		<point ath=" 60.9046" atv=" -4.4118" />
		<point ath=" 55.8644" atv="  3.3308" />
		<point ath=" 48.6807" atv="  1.6757" />
		<point ath=" 48.6058" atv="  1.2309" />
	</hotspot>

	<hotspot name="hs4"
	     	keep="false"
	     	visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	     	zorder="0"
	     	fillcolor 	="0xffffff" fillalpha 	="0.00" borderwidth 	="0.0" bordercolor 	="0xffffff" borderalpha 	="0.00"
	     	fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="4.0" bordercolorhover="0xffffff" borderalphahover="0.80"
	     	fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
	     	onhover=""
			 onover="tween(hotspot[hs3].alpha,1); tween(hotspot[hs4].alpha,1);"
 			 onout="tween(hotspot[hs3].alpha,0.5); tween(hotspot[hs4].alpha,0.5);"
	     	ondown=""
	     	onup=""
	     	onclick=""
	     	flying="0"
		>
		<point ath=" 70.8279" atv=" -3.5474" />
		<point ath=" 70.6681" atv="  2.3661" />
		<point ath=" 80.9802" atv="  0.7329" />
		<point ath=" 81.1805" atv=" -7.7949" />
		<point ath=" 75.5782" atv=" -8.9119" />
	</hotspot>

4

Donnerstag, 15. Oktober 2009, 04:32

Try tweening the fillalpha. I haven't tried it, just a thought. Since you are using a poly hotspot, it might react differently than an image hotspot.

5

Samstag, 17. Oktober 2009, 18:52

Hi,

there is also a other way:

every plugin and hotspot has an "hovering" attribute,
normally this attribute should be only used for checking if an hotspots will be hovered,
but for polygonal hotposts setting it manually to true can be used to simulate hovering,

now you can set the in the onover/onout events of one hotspot the "hovering" attribute of an other hotspot

e.g.

Quellcode

1
2
3
4
5
6
<hotspot name="spot1" 
     	... 
     	onover="set(hotspot[spot2].hovering,true);" 
     	onout="set(hotspot[spot2].hovering,false);" 
     	... 
 


and the same for the other hotspot:

Quellcode

1
2
3
4
5
<hotspot name="spot2" 
     	... 
     	onover="set(hotspot[spot1].hovering,true);" 
     	onout="set(hotspot[spot1].hovering,false);" 
     	... 


best regards,
Klaus