Hi,
that's a Javascript Object, and you can define the variables with it's values as properties of that object,
e.g.
|
Quellcode
|
1
|
embedpano({xml:"krpano.xml", target:"krpanoDIV", vars:{onstart:"trace(hello)", simulatedevice:"UserAgent"}});
|
or create the vars object before the embedding and then pass it:
|
Quellcode
|
1
2
3
4
5
|
var vars = {};
vars["onstart"] = "trace(hello);";
vars["plugin[test].url"] = "test.jpg";
...
embedpano({xml:"krpano.xml", target:"krpanoDIV", vars:vars}});
|
best regards,
Klaus