15.02.2013 Views

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

JavaScript Examples Bible - UserWorks Technologies

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 2 ✦ Window and Frame Objects (Chapter 16)<br />

<br />

and Vertical<br />

<br />

value.Then<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

setCursor(“cursorType”)<br />

NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5<br />

Compatibility ✓<br />

Example<br />

Use The Evaluator (Chapter 13 in the <strong>JavaScript</strong> <strong>Bible</strong>) in NN6 to experiment with<br />

setting the cursor. After clicking the top text box in preparation for typing, roll the<br />

cursor to a location atop an empty spot on the page. Then enter the following statements<br />

one at a time into the top text box and press Enter/Return:<br />

setCursor(“wait”)<br />

setCursor(“spinning”<br />

setCursor(“move”)<br />

After evaluating each statement, roll the cursor around the page, and notice<br />

where the cursor reverts to its normal appearance.<br />

setInterval(“expr”, msecDelay [, language])<br />

setInterval(funcRef, msecDelay [, funcarg1,<br />

..., funcargn])<br />

NN2 NN3 NN4 NN6 IE3/J1 IE3/J2 IE4 IE5 IE5.5<br />

Compatibility ✓ ✓ ✓ ✓ ✓<br />

Example<br />

The demonstration of the setInterval() method entails a two-framed environment.<br />

The framesetting document is shown in Listing 16-36.<br />

173<br />

windowObject.setInterval()

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

Saved successfully!

Ooh no, something went wrong!