首页 > 代码库 > 滚动字幕

滚动字幕

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>滚动字幕</title>
</head>
<body style="font-size:12px;">
<div class="text">
<marquee style="width: 230; height: 200" scrollAmount=1 scrollDelay=77 direction=left width=230 height=200 onm ouseOut="this.start()" onm ouseOver="this.stop()">
此处显示  class "text" 的内容</marquee>
</div>
 <p> 注释:marquee  /marquee(滚动)<br>
        scrollAmount(滚动的速度)<br>
        scrollDelay  (延时1000毫秒)<br>
        direction (属性规定文本的方向 / 书写方向。)(eg:left,right,up,down)<br>
        onm ouseOut="this.start()"用来设置鼠标移出该区域时继续滚动<br>
        onm ouseOver="this.stop()"用来设置鼠标移入该区域时停止滚动<br></p>
</body>
</html>

滚动字幕