日期:2014-05-17 浏览次数:21448 次
<script>
var d, str;
window.onload = window.onscroll = function () {
d = document.getElementById("d");
str = "<strong>" + ((document.compatMode.toLowerCase().indexOf("back") >= 0) ? "Quirks" : "Standards") + "</strong><br />"
+ "document.documentElement.scrollTop:" + document.documentElement.scrollTop + "<br />"
+ "document.body.scrollTop:" + document.body.scrollTop;
d.innerHTML = str;
}
</script>
<body style="font:12px Arial; _background-attachment:fixed; _background-image:url(about:blank);">
<div style="height:10000px;"></div>
<div id="d" style="position:fixed; top:0; left:0; _position:absolute; _top:expression(offsetParent.scrollTop); _left:expression(offsetParent.scrollLeft); background:#ddd;"></div>
</body>
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
int HTMLBodyElement::scrollTop() const
{
// Update the document's layout.
Document* doc = document();
doc->updateLayoutIgnorePendingStylesheets();
FrameView* view = doc->view();
return view ? adjustForZoom(view->scrollY(), view) : 0;
}
int HTMLBodyElement::scrollLeft() const
{
// Update the document's layout.
Document* doc = document();
doc->updateLayoutIgnorePendingStylesheets();
FrameView* view = doc->view();
return view ? adjustForZoom(view->scrollX(), view) : 0;
}
推荐阅读更多>
-
关于:HTML <DOCTYPE> 标签
-
JSP页面中使用extreamtable时用表格CSS无效的解决方法
-
急没分了!哭泣!一个简单有关问题却完全不会!关于ul li 标签
-
怎么创建 CSS
-
求:dreamweaver相关有关问题!
-
9个技巧网页快速减肥
-
div区域的色彩没显示出来
-
HTML框架集,用户注销重新窗体打开.链接登陆页面
-
DIV在IE 7.0中如何才能自动伸长
-
CSS怎么以标签的name属性定位
-
《CSS实战精华》读书笔记(二)(转)
-
帧窗口之间的交互技巧
-
CSS——低调的奢靡
-
DIV+CSS网页制作格局技术技巧
-
怎么取热点区图的边界坐标 html map area coords
-
求教一个翻页的有关问题
-
在dreamwear中怎么实现网页中动态浏览图片呀
-
HTML5一步一步走——新标签讲授(一)
-
HTML模板跟CSS基准样式(三)
-
html table中的单元格的跳动方向设立