座標取得

1.オブジェクトの x, y 座標


* objX = bytefx.$position(document.getElementById(ID)).x;
* objY = bytefx.$position(document.getElementById(ID)).y;

2.スクロールされた x, y 座標


* document.documentElement.scrollLeft、document.documentElement.scrollTop
* document.body.scrollLeft、document.body.scrollTop
* window.scrollLeft、window.scrollTop


3.ドキュメントの幅、高さ


* document.documentElement.scrollWidth、document.documentElement.scrollHeight
* document.body.scrollWidth、document.body.scrollHeight


4.ウィンドウの幅、高さ


* document.documentElement.clientWidth、document.documentElement.clientHeight
* document.body.clientWidth、document.body.clientHeight
* window.innerWidth、window.innerHeight