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

推荐订阅源

Engineering at Meta
Engineering at Meta
Cloudbric
Cloudbric
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
The GitHub Blog
The GitHub Blog
IT之家
IT之家
F
Full Disclosure
B
Blog RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
B
Blog
H
Help Net Security
The Cloudflare Blog
Recorded Future
Recorded Future
P
Proofpoint News Feed
P
Proofpoint News Feed
C
Cisco Blogs
T
Tailwind CSS Blog
P
Palo Alto Networks Blog
D
Docker
爱范儿
爱范儿
Know Your Adversary
Know Your Adversary
博客园 - 聂微东
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Y
Y Combinator Blog
雷峰网
雷峰网
AWS News Blog
AWS News Blog
D
DataBreaches.Net
博客园 - 司徒正美
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
博客园 - Franky
C
Cybersecurity and Infrastructure Security Agency CISA
Blog — PlanetScale
Blog — PlanetScale
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Latest news
Latest news
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
C
CERT Recently Published Vulnerability Notes
阮一峰的网络日志
阮一峰的网络日志
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CXSECURITY Database RSS Feed - CXSecurity.com
酷 壳 – CoolShell
酷 壳 – CoolShell
C
Cyber Attacks, Cyber Crime and Cyber Security
腾讯CDC
小众软件
小众软件
G
Google Developers Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Scott Helme
Scott Helme
O
OpenAI News

博客园 - 无极.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)  评论()    收藏  举报