学习网页设计与制作之跑马灯标记

来源:互联网 发布:网络硬盘播放器怎么用 编辑:程序博客网 时间:2024/05/01 08:49

让你的文字滚起来!!!

并当鼠标停留在文本上时,文本会停止滚动,当鼠标移开时,文字有继续滚动!


用的跑马灯标记<marquee>……</marquee>   。


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><body> <marquee  direction="up" behavior="scroll" scrollamount ="3" scrolldelay = "4" loop="0" align ="middle" onmouseover=this.stop()  onmouseout=this.start() height = "120">     <strong>一不贪<br/>     <strong>二不争<br/>     <strong>三不抱屈<br/>     <strong>四不后悔<br/>     <strong>五不怨人<br/>     <strong>六不着急<br/>     <strong>七不上火<br/>     <strong>八不生气<br/>   </strong>    </marquee></body></html>

以上代码可运行。

0 0