<script type="text/javascript">
function getObj(name){
return document.getElementById(name);
}
function chclickimg(obj,k){ // 对象obj,对象序号k
obj.onmouseover=function(){
var tmp;
for (c=0;c<lis.length;c++){
if (c==k){
str = topTabArray[c].split('||');
getObj('top_trun_image_src').src = str[0];
lis[c].className="new_show_on"
key=c;
}
else {
lis[c].className="new_show_off"
}
}
var obj=document.getElementById("img_area");
obj.filters.alpha.opacity = tou_ming_chu_zhi;
var interObj = setInterval(function(){
obj.filters.alpha.opacity+=5;
if(obj.filters.alpha.opacity=100){clearInterval(interObj);}
},100);
}
}
var tou_ming_chu_zhi=0;//设置透明初值
var bian_hua_su_du=8;
var topTabArray = new Array();//组织数据------- topTabArray[0] = "图片地址||连接";
topTabArray[0] = " images/1.jpg||#";
topTabArray[1] = " images/2.jpg||#";
topTabArray[2] = " images/3.jpg||#";
var key = 1;//记录当前的位置
var selects = getObj('select_num');
var lis = selects.getElementsByTagName('li');
for (var i=0;i<lis.length;i++){//绑定事件处理函数
chclickimg(lis[i],i);
}
lis[0].onmouseover();
</script>
中国足彩网信息请查看IT技术专栏