You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Tuesday, March 13th 2018, 10:56am

How to add a Independent local krpano events with Javascript Interface

I want to add a Independent local krpano events with Javascript Interface and don't know how to add. The troublesome friends share the method, thank you.

2

Tuesday, March 13th 2018, 11:06am

I wrote that.

var mypano=document.getElementById("krpano");
mypano.set("events.name","skin_events");
mypano.set("events[skin_events].onxmlcomplete","js(initPano());")

But do not execute initPano function

3

Wednesday, March 14th 2018, 11:03am

Try this:

Source code

1
2
3
var mypano=document.getElementById("krpanoSWFObject");
mypano.set("events[myevents].keep", true);
mypano.set("events[myevents].onxmlcomplete","js(initPano());")

4

Wednesday, March 14th 2018, 11:23am

Thank you very much.