永发信息网

ASP网页,图片轮换

答案:2  悬赏:70  手机版
解决时间 2021-08-15 07:59
  • 提问者网友:却不属于对方
  • 2021-08-14 15:17

ASP网页,图片轮换,数据库中读取图片和链接地址,但是超链接地址打不开,帮我看下,代码那出错了!

代码如下:

<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]="";
e_tp[0]="<%=bigpic%>";

e_tplink[1]="";
e_tp[1]="<%=bigpic2%>";

e_tplink[2]="";
e_tp[2]="<%=bigpic3%>";

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=247 src="javascript:elady1_nextAd()" width=467 border=0 name=e_tprotator ></a>');
document.write("</div>");
        </script>

最佳答案
  • 五星知识达人网友:神也偏爱
  • 2021-08-14 15:35
用个flash+xml的就可以的
全部回答
  • 1楼网友:酒者煙囻
  • 2021-08-14 16:22

http://www.sincol.net/code/html/show/0802/sincol_show_002/index.html 迅雷下载地址  thunder://QUFodHRwOi8vZG93bjIuc2luY29sLm5ldC91cGxvYWRzL3NvZnQvY29kZS9zaG93LzA4MDIvc2luY29sX2pzXzAwMi56aXBaWg==

希望对你有帮助,免费空间,免费域名请联系我。 

我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯