Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
<data name="html_thumb1"> <p align="middle"><font face="Verdana" size="11"><textformat leftmargin="" rightmargin=""> <img src="../thumbs_lanterna/lanterna1.jpg" height="" width="" align="top"/> here i like to have something like : get(vartext_1) but then that it works.. ?? </textformat></font></p> </data> <plugin name="thumb1" url="../plugins/textfield.swf" keep="true" visible="false" enabled="true" handcursor="true" capture="true" children="true" zorder="110" alpha="1.00" blendmode="normal" smoothing="true" origin="leftbottom" edge="" x="30" y="30" width="220" height="150" scale="1" onloaded="" onover="" onhover="" onout="" ondown="" onup="" onclick="" autosize="none" background="true" backgroundcolor="0xFFFFFF" blur="0" bordercolor="0x000000" borderwidth="2" css="data:defaultcss" glow="0" glowcolor="16777215" html="data:html_thumb1" roundedge="8" selectable="false" shadow="3" textblur="0" textglow="0" textglowcolor="16777215" textshadow="0" parent="spot21" /> |
: https://pame.virtualtuur.comBenutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comDieser Beitrag wurde bereits 1 mal editiert, zuletzt von »VN2009« (5. Oktober 2010, 17:57)
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
<plugin name="spot22" url="buttons/mappoint2.png" parent="map_lanterna" zorderchildren="false" zorder="10" align="lefttop" edge="center" keep="true" scale="0.9" x="225" y="350" onclick="action(load2);" onover="set(plugin[spot22].zorder,20);set(plugin[thumb2].visible,true)" onout="set(plugin[thumb2].visible,false);set(plugin[spot22].zorder,10);" onloaded="taal_thumb();text_var();style_var();
"/>
<data name="html_thumb2">
</data>
<plugin name="thumb2"
url="plugins/textfield.swf"
keep="true"
visible="false" enabled="true" handcursor="true" capture="true" children="true"
zorder="90"
alpha="1.00" blendmode="normal"
smoothing="true"
origin="leftbottom" edge=""
x="30" y="30"
width="220" height="320"
scale="1"
onloaded="taal_thumbs();text_var();style_var();"
onover=""
onhover=""
onout=""
ondown=""
onup=""
onclick=""
autosize="none"
background="true"
backgroundcolor=""
blur="0"
bordercolor="0x000000"
borderwidth="2"
css=""
glow="0"
glowcolor="16777215"
html="data:html_thumb2"
roundedge="8"
selectable="false"
shadow="3"
textblur="0"
textglow="0"
textglowcolor="16777215"
textshadow="0"
parent="spot22"
/>
<action name="taal_thumbs">
txtadd(data[css].content,"body { color:",get(taal_color),"; font-weight:",get(taal_weight),"; font-family:",get(taal_family),";}");
txtadd(data[html_thumb2].content,"<p>",get(tf_thumb2),"</p>");
set(plugin[thumb2].css,data:css);
set(update,view);
</action>
<action name="text_var">
set(tf_thumb2), <p>DIT is een TEST </p>
<br />
<p><img src="ilovekrpano.jpg" align="center" width="" height="" visible="true" keep="true" alpha="1" zorder="110"/></p>;
</action>
<action name="style_var">
set(taal_color,"#ffffff");
set(taal_weight,"bold");
set(taal_family,"Verdana,Arial,Helvetica");
set(taal_color2,"#003399");
set(taal_weight2,"italic");
set(taal_family2,"Arial");
</action>
|
: https://pame.virtualtuur.comBenutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
|
|
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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
<action name="text_var">
set(tf_thumb2, <p> Bij de groentenstalletjes
<br />
<img src="../ilovekrpano.jpg" align="center" width="" height="" visible="true" keep="true" alpha="1" zorder="110"/> </p>)
</action>
<action name="style_var">
set(taal_color,"#000000");
set(taal_weight,"");
set(taal_family,"Verdana,Arial,Helvetica");
set(taal_color2,"#003399");
set(taal_weight2,"italic");
set(taal_family2,"Arial");
</action>
<action name="taal_thumbs">
txtadd(data[css].content,"body { color:",get(taal_color),"; font-weight:",get(taal_weight),"; font-family:",get(taal_family),";}");
txtadd(data[html_thumb2].content,"<p>",get(tf_thumb2),"</p>");
set(plugin[thumb2].css,data:css);
set(update,view);
</action>
<data name="html_thumb2">
</data>
<plugin name="thumb2"
url="plugins/textfield.swf"
keep="true"
visible="false" enabled="true" handcursor="true" capture="true" children="true"
zorder="90"
alpha="1.00" blendmode="normal"
smoothing="true"
origin="leftbottom" edge=""
x="30" y="30"
width="220" height="320"
scale="1"
onloaded="taal_thumbs();text_var();style_var();"
onover=""
onhover=""
onout=""
ondown=""
onup=""
onclick=""
autosize="none"
background="true"
backgroundcolor=""
blur="0"
bordercolor="0x000000"
borderwidth="2"
css=""
glow="0"
glowcolor="16777215"
html="data:html_thumb2"
roundedge="8"
selectable="false"
shadow="3"
textblur="0"
textglow="0"
textglowcolor="16777215"
textshadow="0"
parent="spot22"
/>
<plugin name="spot22" url="buttons/mappoint2.png" parent="map_lanterna" zorderchildren="false" zorder="10" align="lefttop" edge="center" keep="true" scale="0.9" x="225" y="350" onclick="action(load2);" onover="set(plugin[spot22].zorder,20);set(plugin[thumb2].visible,true)" onout="set(plugin[thumb2].visible,false);set(plugin[spot22].zorder,10);" onloaded="taal_thumbs();text_var();style_var();
"/>
|
: https://pame.virtualtuur.comBenutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
<data name="thumb1"> <p align="middle"><font face="Verdana" size="11"><textformat leftmargin="" rightmargin=""> <img src="../thumbs_lanterna/lanterna1.jpg" height="" width="" align="top"/> here i like to have something like : the language is get(language) <br/> <b> get(phrase[thumb1].language[get(language)].text) </b><br/> but then that it works.. ?? </textformat></font></p> </data> |
|
|
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 25 26 27 28 29 30 31 32 33 34 35 |
function kr_eval_get_in_string(varname) {
var krpano=document.getElementById("krpanoSWFObject");
var content= krpano.get(varname);
var subs = content.match(/get\((?:[^()]+|\(([^()]+|\(([^()]+|(\([^()]+\)))*\))*\))+\)/g); /* deals with up to 4 sets of nested parenthesis */
var name;
var val;
var i;
for (i=0;i < subs.length;i++)
{
name=subs[i].replace(/^get\(/,"");
name=name.replace(/\)$/,"");
val=kr_resolve(name);
content=content.replace(subs[i],val);
}
krpano.set(varname,content);
}
function kr_resolve(argument) {
var krpano=document.getElementById("krpanoSWFObject");
var subs = argument.match(/get\((?:[^()]+|\(([^()]+|\(([^()]+|(\([^()]+\)))*\))*\))+\)/g); /* deals with up to 4 sets of nested parenthesis */
var name;
var val;
var i;
if (subs != null) {
for (i=0;i < subs.length;i++)
{
name=subs[i].replace(/^get\(/,"");
name=name.replace(/\)$/,"");
val=kr_resolve(name);
argument=argument.replace(subs[i],val);
}
return(krpano.get(argument));
} else {
return(krpano.get(argument));
}
}
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
<phrase name="thumb1" > <language name="dutch" text="goedemorgen" /> <language name="english" text="good morning" /> <language name="spanish" text="buenas días" /> <language name="japanese" text="ohayou gozaimasu" /> <language name="french" text="bonjour" /> <language name="german" text="guten morgen" /> <language name="pig_latin" text="oodgay orningmay" /> </phrase> |
|
|
Quellcode |
1 2 3 4 |
<plugin name="foo" ... onhover="showtext(get(phrase[get(name)].language[get(language)].text)" ... |
|
|
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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 |
<krpano language="dutch" >
<preview type="grid(cube,16,16,512,0xCCCCCC,0x333333,0x999999);" details="16" />
<phrase name="thumb1" >
<language name="dutch" text="goedemorgen" />
<language name="english" text="good morning" />
<language name="spanish" text="buenas días" />
<language name="japanese" text="ohayou gozaimasu" />
<language name="french" text="bonjour" />
<language name="german" text="guten morgen" />
<language name="pig_latin" text="oodgay orningmay" />
</phrase>
<phrase name="thumb2" >
<language name="dutch" text="goede middag" />
<language name="english" text="good afternoon" />
<language name="spanish" text="buenas tardes" />
<language name="japanese" text="konnichiwa" />
<language name="french" text="bonjour" />
<language name="german" text="guten tag" />
<language name="pig_latin" text="oodgay afternoonway" />
</phrase>
<phrase name="thumb3" >
<language name="dutch" text="goede middag" />
<language name="english" text="good evening" />
<language name="spanish" text="buenas noches" />
<language name="japanese" text="konbanwa" />
<language name="french" text="bonsoir" />
<language name="german" text="guten abend" />
<language name="pig_latin" text="oodgay eveningway" />
</phrase>
<phrase name="thumb4" >
<language name="dutch" text="goede nacht" />
<language name="english" text="good night" />
<language name="spanish" text="buenas noches" />
<language name="japanese" text="oyasumi nasai" />
<language name="french" text="bonne nuit" />
<language name="german" text="gute nacht" />
<language name="pig_latin" text="oodgay ightnay" />
</phrase>
<action name="update_thumb">
if (data[%1].orig === null,
copy(data[%1].orig,data[%1].content);
<!--else-->,
copy(data[%1].content,data[%1].orig);
);
js("kr_eval_get_in_string(data[%1].content);");
txtadd(plugin[%1].html,"data:",%1);
</action>
<data name="thumb1">
<p align="middle"><font face="Verdana" size="11"><textformat leftmargin="" rightmargin="">
<img src="../thumbs_lanterna/lanterna1.jpg" height="" width="" align="top"/>
here i like to have something like :
the language is get(language) <br/> <b> get(phrase[thumb1].language[get(language)].text) </b><br/>
but then that it works.. ??
</textformat></font></p>
</data>
<data name="thumb2">
<p align="middle"><font face="Verdana" size="11"><textformat leftmargin="" rightmargin="">
<img src="../thumbs_lanterna/lanterna1.jpg" height="" width="" align="top"/>
here i like to have something like :
<br/> <b> get(phrase[thumb2].language[get(language)].text) </b> the width is get(stagewidth) <br/>
it works!!!
</textformat></font></p>
</data>
<data name="thumb3">
<p align="middle"><font face="Verdana" size="11"><textformat leftmargin="" rightmargin="">
<img src="../thumbs_lanterna/lanterna1.jpg" height="" width="" align="top"/>
more text:
stage height is get(stageheight) <br/> <b> get(phrase[thumb3].language[get(language)].text) </b> <br/>
it still works!!!
</textformat></font></p>
</data>
<data name="thumb4">
<p align="middle"><font face="Verdana" size="11"><textformat leftmargin="" rightmargin="">
<img src="../thumbs_lanterna/lanterna1.jpg" height="" width="" align="top"/>
and still more text:
<br/><b> get(phrase[thumb4].language[get(language)].text) </b><br/>
yeah!
</textformat></font></p>
</data>
<plugin name="thumb1"
x="30" y="30"
html="data:thumb1"
style="thumbstyle"
/>
<plugin name="thumb2"
x="270" y="30"
html="data:thumb2"
style="thumbstyle"
/>
<plugin name="thumb3"
x="510" y="30"
html="data:thumb3"
style="thumbstyle"
/>
<plugin name="thumb4"
x="750" y="30"
html="data:thumb4"
style="thumbstyle"
/>
<style name="thumbstyle"
url="%SWFPATH%/plugins/textfield.swf"
keep="true"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="110"
width="220" height="150"
alpha="1.00" blendmode="normal"
smoothing="true"
origin="leftbottom" edge=""
onhover="showtext(get(phrase[get(name)].language[get(language)].text));"
onloaded="txtadd(update,'update_thumb(',get(name),');');call(update);"
background="true"
backgroundcolor="0xFFFFFF"
blur="0"
bordercolor="0x000000"
borderwidth="2"
css="data:defaultcss"
roundedge="8"
selectable="false"
shadow="3"
/>
<plugin name="combobox"
url="%SWFPATH%/plugins/combobox.swf"
align="lefttop"
x="10"
y="10"
keep="true"
onloaded="action(setupitems);"
/>
<action name="setupitems">
removeall();
additem(dutch, set(language,dutch);update_plugins(););
additem(german, set(language,german);update_plugins(););
additem(english, set(language,english);update_plugins(););
additem(french, set(language,french);update_plugins(););
additem(spanish, set(language,spanish);update_plugins(););
additem(japanese, set(language,japanese);update_plugins(););
additem(pig latin, set(language,pig_latin);update_plugins(););
</action>
<action name="update_plugins">
foreach(plugin,action[%0].i,
if (plugin[get(action[%0].i)].update !== null,
call(plugin[get(action[%0].i)].update);
);
);
</action>
<!-- _foreach_action
private function to execute foreach loop body action -->
<action name="_foreach_action">
trace("Error in foreach loop: push/pop stack corrupted"); <!-- this line should never execute -->
</action>
<!-- foreach <objectid> <index.str> <body.str>
foreach loop function which iterates the action across each of the objects-->
<action name="foreach"> <!--objectid.str,index.str,body.str-->
set(%2,0);
push(action[_foreach_action].content);
set(action[_foreach_action].content,"if(%2 LT %1.count,%3;inc(%2);_foreach_action(););");
_foreach_action();
pop(action[_foreach_action].content);
</action>
</krpano>
|
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Zitat
Are you using full blown url paths to remedy the problem?
and that for a dutch ;-P
: https://pame.virtualtuur.com