faqts : Computers : Programming : Languages : JavaScript : DHTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 4 people (75%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

How do i get and set the clip values of a DIV in NN6 ?

Jan 14th, 2001 02:36
Ian Grant, Marco Kleinschmidt, Ed Wilson,


document.getElementById("Div ID").style.clip="rect(upper right lower 
left)"
or instead of pixel position of corners you can use auto
------------------------------------------------------------------------
Reading the values is a bit more complex, but I have described this 
before, both here:
http://www.faqts.com/knowledge_base/view.phtml/aid/7157/fid/128
and here:
http://www.javascript-games.org/cgi/theforum.pl?
command=displaygroup&group=1&articletoshow=Netscape%206/Mozilla%20DOM%
20Demystified
I hope this helps.
Ian Grant
idgrant@pandi.20m.com