I think you'll find that if you surround your text in the HTML with a <p> and a </p> you'll see the text go white
see you in the bar!
Steve
I think you'll find that if you surround your text in the HTML with a <p> and a </p> you'll see the text go white
see you in the bar!
Steve
oke i took the onloaded out and in the only onstart there is action(taal_add);
no text
Great!! so i can do that for all text variables there..
That's it
but i still need the onloaded in the hotspot it self..
Let's get a beer..topmorrow another day..
Cheerrrrrrs
Tuur
no text ???
I can see the "I love krpano"
Tuur, stays out from the bar for now .... maybe later ...
edited: Ah no... you do not have erased the onloaded inside the hotspot .. so normal that it display ... no changes as before...
yeah ...i put it back ... but when i take the onloaded away there is no text...
i will do now for some time like a beer or 3
Tuur
I'm on my phone again so I can't look at your XML. What does the load1 action do? Does it possibly load the XML that contains the data or plugin element?
Steve
<action name="load1">
set(plugin[spotx].x,100);
set(plugin[spotx].y,165);
set(plugin[radar].x,100);
set(plugin[radar].y,165);
loadpano(1.xml,null,MERGE,BLEND(1));
set(plugin[radar].heading,90);
</action>
by the way...
can i also do :
<textstyle="style1"> i love krpano</textstyle>
Hi tuur,
Yes, The beer is getting warm ....
That's really strange... I do not understand... In the editor I add the action inside the onstart and it works... I suppose that it is because when using the editor it is done locally in fact... So perhaps the action can only work when the textfield is ready... this could explain the need of the onloaded event...
SAlut.
oke , i put it back then...in a minute..
maybe klaus is fresh and clear in the morning
would be nice to use textstyle here..
Cheers
Tuur
but then i need to set it to false... later ...don't want to keep it in the next 30 pano's
for me it's oke like this but i don't understand..
now to set the ath atv varable..
Hey Tuur!
I think the reason that it doesn't work from onstart is because you call the taal_add() action before you load the 1.xml file which contains the data:html_add element. So when the onstart event occurs, first taal_add() runs which sets the undefined data:html_add contents to your string, then the 1.xml file is loaded which loads the data:html_add containing the original (junk) string. Since the 1.xml file is loaded after the taal_add() function has already been run your variable based string never gets set in the data:html_add.
That's the reason that you have to use the onloaded event to call taal_add().
Please don't misunderstand... I wasn't saying using the onstart event was the way you should call taal_add(). In fact, using the onloaded event is probably the more appropriate method for doing this. I was just curious as to why it worked on my example and not on yours. The answer is the fact that the data:html_add is added after taal_add() is called in your example.
Well, now that the mystery is solved, we can enjoy a few virtual beers.
steve
Oke great!!
how to put a textstyle here? instead of the way i do it now?
set($pano3_add1, <p><b><font face="Verdana" size="14"> Can not get that textstyle thing in...</font></b></p>);
i have this style for example:
<textstyle name="STYLE1"
font="Arial"
fontsize="14"
bold="true"
italic="true"
background="true"
backgroundcolor="0xEEEECC"
border="true"
bordercolor="0x777700"
textcolor="0x333300"
alpha="1.0"
blendmode="normal"
effect=""
origin="cursor"
edge="bottom"
textalign="none"
xoffset="0"
yoffset="-3"
/>
i tried:
set($pano3_add1, <p>Can not get that textstyle thing in... , STYLE1</p>);
QuoteThe answer is the fact that the data:html_add is added after taal_add() is called in your example.
QuoteWell, now that the mystery is solved, we can enjoy a few virtual beers.
Oke great!!
how to put a textstyle here? instead of the way i do it now?
try:
<action name="taal_add">
set(taal_color,"#0000ff");
set(taal_weight,"bold");
set(taal_family,"Verdana,Arial,Helvetica");
txtadd(data[code=css].content,"body { color:",get(taal_color),"; font-weight:",get(taal_weight)," font-family:",get(taal_family),";}");
txtadd(data[html_add].content,"<p>I love %1 in hotspot ",get(name),"</p>");
set(hotspot[ab_1].css,data:css2);
</action>
Note that this also shows how to use variables and arguments and insert them into data fields. taal_add now must be called with an argument that says what you love: tall_add("Krpano");. Also note that it gets the name of the hotspot that it is called from.
steve
mmm that doesn't work..
That will do it for tonight!!!
Thanx a lot... gonna stop now soon and sleep..
Cheers
Tuur
It's really amazing to see how you have clear ideas. Steve, ...
tall_add("how steve enhance our knowledge :)");
SAlut.
no comprendre
mmm i also want the %1 in the hotspot but first i like to know without..
i'm probably stupid..
Tuur
Don’t have an account yet? Register yourself now and be a part of our community!