更改〉〉〉滚动文字〈〈〈的效果。。。。。。。。100分

Linshen 2003-10-29 11:52:32
这是一个从右向左滚动的效果,我想改成从下向上滚动的效果。
一诺千金,一定给分。


<table style="font-size:10pt" width="650" border="0" cellspacing="0" cellpadding="0" height="20" > <tr>
<td bgcolor="#F3F9FC" >
<marquee behavior="scroll" scrollDelay=80 scrollamount="5" onmouseover="this.stop()" onmouseout="this.start()">
<a href="http://www.csdn.net/news/newstopic/13/13852.shtml">· Sun发布开放源代友和商用Java工具中文版 </a>
<a href="http://www.dwlive.com.cn/">· IBM2003开发者大会即将开始</a>
<a href="http://www.dearbook.com.cn/liwei/">· 李维最新力作即将出版《深入核心-VCL架构剖析》</a>
<a href="http://www.csdn.net/news/newstopic/13/13908.shtml">· 微软瞄准嵌入式设备 将允许用户查看源代码</a>
<a href="http://www.csdn.net/news/newstopic/13/13903.shtml">· 微软将公布Longhorn技术预览版及开发工具包</a>
<a href="http://www.palmsource.com/cn/conference2003/index.html">· PalmSource中国开发者大会 </a>
<a href="http://www.csdn.net/Develop/article/21/21596.shtm">· 保护你的代码——谁动了我的组件?</a>
<a href="8.htm"></a>
<a href="9.htm"></a>
</marquee>
</td>
</tr>
</table>
...全文
27 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
Linshen 2003-10-29
  • 打赏
  • 举报
回复
我是楼主。我想设置这个程序的X/Y轴的位置
N1rvana 2003-10-29
  • 打赏
  • 举报
回复
再给你转一个关于marquee的资料吧:
------------------------------
会移动的文字(Marquee)


基本语法
<marquee> ... </marquee>
<marquee>啦啦啦,我会移动耶!</marquee>

文字移动属性的设置
方向 <direction=#> #=left, right,down,up
<marquee direction=left>啦啦啦,我从右向左移!</marquee>
<marquee direction=right>啦啦啦,我从左向右移!</marquee>
<marquee direction=up>啦啦啦,我从下向上移!</marquee>
<marquee direction=right>啦啦啦,我从上向下移!</marquee>

方式 <bihavior=#> #=scroll, slide, alternate
<marquee behavior=scroll>啦啦啦,我一圈一圈绕着走!</marquee> <P>
<marquee behavior=slide>啦啦啦,我只走一次就歇了!</marquee> <P>
<marquee behavior=alternate>啦啦啦,我来回走耶!</marquee>


循环 <loop=#> #=次数;若未指定则循环不止(infinite)
<marquee loop=3 width=50% behavior=scroll>啦啦啦,我只走 3 趟哟!</marquee> <P>
<marquee loop=3 width=50% behavior=slide>啦啦啦,我只走 3 趟哟!</marquee> <P>
<marquee loop=3 width=50% behavior=alternate>啦啦啦,我只走 3 趟哟!</marquee>


速度 <scrollamount=#>
<marquee scrollamount=20>啦啦啦,我走得好快哟!</marquee>

延时 <scrolldelay=#>
<marquee scrolldelay=500 scrollamount=100>啦啦啦,我走一步,停一停!</marquee>

外观(Layout)设置
对齐方式(Align) <align=#> #=top, middle, bottom
<font size=6>
<marquee align=# width=400>啦啦啦,我会移动耶!</marquee>
</font>
对齐上沿、中间、下沿。


底色 <bgcolor=#...>
"#..." = "# rr gg bb " or "颜 色 的 名 字"
颜 色 是 用 16 进 制 的 红-绿-蓝 (red-green-blue) RGB 数 值 来 表 示。 16 进 制 的 数 码 有: 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f.
颜 色 也 可 以 用 它 的 名 字 来 表 示。
16 色颜 色 名 和 RGB 数 值 表
256 色 颜 色 名 和 RGB 数 值 表
<marquee bgcolor=aaaaee>啦啦啦,我会移动耶!</marquee>

面积 <height=# width=#>
<marquee height=40 width=50% bgcolor=aaeeaa>
啦啦啦,我会移动耶!
</marquee>

空白(Margins)<hspace=# vspace=#>
********************************************<br>
嗨,
<marquee hspace=20 vspace=20 width=150 bgcolor=ffaaaa align=middle>啦啦啦,我会移动耶!</marquee>
大家好!<br>
feichong 2003-10-29
  • 打赏
  • 举报
回复
direction="down"
N1rvana 2003-10-29
  • 打赏
  • 举报
回复
在<marquee behavior="scroll" scrollDelay=80 scrollamount="5" onmouseover="this.stop()" onmouseout="this.start()">

里加一句
direction=down或者direction=up

也就是:
<marquee direction=down behavior="scroll" scrollDelay=80 scrollamount="5" onmouseover="this.stop()" onmouseout="this.start()">
或者
<marquee direction=up behavior="scroll" scrollDelay=80 scrollamount="5" onmouseover="this.stop()" onmouseout="this.start()">
潇洒 2003-10-29
  • 打赏
  • 举报
回复

要设置位置, 直接<marquee style="left:100px;top:100px"> 就应该可以了.
实在不行, 放到 div 里就可以随便改了.~

87,914

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧