- 分享
- 0
- 人气
- 0
- 主题
- 45
- 帖子
- 854
- UID
- 227081
- 积分
- 1166
- 阅读权限
- 18
- 注册时间
- 2009-5-14
- 最后登录
- 2017-2-7
- 在线时间
- 5417 小时
|
回复 22# Super-Tomato
请问大大会slides show 多图显示吗?我做的这个另一个不会运作,哪里有错?
<table border="1">
<tr>
<td>
<img src="picture/pic1.jpg" id="1" style="FILTER: revealTrans(duration=2,transition=16); cursor:pointer;display:none">
<img src="picture/pic2.jpg" id="2" style="FILTER: revealTrans(duration=2,transition=17); cursor:pointer;display:none">
<img src="picture/pic3.jpg" id="3" style="FILTER: revealTrans(duration=2,transition=18); cursor:pointer;display:none">
<img src="picture/pic4.jpg" id="4" style="FILTER: revealTrans(duration=2,transition=19); cursor:pointer;display:none">
</td>
<td>
<img src="picture/pic5.jpg" id="1" style="FILTER: revealTrans(duration=2,transition=16); cursor:pointer;display:none">
<img src="picture/pic6.jpg" id="2" style="FILTER: revealTrans(duration=2,transition=17); cursor:pointer;display:none">
<img src="picture/pic7.jpg" id="3" style="FILTER: revealTrans(duration=2,transition=18); cursor:pointer;display:none">
<img src="picture/pic8.jpg" id="4" style="FILTER: revealTrans(duration=2,transition=19); cursor:pointer;display:none">
</td>
</table>
<script language="javascript">
function $(_sId) {
return document.getElementById(_sId);
}
var speed=5000;
var setid=null;
var auto="true";
function galleryplay(divs,a,mtime){
if(divs=="0")return false;
var start=3;
if(auto=="true")
{
start = a-1;
speed = mtime;
setid = null;
var loop = function(){
ids = divs.split(",");
for (var i=0;i<ids.length; i++)
{
$(ids).style.display='none';
}
$(ids[start]).filters.revealTrans.Transition = Math.floor(Math.random() * 23);
$(ids[start]).filters.revealTrans.apply();
$(ids[start]).filters.revealTrans.play();
$(ids[start]).style.display='';
setid=setTimeout(loop,speed);
start++;
if(start==ids.length){
start=0;
}
};loop();
}
}
galleryplay('1,2,3,4',1,5000);
</SCRIPT>
</div> |
|