var widths=980;
var heights=200;
var counts_soft=3;
img1_soft=new Image ();img1_soft.src='/Images/zhizhichuangdaolantian.gif';
img2_soft=new Image ();img2_soft.src='/Images/gangchangyouhui.gif';
img3_soft=new Image ();img3_soft.src='/Images/xinheyiliaobaoxiao.gif';
url1_soft=new Image ();url1_soft.src='/ltgc/zt/zt/zlzczcssxzltzyy/';
url2_soft=new Image ();url2_soft.src='/ltgc/zt/zt/zcgzxjyh/';
url3_soft=new Image ();url3_soft.src='/ltgc/zt/zt/xhylbx/';
var nn_soft=1;
var key_soft=0;
function change_img_soft()
{if(key_soft==0){key_soft=1;}
else if(document.all)
{document.getElementById("pic_soft").filters[0].Apply();document.getElementById("pic_soft").filters[0].Play(duration=2);}
eval('document.getElementById("pic_soft").src=img'+nn_soft+'_soft.src');
eval('document.getElementById("url_soft").href=url'+nn_soft+'_soft.src');
for (var i=1;i<=counts_soft;i++){document.getElementById("xxjdjj_soft"+i).className='axx';}
document.getElementById("xxjdjj_soft"+nn_soft).className='bxx';
nn_soft++;if(nn_soft>counts_soft){nn_soft=1;}
tt=setTimeout('change_img_soft()',8000);}
function changeimg_soft(n){nn_soft=n;window.clearInterval(tt);change_img_soft();}
document.write('<style>');
document.write('.axx{padding:1px 7px;border-left:#cccccc 1px solid;}');
document.write('a.axx:link,a.axx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#666;}');
document.write('a.axx:active,a.axx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#999;}');
document.write('.bxx{padding:1px 7px;border-left:#cccccc 1px solid;}');
document.write('a.bxx:link,a.bxx:visited{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#D34600;}');
document.write('a.bxx:active,a.bxx:hover{text-decoration:none;color:#fff;line-height:12px;font:9px sans-serif;background-color:#D34600;}');
document.write('</style>');
document.write('<div style="width:'+widths+'px;height:'+heights+'px;overflow:hidden;text-overflow:clip;">');
document.write('<div><a id="url_soft" target="_blank"><img id="pic_soft" style="border:0px;filter:progid:dximagetransform.microsoft.wipe(gradientsize=1.0,wipestyle=4, motion=forward)" width='+widths+' height='+heights+' /></a></div>');
document.write('<div style="filter:alpha(style=1,opacity=10,finishOpacity=80);background: #888888;width:100%-2px;text-align:right;top:-12px;position:relative;margin:1px;height:12px;padding:0px;margin:0px;border:0px;">');
for(var i=1;i<counts_soft+1;i++){document.write('<a href="javascript:changeimg_soft('+i+');"id="xxjdjj_soft'+i+'" class="axx">'+i+'</a>');}
document.write('</div></div>');
change_img_soft();
这是一个图片轮显的代码 这个地方{document.write('<a href="javascript:changeimg_soft('+i+');"id="xxjdjj_soft'+i+'" class="axx">'+i+'</a>');} 数字的链接不对哪位高手帮忙指导一下
小弟先谢了
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货