下面给出一个例子来做一个最简单的滚动字幕:
<body><ul style="float:right;width:830px;display:inline;">
<marquee onMouseMove="this.stop()" onMouseOut="this.start()" scrollDelay=30 scrollAmount=2>
<li style="margin-left:10px;"><a href="" target="_blank" class="dong1">20款简约北欧风格经典样板房</a></li>
<li style="margin-left:10px;"><a href="" class="dong1">20款简约北欧风格经典样板房</a></li>
<li style="margin-left:10px;"><a href="" class="dong1">20款简约北欧风格经典样板房</a></li>
</marquee>
</ul>
<img src="image/gsjbzl.gif" width="30" height="20" border="1" />ghgfhfdghfdghfgh</p>
<p style="float:left">dfgdsfgdsfgsdfg</p>
</body>