当前位置:编程学习 > JS >>

Marquee 公告滚动代码

最简单的网站公告滚动代码 ,基于Marquee走马灯,竖直向上滚动,Table表格形式,不懂CSS也能用。
答案:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>公告滚动JS代码</title>
</head>
<body>
<div align="center">
<table border="1" width="206" cellspacing="0" cellpadding="0" style="border-collapse: collapse" height="90"  id="table1">
<tr>
<td valign="top"><MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=1 scrollDelay=100 direction=up height="99%">
 <TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
     <TBODY>
      <TR>
        <TD vAlign=top height=120>
           <P style="LINE-HEIGHT: 150%;font-size:9pt"><FONT color=#000033>·<A href="#" >欢迎您光临!</A></FONT><BR><FONT color=#000033>·<A 
href="#">更多很棒的源代码...</A></FONT><BR><FONT color=#000033>·<A  
href="#">一个学习型的源码网站... </A></FONT><BR><FONT color=#000033>·<A href="#">如果有建议请提交给我们... </A></FONT><BR><FONT color=#000033>·<A href="#">非常感谢大家经常光顾</A></FONT><BR><FONT color=#000033>·<A href="#">再次感谢大家,再见</A></FONT>
</TD></TR></TBODY></TABLE></MARQUEE></td>
		</tr>
	</table>
</div>
</body>
</html>

上一个:平滑的JavaScript文字渐变光特效
下一个:鼠标自由拖动文字移动

CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,