Changing objects via java

Join us! Share tips and solutions with WebAnimator users around the world.
Locked
John Schwartz
Posts: 11

Changing objects via java

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

ICD
Posts: 200

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

Locked