Sie sind nicht angemeldet.

1

Dienstag, 5. März 2019, 23:27

Text hyperlink inside hotspot

Hey everyone!

I'm trying implement hotspot which is created as text type and contains hyperlink inside html attribute! Everything is displayed but it's not clickable!
I would like to ask if it is possible to make hyperlink clickable? e.g

Quellcode

1
<hotspot name="hotspotinfo" type="text" html="<a href="krpano.com">hyperlink</a>" />


Regards.

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »rejentt« (7. März 2019, 09:04)


2

Dienstag, 5. März 2019, 23:53

I doubt, that in-text links work in text hotspots, but a simple link would be possible like this:

<hotspot name="hotspotinfo" type="text" html="hyperlink" onclick="openurl(krpano.com);" />

https://krpano.com/docu/actions/#openurl

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

3

Mittwoch, 6. März 2019, 09:27

Hi,
this should work

Quellcode

1
2
3
4
5
<hotspot name="spot2" type="text" renderer="css3d" width="100" height="50" ath="0" atv="0" bgcolor="0xffff00" html="data:html_spot1" />        

    <data name="html_spot1">
        You can visit <a href="http://www.krpano.com" >THIS </a> link
    </data>


add renderer="css3d" and do the html in a data tag

Hope it helps
Tuur *thumbsup*

4

Mittwoch, 6. März 2019, 10:54

Thank you all, guys your aswers were helpful!! God bless you :)

Regards.

5

Mittwoch, 6. März 2019, 17:27

rejentt,
There is a typo in your <a> tag code. The closing tag shouold be </a>.
And due to xml syntax checking you need to use instead of "<" and ">" characters the "[" and "]" when feeding the html of the text box.
Pavel

6

Mittwoch, 6. März 2019, 18:45

@tuur...

i suspect css3d hotspots do not work in MobileVR or WebVR ...
so, for VR you most likely need an onclick event

(to be tested)

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

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

  • Nachricht senden

7

Mittwoch, 6. März 2019, 21:43

Hi,

i think opening an other webpage in vr is not very users friendly *g*
Triggering an event can be useful though.
But...indeed not working in vr like this.

Tuur *thumbsup*