You are not logged in.

Reggie

Trainee

  • "Reggie" started this thread

Posts: 92

Location: Seymour, TN US

Occupation: Virtual Tour Photographer

  • Send private message

1

Tuesday, March 7th 2017, 12:02pm

Add openurl attribute to dynamically loaded hotspot action

Hi,

I am using a logo image in layer on skin to dynamically load a hotspot. I would like for the hotspot to launch a website "onclick." Here is the code that I have tried:[code<action name="addhot2spot">addhotspot(newspot); set(hotspot[newspot].url, skin/hotspot.png); set(hotspot[newspot].onlick, openurl('http://www.krpano.com',_blank));set(hotspot[newspot].ath,150);set(hotspot[newspot].atv,200);set(hotspot[newspot].scale,0.9);set(hotspot[newspot].zoom,true);</action>][/code] and this isn't working. I would be grateful for guidance on how to do this.


Thank you, Reggie

jeromebg

Professional

Posts: 1,120

Location: Angers - France

Occupation: 360 experiences creator

  • Send private message

2

Tuesday, March 7th 2017, 12:12pm

onclick should work better than onlick ;)
set(hotspot[newspot].onlick, openurl('http://www.krpano.com',_blank));

Reggie

Trainee

  • "Reggie" started this thread

Posts: 92

Location: Seymour, TN US

Occupation: Virtual Tour Photographer

  • Send private message

3

Tuesday, March 7th 2017, 5:40pm

That's embarrassing!

....but my since I scoured the forum for 2 days to get that close, my eureka moment is only slightly diminished. Thank you jeromebg! *w00t*