You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

jschrader

Intermediate

  • "jschrader" started this thread

Posts: 237

Location: Bavaria, Germany

Occupation: Photographer, Producer

  • Send private message

1

Friday, June 7th 2013, 4:35pm

Not working on iPad: switch(hotspot.visible)

I want to turn a bunch of hotpsots (that are only used as textinfos) on and off.
I thought this was quite simple, but I'm close to crying because it won't work on the iPad :-(
(Even in Safari with Useragent iPad it works).

Any suggestions?

Thank you!

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
	<hotspot name="hs4" url="buttons/_0003.png" capture="false" enabled="false" zoom="true"
	         ath="184.9" atv="-23.4" width="400" height="90" 
	         />

	<hotspot name="hs2" url="buttons/_0001.png" capture="false" enabled="false" zoom="true"
	         ath="42.4" atv="-21.3" width="400" height="90" 
	         />

	<hotspot name="hs3" url="buttons/_0002.png" capture="false" enabled="false" zoom="true"
	         ath="98.8" atv="-23.2" width="400" height="90" 
	         />

	<hotspot name="hs1" url="buttons/_0000.png" capture="false" enabled="false" zoom="true"
	         ath="-1.4" atv="-0.6" width="400" height="90" 
	         />

	<hotspot name="hs5" url="buttons/_0004.png" capture="false" enabled="false" zoom="true"
	         ath="-77.2" atv="-89.1" width="400" height="90" 
	         />

	<hotspot name="hs6" url="buttons/_0005.png" capture="false" enabled="false" zoom="true"
	         ath="-85.6" atv="-22.2" width="400" height="90" 
	         />


<plugin name="info_aus" zorder="5" url="buttons/aus.png" align="rightbottom" x="16" y="16" alpha="1.0" scale="1.0" onclick="switch(hotspot.visible);"/>

Tuur

Sage

Posts: 3,169

Location: Netherlands

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

  • Send private message

2

Friday, June 7th 2013, 10:38pm

Herr Schrader,

*thumbsup*

I'll make you happy with this link ...
To explain short.. Give the hotspots a tag... Like Jurgen="alteman" *g*
And then use the code.. In short.. It loops all hotspots and the ones with the tag you can controle.
So it is possible to make endless groups of plugins and hotspots behaviour..
Use it all the time.

http://www.krpano.com/forum/wbb/index.ph…37519#post37519

Schöne Grüsse aus Holland

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

Alexey Tkachenko

Professional

Posts: 757

Location: Sevastopol, Crimea, Russian Federation

Occupation: Interpreting, Building virtual tours

  • Send private message

3

Tuesday, June 11th 2013, 9:06am

Vielen dank, Tuur!

Das ist einfach fantastisch! *tongue*

Just yesterday I was banging my head against the wall trying to make hotspots hide in html5 and got no clue why they won't disappear.

Thanks a lot for that link!

Cheers from Crimea *tongue* !
Regards,

Alexey