Dynamic change Element (object) in-line style to see DHTML

xiaoxiao2021-03-06  45

Example: Function online111 () {for (i = 0; i

Whether the script is placed in the HTML document, the full document object is visible, the key: OnReadyStateChange

OnReadyStateChange: Fires When the State of the Object Has Changed. Of course, the documentation is Document. State state are the following: uninitialized loading loaded interactive complete; return a collection returns a collection of objects: If this parameter is a string and there is more than one element with the name or id property equal to the string, the method returns a collection Of mathing elements. There are a variety of object reference methods, as above: getElementsBytagname, Tags, which are home (elements). The same name object, of course, returns a collection. Tags can set a collection of ALLs and returns a collection. Elements for accessing a collection: OITEM = Object.Item (VINDEX [, ISUBINDEX]) and COLLELEMENTS = Object.tags (stag) getElementsBytagname, Tags return collection with phase nature, Tagname is the same, and all ALLs are all under this element Child elements, tagname is not necessarily the same, and all.tags () is filtered on ALL. If the subscript is not said, the collection seems to be sorted, returns the only reference.

Style tag properties and style properties don't have to say, see if you know: Fontweight and Font-Weight

转载请注明原文地址:https://www.9cbs.com/read-82949.html

New Post(0)