Sie sind nicht angemeldet.

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

1

Montag, 20. Februar 2017, 15:58

OnClick event not working

Hi, I have a small logo in my tour (left top Dolls House View) which I want to be able to click on and open another url. I have added the following but it does not work. I am using Ver 1.19

<layer name="skin_logo" url="DHV.jpg" scale="0.50" align="lefttop" keep="true" opened_onclick="openurl('http://www.teamstarholidayrentals.com',_blank);" />


Here is the a link to the tour

Here is the assocated xml


Any ideas appreciated :)

2

Montag, 20. Februar 2017, 16:17

Quellcode

1
<layer name="skin_logo" url="DHV.jpg" scale="0.50" align="lefttop" keep="true" onclick="openurl('http://www.teamstarholidayrentals.com',_blank);"/>

Take care file is stored uppercase if you continue to use upper case file name definition as usually online servers OS systems are case sensitive!

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

3

Montag, 20. Februar 2017, 16:49

Thanks Umalo, I have changed it to lower case but still it does not work :(

4

Montag, 20. Februar 2017, 20:52

you missed to update code to one I pasted in previous post. Note the change in onlick! hint: opened_onclick vs onclick
As I see no action that translate opened_onclick to onclick attribute this is the same as you would add this_is_my_onclick_attribute_which_does_nothing="openurl('http://www.teamstarholidayrentals.com',_blank);"

virtual pete

Fortgeschrittener

  • »virtual pete« ist der Autor dieses Themas

Beiträge: 245

Wohnort: Nerja

Beruf: Holiday rentals Nerja Costa del Sol

  • Nachricht senden

5

Montag, 20. Februar 2017, 22:51

That's done it Umalo, sorry I did not look close enough :(

Not sure if there is a better way of doing this but essentially I have a dolls house 3D model of a property hosted by sketchfab and I have an embed code. Ideally I want to keep it within the tour rather than opening another page with the embed. I tried using a lightbox clone which puts the embedded HTML page in an iframe in a pop up but IOS does not see the embed and only works on windows :(