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

推荐订阅源

C
Cisco Blogs
Schneier on Security
Schneier on Security
T
Tor Project blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tenable Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
Security Latest
Security Latest
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
NISL@THU
NISL@THU
L
Lohrmann on Cybersecurity
Scott Helme
Scott Helme
Webroot Blog
Webroot Blog
Project Zero
Project Zero
Google Online Security Blog
Google Online Security Blog
The Last Watchdog
The Last Watchdog
Spread Privacy
Spread Privacy
Hacker News: Ask HN
Hacker News: Ask HN
PCI Perspectives
PCI Perspectives
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
W
WeLiveSecurity
Attack and Defense Labs
Attack and Defense Labs
D
Darknet – Hacking Tools, Hacker News & Cyber Security
N
News | PayPal Newsroom
Help Net Security
Help Net Security
The Hacker News
The Hacker News
H
Heimdal Security Blog
O
OpenAI News
S
Security @ Cisco Blogs
N
News and Events Feed by Topic
Cyberwarzone
Cyberwarzone
Simon Willison's Weblog
Simon Willison's Weblog
G
GRAHAM CLULEY
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园 - 叶小钗
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Tailwind CSS Blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
I
Intezer
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Security Affairs
P
Proofpoint News Feed
S
Secure Thoughts
腾讯CDC
Google DeepMind News
Google DeepMind News
量子位
罗磊的独立博客

博客园 - 天龙

ASP.NET 中关于 Async 和 Await 的概述 WIN2003的IIS6调试ASP出现HTTP 500 - 内部服务器错误 SEO 工具集合 去除网页FLASH"单击并激活此控件"解决办法 - 天龙 - 博客园 SQL远程备份 - 天龙 - 博客园 Web Service测试工具小汇 删除SQL 日志 纯HTML也能访问数据库 - 天龙 - 博客园 关于net2.0里面新出现的类backgroundworker的应用 使用CHARINDEX函数提高查询速度 如果为网站生成自签名SSL证书 利用html设计滚动的文字 - 天龙 - 博客园 使IIS支持HTTPS/SSL A scrollable panel retaining its scroll position across postbacks. - 天龙 google搜索参数 SQL2分查找法通用分页存储过程算法 五种提高SQL Server性能的方法 解析Atlas—微软的Ajax工具包 在ASP.NET 2.0工程中加入Atlas
[转]用一个JS代码实现页面刷新后保持页面滚动条的位置 - 天龙 - 博客园
天龙 · 2007-05-20 · via 博客园 - 天龙

代码如下:


  <SCRIPT   LANGUAGE="JavaScript">     
  <!--     
  /*haiwa@2004-02-12*/     
  function   Trim(strValue)     
  {     
  return   strValue.replace(/^\s*|\s*$/g,"");     
  }     
  function   SetCookie(sName,   sValue)     
  {     
  document.cookie   =   sName   +   "="   +   escape(sValue);     
  }     
    
  function   GetCookie(sName)     
  {     
  var   aCookie   =   document.cookie.split(";");     
  for   (var   i=0;   i   <   aCookie.length;   i++)     
  {     
  var   aCrumb   =   aCookie[i].split("=");     
  if   (sName   ==   Trim(aCrumb[0]))     
  {     
  return   unescape(aCrumb[1]);     
  }     
  }     
    
  return   null;     
  }     
  function   scrollback()     
  {     
  if   (GetCookie("scroll")!=null){document.body.scrollTop=GetCookie("scroll")}     
  }     
  //-->     
  </SCRIPT>     
    
  然后修改BODY位置为   
  <BODY   id=body   onscroll=SetCookie("scroll",body.scrollTop);   onload="scrollback();">