Sie sind nicht angemeldet.

1

Dienstag, 31. Mai 2016, 08:10

Open picture onclick +Open Website double-click

Hello everybody! I am learning program Panotur. Faced with this situation, I need to be opened on 1-click picture and if you double-click the Web site if such a thing is possible in the program.
With theirs forums sent to you can help solve this situation *confused*

Example https://yadi.sk/i/U9R8M2wxs2BPF *cry*

Timescale

Schüler

Beiträge: 120

Wohnort: Netherlands

Beruf: Archaeologist, Timescale R&D

  • Nachricht senden

2

Dienstag, 31. Mai 2016, 17:36


3

Mittwoch, 1. Juni 2016, 08:16

Thank you for this plugin I know. There is the question of how to prescribe it by double-clicking opens a web site. I have luzev in XML

Timescale

Schüler

Beiträge: 120

Wohnort: Netherlands

Beruf: Archaeologist, Timescale R&D

  • Nachricht senden

4

Mittwoch, 1. Juni 2016, 16:55

You could make a javascript action that opens an URL and link that to the dblclick event.

Something perhaps like this ? :

Quellcode

1
2
3
4
5
6
<action name="openURL" type="Javascript"><![CDATA[

	var URL = (args[1]); 
    window.open(URL); // or any other method you like to open a window/tab or redirect in the same window.

]]></action>

5

Donnerstag, 2. Juni 2016, 16:04

Thank you

perspixe

Schüler

Beiträge: 64

Wohnort: Bologna, Italia, Vancouver, BC

  • Nachricht senden

6

Montag, 25. Juli 2016, 18:54



This doesn't seem to work on iPad. double-tap not detected.

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

7

Montag, 25. Juli 2016, 19:41

Try this


Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
<events name="klikus" keep="true" onxmlcomplete="set(klikus, 0)" onclick="evonclick()" />
<action name="evonclick">
 delayedcall(0.2,set(klikus, 0));
 inc(klikus);
 if(klikus == 2,
 
 
 <!-- you action -->
 
 
 );
</action>


piece of code


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

perspixe

Schüler

Beiträge: 64

Wohnort: Bologna, Italia, Vancouver, BC

  • Nachricht senden

8

Freitag, 29. Juli 2016, 10:15

Thank you Piotr. That was simple enough,
The delayedcall of 0.2 s just resets the clicks counter so 0.2 is the max delay between two clicks to be seen as double click.

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

9

Freitag, 29. Juli 2016, 12:16

Thank you Piotr.
You're welcome

Zitat

That was simple enough,

This is the Krpano coding power *thumbup*


Piotr
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*