Name

Layer.offset( ) — move a Layer to a relative position

Availability

Netscape 4 only; deprecated

Synopsis

                  layer.offset(dx, dy)

Arguments

dx

The number of pixels to move the layer to the right (may be negative).

dy

The number of pixels to move the layer down (may be negative).

Description

offset( ) moves a layer relative to its current position. offset( ) is deprecated in favor of moveBy( ).

Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.