Hello, I declare the variable as varnadirlogo and carry it in the url?
How to declare variables?
-
-
Try reading the documentation up at the top for syntax, examples and more.
You example is js"ish. You need to see the krpano method. Explaining it here would be a waste of time as the documentation does it in depth.
-
-
-
in xml everything needs to go in a tag.
No idea what your trying to do, but I would create an action tag and use set as suggested.<action name="variables">
set(var1,'var1');
set(var2,'var2');
set(var3,'var4');
</action>Then you must run the action.
Or you can make a new tag for arrays etc.
<data name="variable1">content</data>
and build your arrays there. -
or you create your own xml tag, for instance:
Code
Alles anzeigen<images> <image name="logo" url="logo.png" pseudoproperty="a nice logo" /> <image name="footer" url ="footer.png" /> </images> <action name="set_images"> set(plugin[logo].url, get(images.image[logo].url)); set(plugin[footer].url, get(images.image[footer].url)); set(plugin[logo].onhover, showtext(get(images.image[logo].pseudoproperty))); </action> <plugin name="logo" /> <plugin name="footer" />
So there are some different options, using arrays, setting global variables or reading out certain object (data or plugin) :)
-
Thanks for the help
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!