javascript 窗口位置 读书笔记
兼容IE6的position:fixed
<div style="position:fixed; background-color:#ff0; top:10px; left:50%; _position:absolute; _top:expression(document.documentElement.scrollTop+(parseInt(this.currentStyle.marginTop,10)||0));">漂浮</div>
获取浏览器窗口相对于屏幕位置
leftPos = (typeof window.screenLeft == "number") ? window.screenLeft : window.screenX;
topPos = (typeof window.screenTop == "number") ? window.screenTop : window.screenY;