Link to a Internet URL from Skin Infobox

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
Dirk Schenk
Posts: 14
Joined: Sat May 14, 2011 3:24 pm
Location: Dortmund, Germany

Hello,
I would like to add an internet link to an info box in the skin so that when clicked, this link opens in a new browser window. Unfortunately, I have no idea at the moment how to do this...
I would also like to use a placeholder for the user data, e.g. $(ua), for this link in order to be able to configure a corresponding link for each panorama.
In simple terms, you would really only have to achieve, e.g. with the Siplex skin, that the display of the placeholder $(ua) in the user data info box is not only displayed, but interpreted as a URL...

What is the easiest way to do this?

regards
Dirk
User avatar
Tony
Posts: 1379
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi Dirk,

I've attached a small project that uses the name of one of my web pages in the Author text field of the User Data panel.


2801-0.jpg
2801-0.jpg (559.29 KiB) Viewed 8160 times

In the info popup I have the following code,

Code: Select all

<a href="https://tonyredhead.com/pano2vr/$(ua)" target=blank"><b>Visit the $(ua) page on my website</b></a>
I use the entry to finalise the URL as well as the visual text for the link.

I've also added some CSS code to the Embedded Stylesheet in Properties > Skin Settings that adds colors to the URL.

Cheers,

Tony
Attachments
Link with Variable.zip
(46.24 KiB) Downloaded 99 times
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
Post Reply