H
Hugo
I am building a website. Now I want to put a couple of lines on my
page which I want to blink. <blink> is not supported for shapes/lines
and I want to decide myself if i want a line to blink. What do I mean:
button1.onclick{
line1.blink(??)}
button2.onclick{
line2.blink(??)}
button3.onclick{
stop blinking line1}
function blink(line){
blink every second (line.strokecolor = 'blue' and next time
line.strokecolor = 'red' for example)
}
Can it be done with setInterval or setTimeout? Mention that more than
one line has to blink.
Can anyone help me? Perhaps something with a timer or so. I am not
that experienced with java/programming. I realy appreciate your help.
page which I want to blink. <blink> is not supported for shapes/lines
and I want to decide myself if i want a line to blink. What do I mean:
button1.onclick{
line1.blink(??)}
button2.onclick{
line2.blink(??)}
button3.onclick{
stop blinking line1}
function blink(line){
blink every second (line.strokecolor = 'blue' and next time
line.strokecolor = 'red' for example)
}
Can it be done with setInterval or setTimeout? Mention that more than
one line has to blink.
Can anyone help me? Perhaps something with a timer or so. I am not
that experienced with java/programming. I realy appreciate your help.