Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comMaybe I am missing something as when I use the example xml provided and stick it in a tour created with the normal template, the loadscene in the startup actions causes the layer not to appear.
Thank very much Klaus, That had it thinking, but I have too many data elements: They are 40 categories or more than I would have to duplicate. Won't there be another solution based in javascript?define different data elements
Thank very much Klaus, That had it thinking, but I have too many data elements: They are 40 categories or more than I would have to duplicate. Won't there be another solution based in javascript?define different data elements
Best Regards,
Fernando
|
|
Quellcode |
1 |
<data name="hosp" devices="normal"> ... {{FONTSIZE}} ... </data>
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Fernando« (7. Juni 2018, 13:27)
|
|
Quellcode |
1 2 3 4 5 6 7 |
<data name="categ1"><![CDATA[
HOSPEDAJES:<br>
<span style="text-decoration:none;cursor:pointer;font-size:16px;" onclick="document.getElementById('krpanoSWFObject').call('any_action();');" style="color:#FFFFFF;">Item1</span><br>
<span style="text-decoration:none;cursor:pointer;font-size:16px;"" onclick="document.getElementById('krpanoSWFObject').call('any_action();');" style="color:#FFFFFF;">Item2</span><br>
(...)
<span style="text-decoration:none;cursor:pointer;font-size:16px;"" onclick="document.getElementById('krpanoSWFObject').call('any_action();');" style="color:#FFFFFF;">Item200</span><br>
]]></data>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 |
<action name="add_html_code" type="Javascript"><![CDATA[ ... var content = krpano.get(args[1]); var fs = krpano.device.mobile ? 24 : 16; content = content.replace(/fontsize\:\d+px/, 'fontsize:'+fs+'px'); div.innerHTML = content; ... ]]></action> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »indexofrefraction« (7. Juni 2018, 09:59)
how can I put a button inside the html to close html div?
Hi,
see the 'Here a link for testing the krpano JS API' part in the example.
It shows how to call any krpano code and that can be also used to remove or hide the layer (e.g. call removelayer or set visible to false).
Best regards,
Klaus