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.

jschrader

Fortgeschrittener

  • »jschrader« ist der Autor dieses Themas

Beiträge: 237

Wohnort: Bavaria, Germany

Beruf: Photographer, Producer

  • Nachricht senden

1

Freitag, 7. Juni 2013, 16:35

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!

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

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

2

Freitag, 7. Juni 2013, 22:38

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*

Beiträge: 770

Wohnort: Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

3

Dienstag, 11. Juni 2013, 09:06

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