福宝的小说txt百度云:求javascript代码,像门户网站里的图象切换,如下面的图例。

来源:百度文库 编辑:中科新闻网 时间:2024/05/03 10:41:07
求javascript代码,像门户网站里的图象切换,如下面的图例。
就下面的图片所示。
https://gss0.baidu.com/7LsWdDW5_xN3otqbppnN2DJv/space01/pic/item/10fdd41b2d8c53d5ac6e753f.jpg

最好要有用法详解,偶是菜鸟,只给代码偶看不懂。

本来想来找找代码的, 但是没看懂。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0037)http://www.ygxy.net/news_img/news.htm -->
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE>BODY {
MARGIN: 0px
}
</STYLE>
<SCRIPT language=javascript>
var elady_tp=new Array();
var elady_tplink1=new Array();
var adNumvii=0;
elady_tp[0]="news1.jpg"
elady_tplink1[0]="#"
elady_tp[1]="news2.jpg"
elady_tplink1[1]="#"
elady_tp[2]="news3.jpg"
elady_tplink1[2]="#"
elady_tp[3]="news4.jpg"
elady_tplink1[3]="#"
elady_tp[4]="news5.jpg"
elady_tplink1[4]="#"
var elady_cimage=new Array();
for (i=1;i<=5;i++){elady_cimage[i]=new Image();
elady_cimage[i].src=elady_tp[i];
}
function set_coelady1(){ if (document.all)
{ elady_tprotator1.filters.revealTrans.Transition=Math.floor(Math.random()*23);
elady_tprotator1.filters.revealTrans.apply(); }
}
function play_coelady1()
{ if (document.all) elady_tprotator1.filters.revealTrans.play()
}function next_elady1(){ if(adNumvii<elady_tp.length-1)adNumvii++ ;
else adNumvii=0;
set_coelady1();
document.images.elady_tprotator1.src=elady_tp[adNumvii];
play_coelady1();
theTimer=setTimeout("next_elady1()", 4000);}
function linkurl1(){ jumpUrl1=elady_tplink1[adNumvii];
jumpTarget1='_blank';
if (jumpUrl1 != ''){ if (jumpTarget1 !=
'')window.open(jumpUrl1,jumpTarget1);
else location.href=jumpUrl1;
}}
function listMsg1()
{ status=elady_tplink1[adNumvii];
document.returnValue = true;}document.write('<a onMouseOver="listMsg1();return document.returnValue" href="javascript:linkurl1()" target="_self">');
document.write('<img style="FILTER: revealTrans(duration=2,transition=20)" src="javascript:next_elady1()" border=0 name=elady_tprotator1 width=350 height=250></a>');
</SCRIPT>
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY></BODY></HTML>