滚动字幕marquee
<html>
<head>
<title>marquee</title>
</head>
<body>
<marquee bgcolor="red" width="500" height="200" direction="right" scrollamount="100" scrolldelay="1000" behavior="scroll" hspace="300" vspace="300">huanying</marquee>
</body>
</html>
direction:方向 left(默认) right 向右 up 向上 down 向下
behavior:行为 scroll 默认 alternate 左右 slide 只一次
width:宽度
height:高度
bgcolor:背景颜色
hspace:水平空白
vspace:垂直空白
scrollamount:移动速度(像素/秒)
scrolldelay:间隔多少时间显示(毫秒)
背景音乐
<bgsound src="路径+音乐名.mp3" loop="-1"/>
loop表示循环 -1 表示无限
ps:火狐的时候需要下载一个插件,没有的话音乐不会播放,其他浏览器没问题。