Sie sind nicht angemeldet.

21

Dienstag, 29. Juni 2010, 01:48

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

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

22

Dienstag, 29. Juni 2010, 01:52

oke i took the onloaded out and in the only onstart there is action(taal_add);


no text

http://www.virtualtuur.com/w_c/

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

23

Dienstag, 29. Juni 2010, 01:55

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 *thumbsup*

24

Dienstag, 29. Juni 2010, 01:59


no text ???


I can see the "I love krpano"


Tuur, stays out from the bar for now *g* .... maybe later ;-) ...

edited: Ah no... you do not have erased the onloaded inside the hotspot .. so normal that it display ... no changes as before...

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

25

Dienstag, 29. Juni 2010, 02:02

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

26

Dienstag, 29. Juni 2010, 02:03

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

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

27

Dienstag, 29. Juni 2010, 02:05

<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>

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

28

Dienstag, 29. Juni 2010, 02:17

by the way...

can i also do :

<textstyle="style1"> i love krpano</textstyle>
*question*

29

Dienstag, 29. Juni 2010, 02:17

Hi tuur,

Yes, The beer is getting warm *g* ....
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.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

30

Dienstag, 29. Juni 2010, 02:19

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

31

Dienstag, 29. Juni 2010, 02:21

Hi Tuur,

Try to set keep to true for the hotspot:

Quellcode

1
2
3
4
<hotspot name="ab_1"
	     	url="P/plugins/textfield.swf"
	     	keep="true"
......

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

32

Dienstag, 29. Juni 2010, 02:24

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..

33

Dienstag, 29. Juni 2010, 02:34

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

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

34

Dienstag, 29. Juni 2010, 02:41

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>);

35

Dienstag, 29. Juni 2010, 02:46

Zitat

The answer is the fact that the data:html_add is added after taal_add() is called in your example.
*thumbup*

Zitat

Well, now that the mystery is solved, we can enjoy a few virtual beers.
*thumbsup*

36

Dienstag, 29. Juni 2010, 02:58

Oke great!!

how to put a textstyle here? instead of the way i do it now?

try:

Quellcode

1
2
3
4
5
6
7
8
<action name="taal_add">
		set(taal_color,"#0000ff");
		set(taal_weight,"bold");
		set(taal_family,"Verdana,Arial,Helvetica");
		txtadd(data[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

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

37

Dienstag, 29. Juni 2010, 03:02

mmm that doesn't work..

That will do it for tonight!!!

Thanx a lot... gonna stop now soon and sleep..

Cheers

Tuur *thumbsup*

38

Dienstag, 29. Juni 2010, 03:15

It's really amazing to see how you have clear ideas. Steve, *thumbsup* *attention* ...

tall_add("how steve enhance our knowledge :)");

SAlut.

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

Tuur

Erleuchteter

  • »Tuur« ist der Autor dieses Themas

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

40

Dienstag, 29. Juni 2010, 03:26

mmm i also want the %1 in the hotspot but first i like to know without..

i'm probably stupid..

Tuur