You are not logged in.

1

Tuesday, March 5th 2019, 11:27pm

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

Source code

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


Regards.

This post has been edited 1 times, last edit by "rejentt" (Mar 7th 2019, 9:04am)


2

Tuesday, March 5th 2019, 11:53pm

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

Sage

Posts: 3,111

Location: Netherlands

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

  • Send private message

3

Wednesday, March 6th 2019, 9:27am

Hi,
this should work

Source code

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*
http://www.virtualtuur.com
Skype:studiotuur

4

Wednesday, March 6th 2019, 10:54am

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

Regards.

5

Wednesday, March 6th 2019, 5:27pm

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

Wednesday, March 6th 2019, 6:45pm

@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

Sage

Posts: 3,111

Location: Netherlands

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

  • Send private message

7

Wednesday, March 6th 2019, 9:43pm

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*
http://www.virtualtuur.com
Skype:studiotuur