发布网友 发布时间:2024-10-23 22:00
共3个回答
热心网友 时间:2024-11-12 09:21
给你个例子你自己看吧,应该能搞好的了。
<div id=xyzx style=overflow:hidden;height:120px;width:505px;color:#ff0000><table align=left cellpadding=0 cellspace=0 border=0><tr><td id=xyzx1 valign=top>
<table border=0 cellpadding=0 cellspacing=0><tr>
<td><A href="./ReadNews.asp?NewsID=667" title="九五班 张巧" target="_blank"><img border=0 src="uploadfile/20091022111739994.jpg" alt="九五班 张巧" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=666" title="九四班 覃李静" target="_blank"><img border=0 src="uploadfile/200910221111160.jpg" alt="九四班 覃李静" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=665" title="九三班 曹家凯" target="_blank"><img border=0 src="uploadfile/20091022111529691.jpg" alt="九三班 曹家凯" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=6" title="九二班 颜玲玲" target="_blank"><img border=0 src="uploadfile/20091022111420132.jpg" alt="九二班 颜玲玲" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=663" title="九一班 覃金莎" target="_blank"><img border=0 src="uploadfile/20091022111141915.jpg" alt="九一班 覃金莎" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=662" title="八五班 刘李春" target="_blank"><img border=0 src="uploadfile/20091022111013827.jpg" alt="八五班 刘李春" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=661" title="八四班 丁伊姿" target="_blank"><img border=0 src="uploadfile/2009102211858256.jpg" alt="八四班 丁伊姿" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=660" title="八三班 杜昌胜" target="_blank"><img border=0 src="uploadfile/2009102211745718.jpg" alt="八三班 杜昌胜" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=659" title="八二班 陈晓佳" target="_blank"><img border=0 src="uploadfile/2009102211623695.jpg" alt="八二班 陈晓佳" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=658" title="八一班 杜梦维" target="_blank"><img border=0 src="uploadfile/200910221151492.jpg" alt="八一班 杜梦维" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=657" title="七四班 杜盈" target="_blank"><img border=0 src="uploadfile/2009102211220821.jpg" alt="七四班 杜盈" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=652" title="七三班 孙高翔" target="_blank"><img border=0 src="uploadfile/2009102210407414.jpg" alt="七三班 孙高翔" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=651" title="七二班 覃宇" target="_blank"><img border=0 src="uploadfile/20091022103811299.jpg" alt="七二班 覃宇" width="160" height="120"></A></td>
<td><A href="./ReadNews.asp?NewsID=650" title="七一班 谢曜婷" target="_blank"><img border=0 src="uploadfile/20091022102047879.jpg" alt="七一班 谢曜婷" width="160" height="120"></A></td>
</tr>
</table>
</td><td id=xyzx2 valign=top></td></tr></table></div>
<script>
var speed=10//速度数值越大速度越慢
xyzx2.innerHTML=xyzx1.innerHTML
function Marquee(){
if(xyzx2.offsetWidth-xyzx.scrollLeft<=0)
xyzx.scrollLeft-=xyzx1.offsetWidth
else{
xyzx.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
xyzx.onmouseover=function() {clearInterval(MyMar)}
xyzx.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
热心网友 时间:2024-11-12 09:28
代码
http://zhidao.baidu.com/question/277283961.html
热心网友 时间:2024-11-12 09:27
这里有一个无缝滚动效果
方向可以自己设置
可以设置定高定宽停顿
你把文字改成图片就行
里面有源码可以参考