Sie sind nicht angemeldet.

1

Dienstag, 12. Oktober 2010, 17:20

replacing html data does not retain css formatting

so I have a textfield at the top of my demo tour for labelling the scenes. it starts off centered and ok for the first scene. after running this

<events onloadcomplete="txtadd(plugin[titletext].html, 'text 1 ');"/>

the text does change but it looses all it formatting. goes back to 12 pt font and not centered or bolded.

css="p{color:#000000; font-family:Arial; font-weight:bold; font-size:20; margin-left:5; margin-right:5; text-align:center; }"

that is the CSS, how to i get new text to stay formatted the correct way?

2

Dienstag, 12. Oktober 2010, 18:39

Hi VN2009 ;-) ,

I think the problem is that your css refers to paragraph only: <p> ... </p>....
So, try this instead:
<events onloadcomplete="txtadd(plugin[text].html, '[p]text 1 [/p]');"/>

Hope this help...
SAlut.

3

Dienstag, 12. Oktober 2010, 20:54

place another check mark in the "W" column for Michel !

that fixed it, thank you!

4

Dienstag, 12. Oktober 2010, 21:08

Hi VN2009,

Zitat

place another check mark in the "W" column for Michel !
Sure it must be something sympathetic but I do not know what it mean *g* ...
I pass through many comments or details because I do not understand what they mean *sad* ... It is frustrating *wacko* ...

SAlut.

5

Dienstag, 12. Oktober 2010, 21:25

has to do with sports. W = WIN, L= LOSE

place a check mark in the "W" column means team Michel wins again!