I need to hide resp. show an element by clicking on a button in a panorama. However, the element I want to control is not itself included in the panorama.
As far as I can tell the available functions in the skin editor don't let me execute arbitrary javascript code from within pano2VR.
I have used an iframe to get the job done. Inserting a iframe does the trick, but it is a bit of an unsatisfactory solution in this case.
Any thoughts on how to do this?
Thanks!
Franco
embedding arbitrary javascript code in a button
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Franco,
You can use the Go To URL action.
As an example we use this to control the Gyro.
To toggle the Gyro off and on we use:
Mouse Click => Go To URL => URL: javascript:gyro.toggle(); => Target: (leave blank)
Regards,
Hopki
You can use the Go To URL action.
As an example we use this to control the Gyro.
To toggle the Gyro off and on we use:
Mouse Click => Go To URL => URL: javascript:gyro.toggle(); => Target: (leave blank)
Regards,
Hopki
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/