15.02.2013 Views

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

document.myLayer.onMouseDown = engage<br />

document.myLayer.onMouseUp = release<br />

document.myLayer.onMouseMove = resizeIt<br />

<br />

<br />

<br />

Chapter 15 ✦ The NN4 Layer Object (Chapter 31)<br />

Listing 31-12b: Content for the Resizable Layer<br />

<br />

<br />

Resize me by dragging the lower-right corner.<br />

<br />

if (navigator.userAgent.indexOf(“Mac”) != -1) {<br />

document.write(“(Mac users: Ctrl-Click me first; then Click to stop<br />

dragging.)”)<br />

}<br />

<br />

<br />

<br />

✦ ✦ ✦<br />

467<br />

document.layerObject.resizeBy()

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!