On Sun, 13 Nov 2005 14:47:23 -0000
"Chuck" <[EMAIL PROTECTED]> wrote:

> In my application I will need to implement blinking effects for various 
> symbols. For example, a symbol may represent a smoke detector and this 
> symbol would blink when in alarm and not acknowledged.
> 
> Since several symbols may require a blinking effect at the same time, 
> the blinking should be synchrounous so as to avoid driving the user 
> crazy.
> 
> 
> What are some good ways to achieve this? I was thinking of two methods. 
> One method would be to implement this entirely in java script by 
> creating a "blink list". Symbols would be added and subtracted from the 
> list as necessary. Anytime the list is not empty a javascript timer 
> loop would run at 0.5 second interval alternately hiding and unhiding 
> the population of symbols. The other method would be to dynamically 
> create and delete animations for each symbol that needs to blink. This 
> second method seems powerful (as it would let me implement more complex 
> blinking such as fade-in fade-out) but I am not sure how to synchronize.
> 
> How have the masses tackled this problem? What are the performance 
> implecations for each approach considering it is possible to have 
> hundreds of symbols blinking on a single display?

I've used this approach from Java before and it worked quite well. I've never
done it from JavaScript. Two items that made my work easier, I used a cycle
of 1 second on and one second off. Also, instead of hiding the 'alarmed'
items I changed the opacity. Setting the opacity to 0.5 and then back to 1.0
(or removing it) gave a nice flashing effect.

G. Wade
-- 
Results are what you wanted, consequences are what you got.
                                                 -- Michael VanDusen


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to