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

Freitag, 20. November 2009, 19:04

anyway to label hotspots permanently ?

instead if doing an onhover=showtext(asdf); and only display the text when hovering over the hotpost is there a way to get that same text to display all the time without the onhover? I tried to do an onloaded=showtext(asdf); but that does not work. i guess i could create another plugin to sit over the hotspot but I'd rather know if there is another way.

any ideas?

2

Samstag, 21. November 2009, 00:20

Hi VN2009,

Perhaps a way would be using a textfield as an hotspot... here an example:

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
44
45
46
47
48
49
50
51
52
53
<krpano version="1.0.8" onstart="" >
	
	<preview type="grid(cube,32,32,256,0x000000,0x778899,0x000000);" details="8" />
	
	<style name="buttonstyle"
	   	url="%SWFPATH%/plugins/textfield.swf" 
	   	width="120" height="22" zorder="2"
	   	css="p{color:#000000; font-family:Arial; font-weight:bold; font-size:14; margin-left:5; margin-right:5; text-align:center; }" 
	   	backgroundcolor="0xFFFFFF" roundedge="5" shadow="1" borderwidth="0" glow="4" glowcolor="0xFFFFFF" 
	   	visible="false" selectable="false"
	   	onover="tween(alpha,0.7,distance(0.3,0.2));" 
	   	onout="tween(alpha,1.0,distance(0.3,0.2));" 
	   	onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
	   	/>
		
	<hotspot name="hotspot_1"
	     	keep="false"
	     	visible="true" enabled="true" handcursor="true" capture="true" children="true"
	     	fillcolor 	="0xffff00" fillalpha 	="0.30" borderwidth 	="3.0" bordercolor 	="0xffff00" borderalpha 	="0.80"
	     	fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="0.0" bordercolorhover="0xffffff" borderalphahover="0.00"
	     	fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
	     	onhover="showtext(hotspot_1);"
	     	onover=""
		>
		<point ath=" -10" atv="-10" />
		<point ath=" -10" atv="10" />
		<point ath=" 10" atv="10" />
		<point ath=" 10" atv="-10" />
	</hotspot>
		   
	<hotspot name="hotspot_text1" style="buttonstyle"
			html="[p]hotspot_1[/p]" onclick=""/>
			
	<hotspot name="hotspot_2"
	     	keep="false"
	     	visible="true" enabled="true" handcursor="true" capture="true" children="true"
	     	fillcolor 	="0xffff00" fillalpha 	="0.30" borderwidth 	="3.0" bordercolor 	="0xffff00" borderalpha 	="0.80"
	     	fillcolorhover="0xffffff" fillalphahover="0.10" borderwidthhover="0.0" bordercolorhover="0xffffff" borderalphahover="0.00"
	     	fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
	     	onhover="showtext(hotspot_1);"
	     	onover=""
		>
		<point ath=" 50" atv="-10" />
		<point ath=" 50" atv="10" />
		<point ath=" 30" atv="10" />
		<point ath=" 30" atv="-10" />
	</hotspot>
		   
	<hotspot name="hotspot_text2" style="buttonstyle" 
			ath=" 40" atv="-15"
			html="[p]hotspot_2[/p]" onclick=""/>
	
</krpano>


Note: the zoom="true" attribute does not work as expected on textfield as hotspot.... try it to see...

SAlut.

Tuur

Erleuchteter

Beiträge: 2 774

Wohnort: Netherlands

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

  • Nachricht senden

3

Samstag, 21. November 2009, 01:40

Hi,

give it a datacss thing.. like the:

Quellcode

1
2
3
4
5
<textstyle name="infostyle"
	           origin="top" edge="top" yoffset="20" textalign="center"  background="false" border="false"
	           fontsize="40" font="Verdana" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
	           showtime="3.0" fadetime="1.0"
	           />



Quellcode

1
showtext('I LOVE KRPANO...', infostyle);


or something you like and then give it an ath and atv in the hotspot..

?

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

4

Sonntag, 22. November 2009, 02:19

thanks Tuur that pointed me in the right direction. Got it working now.

5

Mittwoch, 13. Januar 2010, 12:05

that pointed me in the right direction.
Not me... *cry*

Could you please provide a little example?

Thank you!
Theo

6

Freitag, 15. Januar 2010, 17:08

Hi,
maybe there is someone with another solution?

I don't want to start a new thread, because the title of this thread describes exactly what i want to do... ;-)

Theo

7

Donnerstag, 21. Januar 2010, 14:01

Hmmmm...

8

Donnerstag, 21. Januar 2010, 17:36

i used the combonoation below. 1 hotspot for the swf file the other for the label. could not find a way to do it in 1 hotspot. these 2 spots may not be the 2 that are tied together thier coordinates are off just change them so they line up. sorry it took so long somehow i missed this post earlier.

<hotspot name="ENTER" url="whiteswirls.swf" keep="false" ath="38.03416032953619" atv="-0.1214520019894112" zoom="false" distorted="false" width="100" height="100" scale="0.7" scale9grid="" scalechildren="false" rotate="0" rx="0" ry="0" rz="0" edge="center" ox="" oy="" crop="" ondowncrop="" onovercrop="" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="0" alpha="1.00" blendmode="normal" smoothing="true" refreshrate="auto" onloaded="" onover="" onhover="showtext(Go Inside,largetext)" onout="" ondown="" onup="" onclick="action(load3);" flying="0" inverserotation="false" />

<hotspot name="hotspot_text1" url="textfield.swf" keep="false" ath="3.117265646844558" atv="-3.5372887908288893" zoom="false" distorted="false" width="80" height="18" scale="1" scale9grid="" scalechildren="false" rotate="0" rx="0" ry="0" rz="0" edge="center" ox="" oy="" crop="" ondowncrop="" onovercrop="" visible="true" enabled="true" handcursor="true" capture="true" children="false" zorder="2" alpha="1.00" blendmode="normal" smoothing="true" refreshrate="auto" onloaded="set(alpha,0);set(textblur,15);set(blur,15); set(visible,true); tween(alpha,1,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);" onover="tween(alpha,0.7,distance(0.3,0.2));" onhover="" onout="tween(alpha,1.0,distance(0.3,0.2));" ondown="" onup="" onclick="action(load2);" autosize="none" background="true" backgroundalpha="1" backgroundcolor="0xFFFFFF" blur="0" css="p{color:#000000; font-family:Arial; font-weight:bold; font-size:11; margin-left:5; margin-right:5; text-align:center; }" flying="0" glow="4" glowcolor="0xFFFFFF" html="[p]Go Inside[/p]" inverserotation="false" roundedge="5" selectable="false" shadow="1" textblur="0" textglow="0" textglowcolor="16777215" textshadow="0" wordwrap="true" />

9

Freitag, 22. Januar 2010, 10:35

Hi,

define the 'Text' hotspot as <plugin> and set it's parent attribute to the hotspot,

e.g.

Quellcode

1
2
3
<plugin name="hotspot_text1" .... 
        	parent="hotspot[ENTER]" aligen="bottom" x="0" y="0" 
    	... 


see also this example here:
mitdrehende flyout-hotspots (mit Beispiel)

best regards,
Klaus

Ähnliche Themen