[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Flow of electricity
Hello all, Here is a simple "budget animation". I use two different methods to create the delays. The first method is to make a call to setTimeout() and is used to highlight the components of the circuit. The second method is a simple timer delay loop that is crude but is used to show the flow of electricity along the wire. I would have sent this out sooner but I was having an issue making the image behave the way I would like it too so I restructured the graphic till the problem went away :) I would love to get my hands on more DOM enable viewers to play with. As I start making more complex images/applications I am finding myself wishing I had a either getStyleProperty() or removeStyleProperty() method (I realize that this is difficult to implement) and the ability to make several DOM changes without waiting for a redraw between each one. If you find any problems with either the CGM or the html please let me know. -- Stuart Galt SGML Resource Group stuart.a.galt@boeing.com (206) 544-3656Title: WebCGM 2.0 Circuit
The circuit below contains the following components:
Click on the switch to complete the circuit and allow the electricity to flow from the positive side of the battery through the lamp and switch to the negative side of the battery.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]