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

推荐订阅源

U
Unit 42
T
Threatpost
C
CERT Recently Published Vulnerability Notes
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Security Archives - TechRepublic
Security Archives - TechRepublic
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
K
Kaspersky official blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Attack and Defense Labs
Attack and Defense Labs
N
News and Events Feed by Topic
Project Zero
Project Zero
H
Heimdal Security Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Know Your Adversary
Know Your Adversary
Google Online Security Blog
Google Online Security Blog
W
WeLiveSecurity
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Schneier on Security
Schneier on Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
N
News | PayPal Newsroom
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
Cloudbric
Cloudbric
V
Vulnerabilities – Threatpost
Hacker News: Ask HN
Hacker News: Ask HN
S
Securelist
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
TaoSecurity Blog
TaoSecurity Blog
NISL@THU
NISL@THU
N
News and Events Feed by Topic
S
Security Affairs
The Last Watchdog
The Last Watchdog
T
Tor Project blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
T
The Exploit Database - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
P
Palo Alto Networks Blog
AWS News Blog
AWS News Blog
P
Proofpoint News Feed
C
Cisco Blogs
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
L
LINUX DO - 最新话题
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Tenable Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Schneier on Security

博客园 - 无极.net

.NET正则表达式使用高级技巧之工作特点 .NET正则表达式使用高级技巧之反向引用 - 无极.net - 博客园 .NET正则表达式使用高级技巧之组的概念 - 无极.net - 博客园 .NET正则表达式使用高级技巧之替换类 C#中利用正则表达式实现字符串搜索 字符串长度,同时考虑二个英文=一个中文 - 无极.net - 博客园 c# 添加图片水印,可以指定水印位置+生成缩略图 - 无极.net - 博客园 FLASH图片新闻代码 - 无极.net - 博客园 正则表达式30分钟入门教程 v2.1 两个固定宽度的DIV,不换行 - 无极.net - 博客园 UrlReWriter 使用经验小结 如何在JS里取得两个数相除的整数和余数,那么如何判断一个数是整数呢? flash从asp中调用变量 菜单 ASP.NET AJAX(开发代号Atlas)重要参考资源大收集 索引[]在字符串中的用法 div 相对于浮动层定位,不占位 储存过程里设置了OUTPUT,取值 SQL 声明变量 declare
向上滚动
无极.net · 2007-03-06 · via 博客园 - 无极.net

向上滚动

<div>
<div id="roll_body" style="width:785px;height:150px; overflow:hidden; border:1px solid #FFCC33;">
<div id="roll_01" >
<div style=" margin:0; padding:0;width:785px;height:150px;border:2px solid #66FF00;">
    //此处省略滚动内容
</div>
<div style="clear:both"></div>
<div style=" margin:0; padding:0;width:785px;height:150px;border:2px solid #33CCCC;">
    //此处省略滚动内容
   </div>
<div style="clear:both"></div>
<div style=" margin:0; padding:0;width:785px;height:150px;border:2px solid #3300FF;">
</div>
</div>
<div id="roll_02"></div>
</div>
<div style="clear:both"></div>
</div>
//下面为脚本实现
<script type="text/javascript">
var table_height=154;//这个相当天路程
var speed=1;
var mode=false;
var pause_time=100;//这个是设置它的暂停时间的,试着把它设置0看看;
var steph=0;
var stept=10;
var demo=document.getElementById("roll_body");
var demo2=document.getElementById("roll_02");
var demo1=document.getElementById("roll_01");
demo2.innerHTML=demo1.innerHTML;
function Marquee(){
if(mode==true)return;
steph+=1;
if (steph>table_height){
stept+=1;
steph-=1;
if(stept>=pause_time){
steph=0;
stept=0;
}
}else{
demo.scrollTop+=1;
if(demo.scrollTop >=table_height*3) {
demo.scrollTop = 0;
}
}
}
MyMar=setInterval(Marquee,speed);
demo.onmouseover=function() {clearInterval(MyMar)};
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)};
</script>

posted on 2007-03-06 17:01  无极.net  阅读(376)  评论()    收藏  举报