Hi godrifle,
I made a quick simple example for you.
https://www.virtualtuur.com/krpano/120/h…ml_structure/1/
xml
https://www.virtualtuur.com/krpano/120/h…ture/1/tour.xml
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<fruit
strawberry="0xff0000"
lemon="0xffff00"
apple="0x00ff00"
/>
<hotspot name="spot1"
type="text"
ath="0" atv="0"
width="50" height="50" bgroundedge="25"
bgcolor="get:fruit.strawberry"
onover="calc(bgcolor, fruit.lemon);"
onout="calc(bgcolor, fruit.strawberry)"
onclick="calc(bgcolor, fruit.apple)"
/>
|
in this case you could compare the use of <skin_settings> width <fruit>
This methode can be quite comfortable to use.
I tried to keep it simple but there is much possible this way.
You could leave for example the 0x in the fruit away (which you could also call colors) and then do calc(bgcolor, '0x'+ colors.lemon)
For texts in css you could then pick up the same but prefix with #
Hope it helps,
Tuur