惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Privacy & Cybersecurity Law Blog
V
V2EX
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
MongoDB | Blog
MongoDB | Blog
P
Privacy International News Feed
The Last Watchdog
The Last Watchdog
Security Archives - TechRepublic
Security Archives - TechRepublic
美团技术团队
Stack Overflow Blog
Stack Overflow Blog
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
K
Kaspersky official blog
S
Secure Thoughts
T
Tenable Blog
Security Latest
Security Latest
The Cloudflare Blog
S
Security @ Cisco Blogs
H
Heimdal Security Blog
aimingoo的专栏
aimingoo的专栏
TaoSecurity Blog
TaoSecurity Blog
Blog — PlanetScale
Blog — PlanetScale
Microsoft Security Blog
Microsoft Security Blog
Schneier on Security
Schneier on Security
Webroot Blog
Webroot Blog
G
Google Developers Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Scott Helme
Scott Helme
IT之家
IT之家
Latest news
Latest news
The Hacker News
The Hacker News
C
Check Point Blog
T
The Exploit Database - CXSecurity.com
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
N
News | PayPal Newsroom
Forbes - Security
Forbes - Security
P
Palo Alto Networks Blog
S
Security Affairs
S
Securelist
Google Online Security Blog
Google Online Security Blog
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
C
Cybersecurity and Infrastructure Security Agency CISA
A
About on SuperTechFans

博客园 - 飞越梦想

[转]ASP.NET 数据绑定常用代码 简单调用VS自带的数据源选择对话框实现数据库连接字符串配置 Lucene.Net 系列 [转]lucene学习笔记三 各种query [转]JS获取屏幕,浏览器,网页高度宽度 第一次离线写Blog,先上个图先 [原创]如何判断线程池中所有的线程是否已经完成 模态窗口中提交表单时总在新窗口打开的解决办法 JS获取select-option text extjs form中隐藏textfield的方法 JavaScript 常用函数 SQL日期格式化应用大全 [导入]Enterprise Library 3.1 帮助文档中文翻译 [导入]7.1.1 [Enterprise Library]缓存应用程序块场景和目标 [导入]第 7 章 缓存应用程序块 [导入]4.3 [Enterprise Library]定制中等信任策略 [导入]4.2 [Enterprise Library]版本 [导入]4.1 为部署准备 Enterprise Library [导入]第 4 章 部署 Enterprise Library
获取滚动条高度
飞越梦想 · 2009-05-21 · via 博客园 - 飞越梦想

Code
function getScrollTop() {   
        
var scrollPos = 0;    
        
if (typeof window.pageYOffset != 'undefined') {    
           scrollPos 
= window.pageYOffset;    
        }    
        
else if (typeof window.document.compatMode != 'undefined' &&    
           window.document.compatMode 
!= 'BackCompat') {    
           scrollPos 
= window.document.documentElement.scrollTop;    
        }    
        
else if (typeof window.document.body != 'undefined') {    
           scrollPos 
= window.document.body.scrollTop;    
        }    
        
return scrollPos;   
    }