Adobe 38040334 API Reference - Page 360
Layout environment functions, dom.setLayerTag, dom.getRulerOrigin
![]() |
UPC - 883919090467
View all Adobe 38040334 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 360 highlights
DREAMWEAVER CS3 355 API Reference Example If the selected layer has the Left, Top, Width, and Height properties shown, calling dw.getDocumentDOM().resizeSelectionBy(-10,-30,30,10) is equivalent to resetting Left to 40, Top to 20, Width to 240, and Height to 240. dom.setLayerTag() Availability Dreamweaver 3. Description Specifies the HTML tag that defines the selected layer or layers. Arguments tagName • The tagName argument must be "layer", "ilayer", "div", or "span". Returns Nothing. Layout environment functions Layout environment functions handle operations that are related to the settings for working on a document. They affect the source, position, and opacity of the tracing image; get and set the ruler origin and units; turn the grid on and off and change its settings; and start or stop playing plug-ins. dom.getRulerOrigin() Availability Dreamweaver 3. Description Gets the origin of the ruler. Arguments None. Returns An array of two integers. The first array item is the x coordinate of the origin, and the second array item is the y coordinate of the origin. Both values are in pixels.
![](/manual_guide/products/adobe-38040334-api-reference-b593776/360.png)