Clip object (Object/Navigator)

An object that represents a clip region within a layer.

Availability:

JavaScript - 1.2
Netscape - 4.0
Deprecated Netscape 6.0
JavaScript syntax:NmyClip = myLayer.clip
NmyClip = myStyle.clip
NmyClip = myTextRectangle
NmyClip = myRect
Object properties:bottom, height, left, right, top, width

This object represents a clipping rectangle that the visible part of a display object is viewed through. This is most likely used with a layer object. The layer contents would be drawn off-screen and then that part that falls within the clipping rectangle would be displayed in the window.

This can be useful for performing wipes and making parts of a layer progressively visible within some kind of transition loop.

In the MSIE browser, these rectangular objects are manufactured as needed with the rect() constructor function.

Warnings:

See also:Layer.clip, Rect object, style.clip, textRectangle object

PropertyJavaScriptJScriptNIEOperaNESECMADOMCSSHTMLNotes
bottom1.2 1.2 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a n/aWarning , Deprecated
height1.2 1.2 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a n/aWarning , Deprecated
left1.2 1.2 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a n/aWarning , Deprecated
right1.2 1.2 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a n/aWarning , Deprecated
top1.2 1.2 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a n/aWarning , Deprecated
width1.2 1.2 n/a4.0 4.0 n/a n/a n/a n/a n/a n/a n/aWarning , Deprecated