該標籤不是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 cellspacing="0" cellpadding="0" style="border-collapse: collapse" id="table1"><tr><td valign="top"><MARQUEE onmouseover=this.stop() onmouseout=this.start() scrollAmount=1 scrollDelay=100 direction=up> <TABLE cellSpacing=0 cellPadding=0 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>以下是一個最簡單的例子:代碼如下:複製代碼