| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 5464 人关注过本帖
标题:如何制作一串从右到左移动的照片
只看楼主 加入收藏
蓝色枫叶
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2005-10-23
收藏
得分:0 
[fly]" border="0" />[/fly]
图片不能使用本地地址,要使用网站地址如http://  ;  ftp://

[此贴子已经被bestlife于2005-10-24 12:20:24编辑过]



[glow=255,red,2]有一种默契 叫心照不宣。有一种感觉 叫妙不可言。有一种思念 叫望眼欲穿。[/glow]
2005-10-23 11:43
giggs0711
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2005-10-31
收藏
得分:0 

<!--专题图片精选 begin-->
<!--滚动图片资料 begin-->
<style type="text/css">
.RollPic{
border:1px solid #999999;
padding:9px 9px 9px 9px;
background-color:#fff;
overflow:hidden;
}

.RollTitle{color:#fff;line-height:19px;}
</style>
<table width=750 cellspacing=0 bgcolor=#ffffff>
<tr>
<td width=1 height=2></td>
<td></td>
<td width=1></td>
</tr>
<tr>
<td></td>
<td>

<table width=100% cellspacing=0 style='border:1px solid #9F9F9F;'>
<tr align=center>
<td width=27 height=140 bgcolor=#7C7C7C class='RollTitle'><b>滚<br/>动<br/>图<br/>片</b></td>
<td bgcolor=#CCCCCC>
<div id=demo style="overflow:hidden;height:140px;width:700px;margin-top:12px;">

<table width= cellspacing=0>
<tr>
<td id=demo1>
<table cellspacing=0>
<tr>
<!--滚动图片 begin-->
<td class=RollPic><a href=/z/chinaoverseas/photo/21206/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-10-28/U1022P6T12D1849520F44DT20051028232916_small_h.jpg border=1 alt='阿德莱德险胜曲圣卿发威'></a></td>
<td width=4><img width=4></td>
<td class=RollPic><a href=/z/chinaoverseas/photo/21153/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-10-27/U329P6T12D1847136F44DT20051027111027_small_h.jpg border=1 alt='德国杯邵佳一进球1860晋级'></a></td>
<td width=4><img width=4></td>
<td class=RollPic><a href=/z/chinaoverseas/photo/21143/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/j/p/2005-10-27/U1489P6T12D1846210F44DT20051027015255_small_h.jpg border=1 alt='杜威回国欲汇合国足'></a></td>
<td width=4><img width=4></td>
<td class=RollPic><a href=/z/chinaoverseas/photo/21022/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-10-23/U1022P6T12D1839816F44DT20051023024326_small_h.jpg border=1 alt='孙继海难阻阿森纳取胜'></a></td>
<td width=4><img width=4></td>
<td class=RollPic><a href=/z/newphoto/photo/21000/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-10-22/U1533P6T12D1839147F44DT20051022202221_small_h.jpg border=1 alt='澳超曲圣卿表现不俗'></a></td>
<td width=4><img width=4></td>
<td class=RollPic><a href=/z/chinaoverseas/photo/20950/index.shtml target="_blank"><img src=http://image2.sina.com.cn/ty/g/p/2005-10-21/U1022P6T12D1837335F44DT20051021213650_small_h.jpg border=1 alt='杜威训练中热情高涨'></a></td>
<td width=4><img width=4></td>

<!--滚动图片 end-->
</tr>
</table>

</td>
<td id=demo2></td>
</tr>
</table>

</div>
</td>
</tr>
</table>
</td>
<td></td>
</tr>
<tr>
<td height=8></td>
<td></td>
<td></td>
</tr>
</table>

<script>
var speed=10//速度数值越大速度越慢
demo2.innerHTML=demo1.innerHTML
function Marquee(){
if(demo2.offsetWidth-demo.scrollLeft<=0)
demo.scrollLeft-=demo1.offsetWidth
else{
demo.scrollLeft++
}
}
var MyMar=setInterval(Marquee,speed)
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)}
</script>
<!--滚动图片资料 end-->
<!--专题图片精选 end-->

2005-10-31 13:56
a_men
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2005-11-6
收藏
得分:0 
14楼的 很不错

2005-11-07 11:55
ncnongmin
Rank: 1
来 自:福建
等 级:新手上路
帖 子:67
专家分:4
注 册:2008-4-10
收藏
得分:0 
<marquee> </marquee>

字母+数字+符号
2008-06-30 11:04
dahantianzi
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2008-7-1
收藏
得分:0 
11111
<html>
<head>
<script language="javascript">
document.writeIn('<marquee width=800 heigh=100 scrollAmount=1 scrollDelay=50 behavior=alternate>这里放图片</marquee>')
</script>
</head>
</html>
2008-07-01 18:39
快速回复:如何制作一串从右到左移动的照片
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016795 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved