Page 1 of 1

Changing objects via java

Posted: Wed Jun 22, 2016 9:28 am
by John Schwartz
Hello WA

I have recently invested in the WAplus.
It has a strong functionality in the java functions. I am testing some of its potentials.
I can manipulate objects via style.
I can change the visibility via style.visibility = "hidden"/visible; and I can change the opacity as well.
I can also manipulate more objects in the same function.
BUT
I can't have the change/setting of an elements color to work.
I have tried with both style.color = "magenta"; and style.color = "#ff0000"; but none of these works.
How to manipulate the color ??

Re: Changing objects via java

Posted: Mon Jul 11, 2016 12:12 pm
by ICD
Hello,

I'm not sure what the problem might be here. I've tested with this code:

var x = document.getElementById("myId1234");
x.style.color = "#ff0000";

That sets the text color of the element to red.

Of course you can also set the color via simple key frames on the timeline.