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

推荐订阅源

S
Schneier on Security
The Register - Security
The Register - Security
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
The GitHub Blog
The GitHub Blog
博客园 - 司徒正美
罗磊的独立博客
U
Unit 42
S
SegmentFault 最新的问题
Y
Y Combinator Blog
博客园_首页
Hugging Face - Blog
Hugging Face - Blog
J
Java Code Geeks
Schneier on Security
Schneier on Security
Know Your Adversary
Know Your Adversary
C
Check Point Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Simon Willison's Weblog
Simon Willison's Weblog
V
Vulnerabilities – Threatpost
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
阮一峰的网络日志
阮一峰的网络日志
The Hacker News
The Hacker News
博客园 - 叶小钗
C
Cybersecurity and Infrastructure Security Agency CISA
Spread Privacy
Spread Privacy
L
LINUX DO - 热门话题
T
The Exploit Database - CXSecurity.com
P
Palo Alto Networks Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Latest news
Latest news
L
Lohrmann on Cybersecurity
A
About on SuperTechFans
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
S
Securelist
A
Arctic Wolf
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
Threatpost
Scott Helme
Scott Helme
博客园 - 聂微东
博客园 - 【当耐特】
T
Tenable Blog
I
Intezer
D
DataBreaches.Net
B
Blog RSS Feed
Security Latest
Security Latest
C
Cisco Blogs
T
Tor Project blog
N
Netflix TechBlog - Medium

博客园 - 天龙

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

1.建立第一个滚动字幕。一般的使用代码:
<marquee width="160" height="60" direction="right" behavior="alternate" scrollamount="6" scrolldelay="60">VBC</marquee>

2.各参数详解:

a)scrollAmount。它表示速度,值越大速度越快。建议设为1~3比较好。
b)width和height,表示滚动区域的大小,width是宽度,height是高度。特别是在做垂直滚动的时候,一定要设height的值。
c)direction。表示滚动的方向,默认为从右向左:←。可选的值有right、down、up。滚动方向分别为:right表示→,up表示↑,down表示↓。
d)scrollDelay,这也是用来控制速度的,不添加,即默认为90。值越大,速度越慢。通常scrollDelay是不需要设置的。
e)behavior。用它来控制属性,默认为循环滚动,可选的值有alternate(交替滚动)、slide(幻灯片效果,指的是滚动一次,然后停止滚动)

3.实例:

a)文字滚动,并有链接。只要在文字外面加上<a href=***>和</a>就可以了。代码如下:
<marquee scrollAmount=2 width=160><a href=

http://www.zhvbc.com>精英宽带俱乐部</a></marquee>

b)当鼠标停留在文字上,文字停止滚动代码:
<marquee scrollAmount=2 width=300 onmouseover=stop() onmouseout=start()>ZHVBC</marquee>

c)交替效果,循环。代码如:
<marquee scrollAmount=2 width=160 behavior=alternate>ZHVBC</marquee>

d)多行文本向上滚动。代码如:
<marquee scrollAmount=2 width=300 height=50 direction=up>·精英宽带!<br>·自由港<br><a href=

http://www.zhvbc.com>客服网站</a></marquee>

e)改变滚动字幕的颜色?我们可以用样式表来控制。代码是:
<marquee scrollAmount=2 width=300><a style=color:FF0000>精英宽带欢迎您</a></marquee>

4.综合应用

<div align="center">
<marquee id=mid direction="up" height="180" onmouseover="mid.stop()" onMouseOut="mid.start()" scrollamount="2" scrolldelay="0">
<a href="#" target="_blank" title='心情设计'><img src="

http://www.zhvbc.com/images/gq.gif" width="88" height="31" border="0"></a>
<br>
<a href="#" target="_blank" title='精英自由港'><img src="http://www.zhvbc.com/images/gq.gif" width="88" height="31" border="0"></a>
<br>
</marquee>
</div>