|
HTML elements in IE 4 now all support a style object, which is essentially the "dynamic" object used to manipulate the look and "feel" of that element. Like the tag, elements can also be assigned an "id" attribute, which can then be used to identify it during scripting.
You can access the style object of the mydiv as
mydiv.style
Properties of the style object
backgroundColor
|
The backgound color of the element
|
backgroundImage
|
The background image of the element
|
color
|
The color of the element
|
position
|
The position type of the element. Accepted values are "absolute" and relative"
|
pixelWidth
|
The width of the element
|
pixelHeight
|
The height of the element
|
pixelLeft
|
The position of the element in relation to the x coordinates
|
pixelTop
|
The position of the element in relation to the y coordinates
|
|