javascript LI type
@March 15, 2008, 1:22 a.m.
type | Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1 | |||||||||||
Read/Write | ||||||||||||
Indicates the manner in which the leading bullets, numbers, or letters of items in the list are displayed. Bullet styles are displayed when the li element is nested inside a ul element; numbers and letters are displayed for an ol element. If your script changes the type for a single li object, be aware that the change affects all subsequent li elements in the same list. |
||||||||||||
Example | ||||||||||||
document.getElementById("instruxListItem3").type = "a"; document.getElementById("point4").type = "square"; |
||||||||||||
Value | ||||||||||||
For an ol style list, possible values are: A | a | I | i | 1. Sequencing is performed automatically as shown in the following table. |
||||||||||||
For a ul-style list, possible values are: circle | disc | square. |
||||||||||||
|
||||||||||||
Default | ||||||||||||
1 and disc (although values are empty unless the corresponding attribute is explicitly assigned). |
Permanent URL:
http://javascript.gakaa.com/li-type.aspx
Powered by Linode.