PDA

View Full Version : YOffset of a DIV



salaterella
08-13-2009, 02:57 PM
Hi,
how can I catch the YOffset of a DIV?

The DIV is called "right", I tried this way but with no luck:


var posY = document.getElementById("right");

function style() {
if(posY<=100) {
second();
}
}

any idea?

salaterella
08-13-2009, 05:18 PM
I found something very interesting and it works!

Eric's weblog (http://radio.javaranch.com/pascarello/2005/07/18/1121709316718.html)