www.fgks.org   »   [go: up one dir, main page]

Click to Rate and Give Feedback
 defaults Object
defaults Object

Programmatically sets default properties on an element behavior.

Members Table

The following table lists the members exposed by the defaults object.

Attributes/Properties
Show:
AttributePropertyDescription
blockDirection Gets a string value that indicates whether the content in the block element flows from left to right, or from right to left.
canHaveHTML Sets or retrieves the value indicating whether the object can contain rich HTML markup.
CONTENTEDITABLEcontentEditable Sets or retrieves the string that indicates whether the user can edit the content of the object.
isMultiLine Retrieves the value indicating whether the content of the object contains one or more lines.
tabStop Sets or retrieves whether an element behavior can receive focus and participate in the tabbing sequence.
viewInheritStyle Sets or retrieves a value that indicates whether the document fragment inherits the Cascading Style Sheets (CSS) styles set in the primary document.
viewLink Sets or retrieves the document object that supplies content to the master element.
viewMasterTab Sets or retrieves a value that indicates whether the master element of a viewlink is included in the tab sequence of the primary document.
EventDescription
onbeforeeditfocus Fires before an object contained in an editable element enters a UI-activated state or when an editable container object is control selected.
ObjectDescription
style Represents the current settings of all possible inline styles for a given element.
Style attributeStyle propertyDescription
ACCELERATORaccelerator Sets or retrieves a string that indicates whether the object contains an accelerator key.
backgroundbackground Sets or retrieves up to five separate background properties of the object.
background-attachmentbackgroundAttachment Sets or retrieves how the background image is attached to the object within the document.
background-colorbackgroundColor Sets or retrieves the color behind the content of the object.
background-imagebackgroundImage Sets or retrieves the background image of the object.
background-positionbackgroundPosition Sets or retrieves the position of the background of the object.
background-position-xbackgroundPositionX Sets or retrieves the x-coordinate of the backgroundPosition property.
background-position-ybackgroundPositionY Sets or retrieves the y-coordinate of the backgroundPosition property.
background-repeatbackgroundRepeat Sets or retrieves how the backgroundImage property of the object is tiled.
behaviorbehavior Sets or retrieves the location of the Dynamic HTML (DHTML) behavior.
borderborder Sets or retrieves the properties to draw around the object.
border-bottomborderBottom Sets or retrieves the properties of the bottom border of the object.
border-bottom-colorborderBottomColor Sets or retrieves the color of the bottom border of the object.
border-bottom-styleborderBottomStyle Sets or retrieves the style of the bottom border of the object.
border-bottom-widthborderBottomWidth Sets or retrieves the width of the bottom border of the object.
border-colorborderColor Sets or retrieves the border color of the object.
border-leftborderLeft Sets or retrieves the properties of the left border of the object.
border-left-colorborderLeftColor Sets or retrieves the color of the left border of the object.
border-left-styleborderLeftStyle Sets or retrieves the style of the left border of the object.
border-left-widthborderLeftWidth Sets or retrieves the width of the left border of the object.
border-rightborderRight Sets or retrieves the properties of the right border of the object.
border-right-colorborderRightColor Sets or retrieves the color of the right border of the object.
border-right-styleborderRightStyle Sets or retrieves the style of the right border of the object.
border-right-widthborderRightWidth Sets or retrieves the width of the right border of the object.
border-styleborderStyle Sets or retrieves the style of the left, right, top, and bottom borders of the object.
border-topborderTop Sets or retrieves the properties of the top border of the object.
border-top-colorborderTopColor Sets or retrieves the color of the top border of the object.
border-top-styleborderTopStyle Sets or retrieves the style of the top border of the object.
border-top-widthborderTopWidth Sets or retrieves the width of the top border of the object.
border-widthborderWidth Sets or retrieves the width of the left, right, top, and bottom borders of the object.
bottombottom Sets or retrieves the bottom position of the object in relation to the bottom of the next positioned object in the document hierarchy.
clearclear Sets or retrieves whether the object allows floating objects on its left side, right side, or both, so that the next text displays past the floating objects.
clipclip Sets or retrieves which part of a positioned object is visible.
colorcolor Sets or retrieves the color of the text of the object.
cursorcursor Sets or retrieves the type of cursor to display as the mouse pointer moves over the object.
directiondirection Sets or retrieves the reading order of the object.
displaydisplay Sets or retrieves whether the object is rendered.
fontfont Sets or retrieves a combination of separate font properties of the object. Alternatively, sets or retrieves one or more of six user-preference fonts.
font-familyfontFamily Sets or retrieves the name of the font used for text in the object.
font-sizefontSize Sets or retrieves a value that indicates the font size used for text in the object.
font-stylefontStyle Sets or retrieves the font style of the object as italic, normal, or oblique.
font-variantfontVariant Sets or retrieves whether the text of the object is in small capital letters.
fontWeight Gets the numeric weight of the font of the object.
font-weightfontWeight Sets or retrieves the weight of the font of the object.
layout-gridlayoutGrid Sets or retrieves the composite document grid properties that specify the layout of text characters.
layout-grid-modelayoutGridMode Sets or retrieves whether the text layout grid uses two dimensions.
leftleft Sets or retrieves the position of the object relative to the left edge of the next positioned object in the document hierarchy.
letter-spacingletterSpacing Sets or retrieves the amount of additional space between letters in the object.
line-heightlineHeight Sets or retrieves the distance between lines in the object.
marginmargin Sets or retrieves the width of the top, right, bottom, and left margins of the object.
margin-bottommarginBottom Sets or retrieves the height of the bottom margin of the object.
margin-leftmarginLeft Sets or retrieves the width of the left margin of the object.
margin-rightmarginRight Sets or retrieves the width of the right margin of the object.
margin-topmarginTop Sets or retrieves the height of the top margin of the object.
overflowoverflow Sets or retrieves a value indicating how to manage the content of the object when the content exceeds the height or width of the object.
overflow-xoverflowX Sets or retrieves how to manage the content of the object when the content exceeds the width of the object.
overflow-yoverflowY Sets or retrieves how to manage the content of the object when the content exceeds the height of the object.
paddingpadding Sets or retrieves the amount of space to insert between the object and its margin or, if there is a border, between the object and its border.
padding-bottompaddingBottom Sets or retrieves the amount of space to insert between the bottom border of the object and the content.
padding-leftpaddingLeft Sets or retrieves the amount of space to insert between the left border of the object and the content.
padding-rightpaddingRight Sets or retrieves the amount of space to insert between the right border of the object and the content.
padding-toppaddingTop Sets or retrieves the amount of space to insert between the top border of the object and the content.
pixelBottom Sets or retrieves the bottom position of the object.
pixelHeight Sets or retrieves the height of the object.
pixelLeft Sets or retrieves the left position of the object.
pixelRight Sets or retrieves the right position of the object.
pixelTop Sets or retrieves the top position of the object.
pixelWidth Sets or retrieves the width of the object.
posBottom Sets or retrieves the bottom position of the object in the units specified by the bottom attribute.
posHeight Sets or retrieves the height of the object in the units specified by the height attribute.
positionposition Sets or retrieves the type of positioning used for the object.
posLeft Sets or retrieves the left position of the object in the units specified by the left attribute.
posRight Sets or retrieves the right position of the object in the units specified by the right attribute.
posTop Sets or retrieves the top position of the object in the units specified by the top attribute.
posWidth Sets or retrieves the width of the object in the units specified by the width attribute.
scrollbar-3dlight-colorscrollbar3dLightColor Sets or retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
scrollbar-arrow-colorscrollbarArrowColor Sets or retrieves the color of the arrow elements of a scroll arrow.
scrollbar-base-colorscrollbarBaseColor Sets or retrieves the color of the main elements of a scroll bar, which include the scroll box, track, and scroll arrows.
scrollbar-darkshadow-colorscrollbarDarkShadowColor Sets or retrieves the color of the gutter of a scroll bar.
scrollbar-face-colorscrollbarFaceColor Sets or retrieves the color of the scroll box and scroll arrows of a scroll bar.
scrollbar-highlight-colorscrollbarHighlightColor Sets or retrieves the color of the top and left edges of the scroll box and scroll arrows of a scroll bar.
scrollbar-shadow-colorscrollbarShadowColor Sets or retrieves the color of the bottom and right edges of the scroll box and scroll arrows of a scroll bar.
scrollbar-track-colorscrollbarTrackColor Sets or retrieves the color of the track element of a scroll bar.
floatstyleFloat Sets or retrieves on which side of the object the text will flow.
text-autospacetextAutospace Sets or retrieves the autospacing and narrow space width adjustment of text.
text-decorationtextDecoration Sets or retrieves a value that indicates whether the text in the object has blink, line-through, overline, or underline decorations.
textDecorationBlink Sets or retrieves a Boolean value that indicates whether the object's textDecoration property has a value of "blink."
textDecorationLineThrough Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn through it.
textDecorationNone Sets or retrieves the Boolean value indicating whether the textDecoration property for the object has been set to none.
textDecorationOverline Sets or retrieves a Boolean value indicating whether the text in the object has a line drawn over it.
textDecorationUnderline Sets or retrieves whether the text in the object is underlined.
text-overflowtextOverflow Sets or retrieves a value that indicates whether to render ellipses(...) to indicate text overflow.
text-transformtextTransform Sets or retrieves the rendering of the text in the object.
toptop Sets or retrieves the position of the object relative to the top of the next positioned object in the document hierarchy.
unicode-bidiunicodeBidi Sets or retrieves the level of embedding with respect to the bidirectional algorithm.
vertical-alignverticalAlign Sets or retrieves the vertical alignment of the object.
visibilityvisibility Sets or retrieves whether the content of the object is displayed.
z-indexzIndex Sets or retrieves the stacking order of positioned objects.

Remarks

The PUBLIC:DEFAULTS element is the declarative form of the defaults object.

This object is available in script as of Microsoft Internet Explorer 5.5.

Standards Information

There is no public standard that applies to this object.

See Also

Introduction to Viewlink, About Element Behaviors
Tags What's this?: Add a tag
Community Content
 
Add Community Content
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker
DCSIMG