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.

170<br />

<strong>JavaScript</strong> <strong>Examples</strong> <strong>Bible</strong>: The Essential Companion to <strong>JavaScript</strong> <strong>Bible</strong><br />

windowObject.scroll()<br />

Listing 16-32 (continued)<br />

<br />

A Picture is Worth...<br />

<br />

<br />

<br />

A Splendid Arch<br />

<br />

<br />

<br />

<br />

<br />

Listing 16-33: Controls to Adjust Scrolling of the Upper Frame<br />

<br />

<br />

Scroll Controller<br />

<br />

function scroll(x,y) {<br />

parent.frames[0].scroll(x,y)<br />

}<br />

function customScroll(form) {<br />

parent.frames[0].scroll(parseInt(form.x.value),parseInt(form.y.value))<br />

}<br />

<br />

<br />

<br />

Scroll Controller<br />

<br />

<br />

Click on a scroll coordinate for the upper frame:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Enter a Horizontal<br />

<br />

and Vertical<br />

<br />

value. Then

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

Saved successfully!

Ooh no, something went wrong!