本文主要包含html,marquee等相关知识,佚名 希望在学习及工作中可以帮助到您
该标签不是HTML3.2的一部分,并且只支持MSIE3以后内核,所以如果你使用非IE内核浏览器(如:Netscape)可能无法看到下面一些很有意思的效果
该标签是个容器标签
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> <FONT color=#000033>·<A href="#">微课江湖更多脚本代码...</A></FONT> <FONT color=#000033>·<A href="#">一个学习型的源码网站... </A></FONT> <FONT color=#000033>·<A href="#">如果有建议请提交给我们... </A></FONT> <FONT color=#000033>·<A href="#">非常感谢大家经常光顾</A></FONT> <FONT color=#000033>·<A href="#">再次感谢大家,再见</A></FONT> </TD></TR></TBODY></TABLE></MARQUEE></td> </tr> </table> </div> </body> </html>
提示:您可以先修改部分代码再运行
语法:
<marquee></marquee>
以下是一个最简单的例子:
代码如下:
该标签是个容器标签
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> <FONT color=#000033>·<A href="#">微课江湖更多脚本代码...</A></FONT> <FONT color=#000033>·<A href="#">一个学习型的源码网站... </A></FONT> <FONT color=#000033>·<A href="#">如果有建议请提交给我们... </A></FONT> <FONT color=#000033>·<A href="#">非常感谢大家经常光顾</A></FONT> <FONT color=#000033>·<A href="#">再次感谢大家,再见</A></FONT> </TD></TR></TBODY></TABLE></MARQUEE></td> </tr> </table> </div> </body> </html>
提示:您可以先修改部分代码再运行
语法:
<marquee></marquee>
以下是一个最简单的例子:
代码如下: