让人跌眼镜的Marquee用法

王朝other·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

Marquee都会用,嵌套的Marquee你试过?来字经典论坛的沧海水朋友着实让人大跌眼镜:D

屏幕保护效果:

<marquee height="400" direction="up" width="500" bgcolor="#3366cc">

<marquee height="50" direction="left" width="100%">

<font style="font-size: 35px; color:#fff">MARQUEE</font>

</marquee>

</marquee>

再来个参数behavior="alternate"

scroll:Marquee 根据 direction 设置的方向滚动,文本滚到头以后再重头开始,这是默认值。.

alternate:Marquee 的内容到达容器的边缘后又按照相反的方向滚动回来,周而复始,形成周期

slid:Marquee 根据 direction 设置的方向滚动,到边缘就停止滚动,不再重复

就变成下面的:

<table>

<tr>

<td bgcolor=#cc3300 width=468>

<marquee direction="down" behavior="alternate" scrollamount=1 height="60">

<marquee direction="right" behavior="alternate" scrollamount=4 width="468">

我被墙撞回@_@!

</marquee>

</marquee>

</td>

</tr>

</table>

51js的小恐龙朋友继续发挥

<table bgcolor="#EFEFEF">

<tr><td width="1" valign="top" >

<marquee direction="down" behavior="alternate" scrollamount=1 height="60">

<marquee direction="right" scrollamount=4 behavior="alternate" width="468">

≮『 屏幕上的代码 』≯

</marquee>

</marquee>

</td>

<td width="468">

<marquee direction="up" behavior="alternate" scrollamount=1 height="60">

<marquee direction="left" scrollamount=4 behavior="alternate" width="468">

体验编写代码的乐趣 Ξ 研究更深入的技术

</marquee>

</marquee>

</td></tr></table>

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航