[html]代码库
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>HTML 语言教程</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.3562" name=GENERATOR>
</HEAD>
<BODY bgColor=#d4d4d4>
<H1 align=center>会移动的文字(Marquee)</H1>
<CENTER>
<P>
<HR>
<P></P>
</CENTER>
<CENTER>
<P><!--################## Basic ########################--><A
name=marquee></A></P>
</CENTER>
<H2>基本语法</H2>
<P><!------Basic-------></P>
<H3><marquee> ... </marquee></H3>
<DL>
<DD><TT><marquee>啦啦啦,我会移动耶!</marquee> </TT></DD>
</DL>
<P>
<MARQUEE>
啦啦啦,我会移动耶!
</MARQUEE>
</P>
<PRE></PRE>
<P><!--################## Scroll ########################--><A
name=scrolla></A></P>
<H2>文字移动属性的设置</H2>
<P><!------Direction-------><A name=dir></A></P>
<H3>方向 <direction=#> #=left, right</H3>
<DL>
<DD><TT><marquee direction=left>啦啦啦,我从右向左移!</marquee>
<P><BR>
<marquee direction=right>啦啦啦,我从左向右移!</marquee> </TT></DD>
</DL>
<P>
<MARQUEE>
啦啦啦,我从右向左移!
</MARQUEE>
</P>
<P>
<MARQUEE direction=right>
啦啦啦,我从左向右移!
</MARQUEE>
</P>
<PRE></PRE>
<P><!------BEHAVIOR-------><A name=style></A></P>
<H3>方式 <bihavior=#> #=scroll, slide, alternate</H3>
<DL>
<DD><TT><marquee behavior=scroll>啦啦啦,我一圈一圈绕着走!</marquee>
<P><BR>
<marquee behavior=slide>啦啦啦,我只走一次就歇了!</marquee> <P><BR>
<marquee behavior=alternate>啦啦啦,我来回走耶!</marquee> </TT></DD>
</DL>
<P>
<MARQUEE>
啦啦啦,我一圈一圈绕着走!
</MARQUEE>
</P>
<P>
<MARQUEE behavior=slide>
啦啦啦,我只走一次就歇了!
</MARQUEE>
</P>
<P>
<MARQUEE behavior=alternate>
啦啦啦,我来回走耶!
</MARQUEE>
</P>
<PRE></PRE>
<P><!------LOOP-------><A name=loop></A></P>
<H3>循环 <loop=#> #=次数;若未指定则循环不止(infinite)</H3>
<DL>
<DD><TT><marquee loop=3 width=50% behavior=scroll>啦啦啦,我只走 3
趟哟!</marquee> <P><BR>
<marquee loop=3 width=50% behavior=slide>啦啦啦,我只走 3
趟哟!</marquee> <P><BR>
<marquee loop=3 width=50% behavior=alternate>啦啦啦,我只走 3
趟哟!</marquee> </TT></DD>
</DL>
<P>
<MARQUEE loop=3 width="50%">
啦啦啦,我只走 3 趟哟!
</MARQUEE>
</P>
<P>
<MARQUEE behavior=slide loop=3 width="50%">
啦啦啦,我只走 3 趟哟!
</MARQUEE>
</P>
<P>
<MARQUEE behavior=alternate loop=3 width="50%">
啦啦啦,我只走 3 趟哟!
</MARQUEE>
</P>
<PRE></PRE>
<P><!------SCROLL AMOUNT-------><A name=scroll></A></P>
<H3>速度 <scrollamount=#></H3>
<DL>
<DD><TT><marquee scrollamount=20>啦啦啦,我走得好快哟!</marquee> </TT></DD>
</DL>
<P>
<MARQUEE scrollAmount=20>
啦啦啦,我走得好快哟!
</MARQUEE>
</P>
<PRE></PRE>
<P><!------SCROLL DELAY-------></P>
<H3>延时 <scrolldelay=#></H3>
<DL>
<DD><TT><marquee scrolldelay=500
scrollamount=100>啦啦啦,我走一步,停一停!</marquee> </TT></DD>
</DL>
<P>
<MARQUEE scrollAmount=100 scrollDelay=500>
啦啦啦,我走一步,停一停!
</MARQUEE>
</P>
<PRE></PRE>
<P><!--################## LAYOUT ########################--><A
name=layout></A></P>
<H2>外观(Layout)设置</H2>
<P><!------ALign-------><A name=align></A></P>
<H3>对齐方式(Align) <align=#> #=top, middle, bottom</H3>
<DL>
<DD><TT><font size=6><BR>
<marquee align=# width=400>啦啦啦,我会移动耶!</marquee><BR>
</font><BR>
对齐上沿、中间、下沿。</TT></DD>
</DL>
<FONT size=6>
<P>
<MARQUEE width=400 align="top">
啦啦啦,我会移动耶!
</MARQUEE>
</FONT> 对齐上沿。 </P>
<FONT size=6>
<P>
<MARQUEE width=400 align="middle">
啦啦啦,我会移动耶!
</MARQUEE>
</FONT> 对齐中间。 </P>
<FONT size=6>
<P>
<MARQUEE width=400 align="bottom">
啦啦啦,我会移动耶!
</MARQUEE>
</FONT> 对齐下沿。 </P>
<PRE>
</PRE>
<P><!------Background Color-------><A name=color></A></P>
<H3>底色 <bgcolor=#></H3>
<DL>
<DD><B>#=rrggbb</B> 16 进制数码,或者是下列预定义色彩</A>:<BR>
<FONT color=#000000>Black</FONT>, <FONT color=#808000>Olive</FONT>, <FONT
color=#008080>Teal</FONT>, <FONT color=#ff0000>Red</FONT>, <FONT
color=#0000ff>Blue</FONT>, <FONT color=#800000>Maroon</FONT>, <FONT
color=#000080>Navy</FONT>, <FONT color=#808080>Gray</FONT>, <FONT
color=#00ff00>Lime</FONT>, <BR>
<FONT color=#ff00ff>Fuchsia</FONT>, <FONT color=#ffffff>White</FONT>, <FONT
color=#008000>Green</FONT>, <FONT color=#800080>Purple</FONT>, <FONT
color=#c0c0c0>Silver</FONT>, <FONT color=#ffff00>Yellow</FONT>, <FONT
color=#00ffff>Aqua</FONT></DD>
</DL>
<DL>
<DD><TT><marquee bgcolor=aaaaee>啦啦啦,我会移动耶!</marquee> </TT></DD>
</DL>
<P>
<MARQUEE bgColor=#aaaaee>
啦啦啦,我会移动耶!
</MARQUEE>
</P>
<PRE></PRE>
<P><!------Size-------><A name=size></A></P>
<H3>面积 <height=# width=#></H3>
<DL>
<DD><TT><marquee height=40 width=50% bgcolor=aaeeaa><BR>
啦啦啦,我会移动耶!<BR>
</marquee> </TT></DD>
</DL>
<P>
<MARQUEE width="50%" bgColor=#aaeeaa height=40>
啦啦啦,我会移动耶!
</MARQUEE>
</P>
<PRE></PRE>
<P><!------Margins-------><A name=margin></A></P>
<H3>空白(Margins)<hspace=# vspace=#></H3>
<DL>
<DD><TT>********************************************<br><BR>
嗨,<BR>
<marquee hspace=20 vspace=20 width=150 bgcolor=ffaaaa
align=middle>啦啦啦,我会移动耶!</marquee><BR>
大家好!<br><BR>
******************************************** </TT></DD>
</DL>
<P>********************************************<BR>
嗨,
<MARQUEE hspace=20 vspace=20 width=150 bgColor=#ffaaaa align="middle">
啦啦啦,我会移动耶!
</MARQUEE>
大家好!<BR>
********************************************
</BODY>
</HTML>
高级设计师
by: 神马 发表于:2012-09-03 10:51:21 顶(0) | 踩(0) 回复
good!!!
回复评论