search for: elementpos

Displaying 1 result from an estimated 1 matches for "elementpos".

Did you mean: elementos
2005 Dec 15
1
Some handy methods - perhaps cool enough to be committed some time
...creenX,window.screenY); } } } document.getElementsWithInArea=function(tagname,area){ var elements=document.getElementsByTagName(tagname); var elementsWithin=new Array(); for(var i=0;i<elements.length;i++){ var elementsize=Element.getSize(elements[i]); var elementpos=Element.getPosition(elements[i]); var elementarea=new Geometry.Area(elementpos,elementsize); if( (elementarea.getLeft() >= area.getLeft() && elementarea.getLeft()<area.getRight()) || (elementarea.getRight() >= area.getLeft() && elementarea.getRight() <...