You are not logged in.

VN2009

Professional

  • "VN2009" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

1

Friday, November 20th 2009, 7:04pm

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?

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Saturday, November 21st 2009, 12:20am

Hi VN2009,

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

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
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

Sage

Posts: 3,184

Location: Netherlands

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

  • Send private message

3

Saturday, November 21st 2009, 1:40am

Hi,

give it a datacss thing.. like the:

Source code

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"
	           />



Source code

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

VN2009

Professional

  • "VN2009" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

4

Sunday, November 22nd 2009, 2:19am

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

5

Wednesday, January 13th 2010, 12:05pm

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

Could you please provide a little example?

Thank you!
Theo

6

Friday, January 15th 2010, 5:08pm

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

Thursday, January 21st 2010, 2:01pm

Hmmmm...

VN2009

Professional

  • "VN2009" started this thread

Posts: 1,336

Location: Duluth MN

  • Send private message

8

Thursday, January 21st 2010, 5:36pm

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

Friday, January 22nd 2010, 10:35am

Hi,

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

e.g.

Source code

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

Similar threads