maybe somebody else can actualy help?
Tuur
maybe somebody else can actualy help?
Tuur
Your textfield does not work on the iphone/ipad at all.
You will never get it to work unless you fix your files and your varibles from your functions don't even work in flash.
onloaded="text_var_credit();delayedcall(5, tween(alpha,0,0.5,,WAIT);set(html, [div style='color:#333366;width:100%;height:100%;font:bold 12px
Verdana;text-align:left;']data:html_title_text[/div]); tween(alpha,1,0.5););"
isn't trying to set any variables, and you haven't used any of the functions or textadd to change them.
If you simplify your project and use the functions I posted, you will understand it better. No where are you changing properly the textfield with variables.
instead of set(html, [div style='color:#333366;width:100%;height:100%;font:bold 12px
Verdana;text-align:left;']data:html_title_text[/div]); tween(alpha,1,0.5););"
use a function here to set the textfield using txtadd to update directly, not using again another data. You've made everything so confusing for yourself. If you start with a simple example, you should have it working using the code I provided.
Using set here is not causing txtfield to re-evalutate data:html_title
See here tuur.
http://www.seeit360.net/jstest/
txtfield works fine, no problems from javascript, krpano, iphone, ipad, and flash, and with variables.
Only need to use updated files, and read the documentation.
oke ..
i made an first.. new example
for desktop and mobile..
http://www.virtualtuur.com/krpano/test_text_var/1/
that works..
next step.. with vars..
Tuur
second example (only desktop yet)
http://www.virtualtuur.com/krpano/test_text_var/2/
(something i don't understand is why it sometimes NOT makes the second text yellow.. try refresh a few times)
So when u look to this code... u see i use the variables... i like to do the same trick with the variables for the idevices...
Tuur
Hi,
for using the textfield "data:" in the krpanoJS viewer, you would need to use the latest 1.0.8.14 version from here:
https://krpano.com/download/beta/
best regards,
Klaus
Great!!! Thanx Klaus!! That works.. perfect!
Still wondering why sometimes the second text goes yellow as i put in the style var and sometimes not (on desktop)
xml:
http://www.virtualtuur.com/krpano/test_text_var/2/tour.xml
and
http://www.virtualtuur.com/krpano/test_te…taaldesktop.xml
next question:
i like to use the style var etc but that doesn't take it..
<action name="style_var">
set(taal_color,"#333366");
set(taal_color2,"#FFFF00");
set(taal_weight,"");
set(taal_family,"Verdana,Arial,Helvetica");
</action>
<action name="credit_var">
txtadd(data[code=css].content,"body { color:",get(taal_color),"; font-weight:",get(taal_weight),"; font-family:",get(taal_family),";}");
set(plugin[credit_text].css,data:css);
</action>
<action name="title_var">
txtadd(data[code=css].content,"body { color:",get(taal_color2),"; font-weight:",get(taal_weight),"; font-family:",get(taal_family),";}");
set(plugin[title_text].css,data:css);
</action>
Alles anzeigen
i don't see it work but when i take out all style_var(); credit_var(); and title_var(); of the onloaded in the credit plugin (style) etc etc then there is no first text..
and the second text shows the css2 style..
I also tried:
html="[div style='color:#333366;width:100%;height:100%;
font:bold 12px Verdana;text-align:left;']data:html_credit_text[/div]"
but that's makes the text say data:html_credit_text... instead of the var triggered by the data (ph_1)..
look here for xml
http://www.virtualtuur.com/krpano/test_te…tour_mobile.xml
and
http://www.virtualtuur.com/krpano/test_text_var/2/taal.xml
also tried:
<data name="css2">
p{color:#FF0000; font-family:Arial; font-size:14;}
</data>
and
css="data:css2"
not working as supposed.. (?)
UPDATE: Oke got something working... the only thing is that i can't change the font-size for ipad... for iphone it works as expected ..
made a thirth version... only with the data:css2
don't understand..
http://www.virtualtuur.com/krpano/test_text_var/3/
http://www.virtualtuur.com/krpano/test_te…/simulator.html
seperate xmls for pad and phone
I hope i can get the css as well
Oehh then i'll be happy
Thanx
Tuur
Hi,
try to use pixels font sizes,
e.g. instead of:
Zitat<data name="css2">
p{color:#FF0000; font-family:Arial; font-size:14;}
</data>
that:
Zitat<data name="css2">
p{color:#FF0000; font-family:Arial; font-size:14px;}
</data>
best regards,
Klaus
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!