ailing521-1314
小狐狸
小狐狸
  • UID3924
  • 注册日期2005-03-12
  • 最后登录2005-03-12
  • 发帖数7
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:3219回复:1

谢谢了,帮我看一下吧

楼主#
更多 发布于:2005-03-12 13:24
<table width="200" height="219" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign=middle><IMG id=image1
style="FILTER: revealTrans(Duration=4.0, Transition=1); VISIBILITY: hidden"
src="images/001.jpg" border=0></td>
<SCRIPT>
var imgs = new Array(3);
imgs[0] = "images/001.jpg";
imgs[1] = "images/002.jpg";
imgs[2] = "images/003.jpg";
imgs[3] = "images/004.jpg";
var maximg =  4;
curimg = -1;
function renderit(){
transition = Math.floor(Math.random()*23);
document.getElementById("image1").filters.item(0).apply();
document.getElementById("image1").filters.item(0).transition =transition;
document.getElementById("image1").style.visibility = "";
document.getElementById("image1").filters(0).play(2.0);
}

function switchit(){
    if(typeof(document.getElementById("image1"))!='undefined' && (document.getElementById("image1")) !=null){
document.getElementById("image1").style.visibility="hidden";
curimg++;
if( curimg>= maximg) curimg = 0;
document.getElementById("image1").src=imgs[curimg];
renderit();
setTimeout(switchit,5000);
    }
}
switchit();
</SCRIPT>
</tr>
</table>
猫头猪
狐狸大王
狐狸大王
  • UID163
  • 注册日期2004-11-25
  • 最后登录2005-12-04
  • 发帖数595
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
1楼#
发布于:2005-03-12 13:24
filters不支持。尽量使用style吧。
游客

返回顶部