For example the box property of "background" which can have color, position, etc., becomes "backgroundColor" or "backgroundPosition" etc.
If you intended to change the absolute position of a block, would the property be listed as "positionAbsolute"? The intended effect is to have a black box move gradually to the right uncovering elements underneath that can select things. A pseudo-scroll you might call it.
The full explanation of the DOM (Document Object Model) can be found here http://www.mozilla.org/docs/dom/domref/dom_shortTOC.html but for what you are trying to do, you don't need to change the absolute position. The div is set to be absolute in your main CSS definitions, from there, you only need to change the top or left attributes.
var theBox = document.getElementById("box"
Thanks! That was what I needed to know (on both questions).
You must login to reply