You are not logged in.

1

Thursday, October 25th 2012, 4:51pm

Tooltips for IOS

Hello

Im redoing my tours to work in IOS and I just want to have a text tooltip come up when the user hovers over a thumb. I understand this is the command

; onhover="showtext(this is my tooltip);

But I don't understand where to put it in the scene code that I have

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
	<scene name="scene_the house" title="the house" onstart="" thumburl="panos/the_house.tiles/thumb.jpg">

		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="2.0" fovmin="60" fovmax="120" limitview="auto" />

		<preview url="panos/the_house.tiles/preview.jpg" />

		<image>
			<cube url="panos/the_house.tiles/pano_%s.jpg" />
			<mobile>
				<cube url="panos/the_house.tiles/mobile_%s.jpg" />
			</mobile>
			<tablet>
				<cube url="panos/the_house.tiles/tablet_%s.jpg" />
			</tablet>
		</image>

		<!-- place hotspots here -->

		<!-- example hotspot:
		<hotspot name="spot1" style="hotspot_ani_black" 
		     	ath="0"
		     	atv="0"
		     	zoom="false"
		     	onclick="looktohotspot(get(name)); loadscene('insert-scene-name',null,MERGE,BLEND(1));"
		     	/>
		-->



	</scene>


The tours were created using 'MAKE VTOUR (NORMAL) droplet.bat

Thanks

Masten

2

Thursday, October 25th 2012, 4:59pm

Just realised mouse over obviously wont work on touch devices. So how do you label thumbs. Can you just have tooltips that are just set to be on all the time, and also how do you code this is as specified in last question.

Thanks

Masten

3

Tuesday, October 30th 2012, 2:06pm

Hi,

onover/onhover/onout and also the showtext() action aren't currently supported in HTML5,

but for a static texts, you could use the textfield plugin:
http://krpano.com/plugins/textfield/#top

best regards,
Klaus