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.

386<br />

TABLE.frame<br />

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

Listing 27-4: Cycling Through Table frame Property Values<br />

<br />

<br />

TABLE.frame Property<br />

<br />

var timeoutID<br />

var frameValues = [“box”, “above”, “rhs”, “below”, “lhs”, “hsides”, “vsides”,<br />

“border”, “void”]<br />

function rotateBorder(i) {<br />

document.getElementById(“myTABLE”).frame = frameValues[i]<br />

document.getElementById(“myCAPTION”).innerHTML = frameValues[i]<br />

i = (++i == frameValues.length) ? 0 : i<br />

timeoutID = setTimeout(“rotateBorder(“ + i + “)”, 2000)<br />

}<br />

function stopRotate() {<br />

clearTimeout(timeoutID)<br />

document.getElementById(“myTABLE”).frame = “box”<br />

document.getElementById(“myCAPTION”).innerHTML = “box”<br />

}<br />

<br />

<br />

<br />

TABLE.frame Property<br />

<br />

<br />

<br />

Cycle Table Edge Visibility<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Default<br />

<br />

<br />

RiverOutflowMilesKilometers<br />

<br />

<br />

<br />

<br />

NileMediterranean41606700<br />

<br />

<br />

CongoAtlantic Ocean29004670

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

Saved successfully!

Ooh no, something went wrong!