11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

{<br />

var theLayer = getElement(layerName);<br />

if (layerobject)<br />

{<br />

}<br />

else<br />

theLayer.clip.top = top;<br />

theLayer.clip.right = right;<br />

theLayer.clip.bottom = bottom;<br />

theLayer.clip.left = left;<br />

theLayer.style.clip = "rect("+top+"px "+right+"px "+"<br />

"+bottom+"px "+left+"px )";<br />

}<br />

/* set the contents of layerName to passed content*/<br />

function setContents(layerName, content)<br />

{<br />

var theLayer = getElement(layerName);<br />

if (layerobject)

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

Saved successfully!

Ooh no, something went wrong!