51JS上有这样的代码:
这是效果:
关键就在于“behavior=alternate”,的内容到达边缘后又按照相反的方向滚动回来,周而复始。
把内容换换就可用在广告上了,不知会不会被傲游之类拦载。
<
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 >
< 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 >
|
关键就在于“behavior=alternate”,的内容到达边缘后又按照相反的方向滚动回来,周而复始。
把内容换换就可用在广告上了,不知会不会被傲游之类拦载。