Closed Thread Icon

Preserved Topic: Accessing 'clip' preoperties through the DOM Pages that link to <a href="https://ozoneasylum.com/backlink?for=18299" title="Pages that link to Preserved Topic: Accessing &amp;#039;clip&amp;#039; preoperties through the DOM" rel="nofollow" >Preserved Topic: Accessing &#039;clip&#039; preoperties through the DOM\

 
Author Thread
Dox
Nervous Wreck (II) Inmate

From: UK
Insane since: May 2002

posted posted 05-28-2002 15:49

I'm trying to do this in NN6 and IE5.x. I can't seem to change the 'clip' properties for a div, Am I writing it wrong?

document.getElementById('contentsclip').style.clip.top = 0;

CPrompt
Maniac (V) Inmate

From: there...no..there.....
Insane since: May 2001

posted posted 05-28-2002 17:39

This may help.

Also check out Bratta's site: http://www.dhtmlcentral.com

Later,
C:\


~Binary is best~

someoneInverse
Bipolar (III) Inmate

From:
Insane since: May 2002

posted posted 05-28-2002 17:57

here's a bit of sample code for you

<div id="testDiv" style="position: absolute; top: 200px; left:200px; background-color: #aaccff; width: 200px; height: 200px;">
content
</div>

<button onclick="document.getElementById('testDiv').style.clip='rect(0px 60px 30px 10px)'">Clip that div</button>


hope it helps

Dox
Nervous Wreck (II) Inmate

From: UK
Insane since: May 2002

posted posted 05-28-2002 18:14

Thanks a lot, Some of this DHTML formatting can be wierd...

« BackwardsOnwards »

Show Forum Drop Down Menu