컴터/Javascript / html
[나름 정리]winodw 위치... 신빙성 없음 ㅡ,.ㅡ
우렁씨
2008. 4. 11. 20:01
http://koxo.com/lang/js/object/exp/xdoclinks.html
window.event.clientY : 이벤트가 일어난 y축 값
document.body.clientWidth : 열린창에 보이는 창의 넓이
screen.height : 사용자 pc 해상도 높이(screen.width)
screen.availHeight : 사용자 pc 해상도 중 사용자가 볼수 있는 해상도 높이(availWidth)
obj.style.pixelWidth : 해당 object 의 픽셀 넓이 값 (pixelHeight)
obj.offsetTop : obj 의 탑
document.body.scrollHeight : (scrollTop)
obj.style.posTop : 해당 객체의 top 이고, css 로 이동시킬때 사용
imgObj.style.posTop=166
imgObj.style.posLeft=10
imgObj.style.pixelTop=166
imgObj.style.pixelLeft=10
imgObj.style.top=166px
imgObj.style.left=10px
window.event.clientY : 이벤트가 일어난 y축 값
document.body.clientWidth : 열린창에 보이는 창의 넓이
screen.height : 사용자 pc 해상도 높이(screen.width)
screen.availHeight : 사용자 pc 해상도 중 사용자가 볼수 있는 해상도 높이(availWidth)
obj.style.pixelWidth : 해당 object 의 픽셀 넓이 값 (pixelHeight)
obj.offsetTop : obj 의 탑
document.body.scrollHeight : (scrollTop)
obj.style.posTop : 해당 객체의 top 이고, css 로 이동시킬때 사용
imgObj.style.posTop=166
imgObj.style.posLeft=10
imgObj.style.pixelTop=166
imgObj.style.pixelLeft=10
imgObj.style.top=166px
imgObj.style.left=10px