Sie sind nicht angemeldet.

1

Dienstag, 15. September 2009, 05:18

Possible to add the 'title of the panorama' to combobox code

Hi,

I've tried quite a few options but can't seem to master this one.

I like the idea of having the title of the panorama load up and display for just two or three seconds then close. I looked at the code in the demo at the link below but that uses hotspots to load the panorama title.

http://krpano.com/examples/108b7/examples/scenes/scenes.html

I'm using the combobox.swf plugin with a total of 14 differnet panoramas listed in it that load perfectly but was hoping to find a way of adding the page title of each panorama within each of the actions? Just two of the actions are shown below taken from part of cr_01.xml so you can see what I'm getting at with 'load panorama 1 title code' pasted in but obviously doesn't do anything. All my efforts have just resulted in errors.

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
<image type="CUBE">
		<left url="360/panorama_01_l.jpg" />
		<front url="360/panorama_01_f.jpg" />
		<right url="360/panorama_01_r.jpg" />
		<back url="360/panorama_01_b.jpg" />
		<up url="360/panorama_01_u.jpg" />
		<down url="360/panorama_01_d.jpg" />
	</image>

<plugin name="combobox"
url="plugins/combobox.swf" 
align="bottomright" 
x="0" 
y="45" 
width="170"
keep="true"
/>
    

<action name="combobox:Panorama 01">
loadpano(cr_01.xml,null,MERGE,BLEND(1));
load panorama 1 title code
</action>    
    
<action name="combobox:Panorama 02">
loadpano(cr_02.xml,null,MERGE,BLEND(1));
load panorama 2 title code
</action>


Look forward to any advice please.

Thanks,

Andrew

2

Dienstag, 15. September 2009, 06:05

Hi,

Use the showtext action into <action name="combobox:Panorama XX"> like this:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<!-- text styles for startup info -->
<textstyle name="infostyle" origin="top" edge="top" yoffset="10" textalign="center"
background="false" border="false"  fontsize="40" textcolor="0xFFFFFF" bold="false"
effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="1.0" fadetime="1.0" />

<action name="combobox:Panorama 01">
loadpano(cr_01.xml,null,MERGE,BLEND(1));
showtext([b][i]load panorama 1 title code[/i][/b], infostyle);
</action>    
    
<action name="combobox:Panorama 02">
loadpano(cr_02.xml,null,MERGE,BLEND(1));
showtext([b][i]load panorama 2 title code[/i][/b], infostyle);
</action>


I hope this is what you was looking for... ;-)

Salut.