How to change a line's color??

P

pkid

Hey gurus,

I am writing a beginner JS program to change a line color from black to
red ("255, 0, 0"), however, I cound not get it done...

I was thinking like:

this.Line1.border.edge.color.value = "255, 0, 0";

But how come it did not work????

Thanks!!!
 
E

Evertjan.

pkid wrote on 21 aug 2006 in comp.lang.javascript:
I am writing a beginner JS program to change a line color from black to
red ("255, 0, 0"), however, I cound not get it done...

I was thinking like:

this.Line1.border.edge.color.value = "255, 0, 0";

But how come it did not work????

because it is not DOM and not javascript.
edge? and a value value "255, 0, 0" ???
did you make thes words up?

try:

<span
onclick = "this.style.color='#f00'"
style='cursor:hand;color:green;'>
Click me to change my text color to red.</span>
 
P

pkid

Evertjan,

Is there a way like I said: this.Line1.border.edge.color.value = "255,
0, 0";

You know I am writing this in Adobe LiveCycle, basically it is a JS for
an Adobe Form.

So...

Thanks!!!


Evertjan. 写é“:
 
E

Evertjan.

pkid wrote on 21 aug 2006 in comp.lang.javascript:
Evertjan. 写é“:

[please do not toppost on usenet]
Is there a way like I said: this.Line1.border.edge.color.value = "255,
0, 0";

I doubt it, as I replied.

= rgb("255,0,0"); perhaps

No, I did not.
I am writing this in Adobe LiveCycle, basically it is a JS
for an Adobe Form.

How could we know, since you did not specify?
 
R

Randy Webb

pkid said the following on 8/21/2006 10:34 AM:

Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Evertjan,

Is there a way like I said: this.Line1.border.edge.color.value = "255,
0, 0";

Maybe, depending on Adobe's support.

What does "this" refer to in that context? The Form, the input element,
or what?

elementReference.style.borderColor="red";
You know I am writing this in Adobe LiveCycle,

We did? You think we are mind-readers? You should have specified that to
begin with.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top