解决方案 »
- 问个概念性问题。。
- 怎么加密成这段代码?在线加分,承诺每人散分.
- 请教关于WEB技术的趋势,哪些WEB技术将来会成为主流!
- 高分求一个JS 。。不断加分,到满意
- document.text 的用法
- JavaScirpt 在页面所获的值如何传递给.NET
- 关于 window.showModalDialog 的奇怪问题
- 怎样利用Javascript脚本判断服务器端某图片文件是否存在?
- 如何在js控制onclick的值
- 我有一个分类表,想让列表框显示,如何显示列表框
- 高分!求jquery实现图片的类似IE随机滤镜效果显示(半天没人回复,同事说标题要长才能引人注意)
- extjs程序在火狐下正常,在ie下报语法错误(点击修改时)急
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>JS图片过渡效果</title>
</head><body>
<table width="300" height="300" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#f4f4f4">
<tr>
<td><script language=JavaScript>
var elady_step=3; //1:small, 3:middle, 5:big
var elady_speed=50; //20:fast, 50:middle, 80:slow
var e_tp=new Array();
var e_tplink=new Array();
var adNum_elady1=0;
var elady_stop_sh=0;
var elady_star_sh=1;function elady1_moveImg(){
if ((!document.all&&!document.getElementById)||(elady_stop_sh==0)) return;
if (elady_star_sh==1){
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)+elady_step;}
else if (elady_star_sh==2){
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)+elady_step;}
else if (elady_star_sh==3){
document.all.elady1_divimg.style.pixelTop=parseInt(document.all.elady1_divimg.style.pixelTop)-elady_step;}
else{
document.all.elady1_divimg.style.pixelLeft=parseInt(document.all.elady1_divimg.style.pixelLeft)-elady_step;}
if (elady_star_sh<4) elady_star_sh++;
else elady_star_sh=1;
setTimeout("elady1_moveImg()",elady_speed);}e_tplink[0]="http://www.lanrentuku.com/";
e_tp[0]="images/01.jpg";e_tplink[1]="http://www.lanrentuku.com/";
e_tp[1]="images/02.jpg";e_tplink[2]="http://www.lanrentuku.com/";
e_tp[2]="images/03.jpg";e_tplink[3]="http://www.lanrentuku.com/";
e_tp[3]="images/04.jpg";
var currentimage=new Array();
for (i=0;i<=3;i++){currentimage[i]=new Image();
currentimage[i].src=e_tp[i];
}
function elady1_set(){ if (document.all)
{ e_tprotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
e_tprotator.filters.revealTrans.apply(); }
}
function elady1_playCo()
{ if (document.all) e_tprotator.filters.revealTrans.play()
}function elady1_nextAd(){ if(adNum_elady1<e_tp.length-1)adNum_elady1++ ;
else adNum_elady1=0;
elady1_set();
document.images.e_tprotator.src=e_tp[adNum_elady1];
elady1_playCo();
theTimer=setTimeout("elady1_nextAd()", 4000);}
function elady1_linkurl(){ jumpUrl=e_tplink[adNum_elady1];
jumpTarget='_blank';
if (jumpUrl != ''){ if (jumpTarget != '')window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}}
function elady1_listMsg()
{ status=e_tplink[adNum_elady1];
document.returnValue = true;}
document.write("<div id='elady1_divimg' style='position:relative'>");
document.write('<a onMouseOver="elady1_listMsg();return document.returnValue" href="javascript:elady1_linkurl()" target="_self">');
document.write('<img style="FILTER: revealTrans(duration=2,transition=20)" height=300 src="" width=300 border=0 name=e_tprotator ></a>');
document.write("</div>");
window.onload=function(){
elady1_nextAd();
}
</script></td>
</tr>
</table>
</body>
</html>
document.images.e_tprotator.src=e_tp[0];
elady1_nextAd();
}
为什么我测试的时候 是好的