so each xml could have something like the following:
Zitat
when loading a other xml file, all data tags remain unchanged unless they are defined again in the other xml. then they will be overwritten with the new ones.
|
|
Quellcode |
1 2 3 |
<data name="title_data">
<title_p>this is my title</title_p>
</data>
|
|
|
Quellcode |
1 2 3 |
<data name="title_css">
title_p{color:#FF0000; font-family:Arial; font-size:14;}
</data>
|
|
|
Quellcode |
1 2 3 4 5 6 7 |
<plugin name="title" url="%SWFPATH%/plugins/textfield.swf" align="top center" edge="top" width="250" height="18" x="0" y="-1" children="false" html="[p align="center"][font size="12" face="Verdana" color="#FFFFFF"]Virtual Tour[/font][/p]" background="false" autosize="center" onclick="" /> |
|
|
Quellcode |
1 2 3 4 5 6 7 |
<plugin name="title" url="%SWFPATH%/plugins/textfield.swf" align="top center" edge="top" width="250" height="18" x="0" y="-1" children="false" html="[p align="center"][font size="12" face="Verdana" color="#FFFFFF"]City Hall[/font][/p]" background="false" autosize="center" onclick="" /> |
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »tylerphotos« (20. Juli 2009, 04:31)
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<plugin name="title" url="%SWFPATH%/plugins/textfield.swf"
align="top center" edge="top" width="250" height="18" x="0" y="-1" children="false"
html="data:virtual_tour"
css="title_p{color:#FF0000; font-family:Arial; font-size:14;}"
background="false"
autosize="center"
onclick=""
/>
<data name="virtual_tour">
<title_p>Virtual Tour</title_p>
</data>
<action name="loadcityhall">
action(s_cityhall);
set(plugin[title].html,data:city_hall);
loadpano(cityhall.xml,null,KEEPALL,BLEND(2));set(krpano.view.fovmin,30);
wait(blend);oninterrupt(action(lookinterrupt));lookto(280,-5,120,smooth(50,25,100));
</action>
|
|
|
Quellcode |
1 2 3 |
<data name="city_hall"> <title_p>City Hall</title_p> </data> |
|
|
Quellcode |
1 |
set(plugin[title].html,data:city_hall); |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<data name="titletext">
<p align="center">
<title_p><b>Ponca City Virtual Tour</b></title_p>
</p>
</data>
<data name="title_css">
title_p{color:#FFFFFF; font-family:Verdana; font-size:12;}
</data>
<plugin name="title" url="%SWFPATH%/plugins/textfield.swf"
align="top center" edge="top" width="250" height="18" x="0" y="-2" children="false"
html="data:titletext"
css="data:title_css"
background="false"
autosize="center"
onclick=""
/>
<action name="loadcityhall">
action(s_cityhall);action(mapsclosebig);
loadpano(cityhall.xml,null,KEEPALL,BLEND(2),set(plugin[title].html,data:cityhall););set(krpano.view.fovmin,30);
wait(blend);oninterrupt(action(lookinterrupt));lookto(280,-5,120,smooth(50,25,100));
</action>
|
|
|
Quellcode |
1 2 3 4 5 |
<data name="cityhall"> <p align="center"> <title_p><b>City Hall</b></title_p> </p> </data> |