var links_21 = new Array();
var isIE_21=!!window.ActiveXObject;
links_21[1] = "https://www.ismx.cn/index.php?m=poster&c=index&a=poster_click&siteid=1&id=207";
if (isIE_21){
if (document.readyState=="complete"){
statAD_21('1', '207', '21');
} else {
document.onreadystatechange=function(){
if(document.readyState=="complete") statAD_21('1', '207', '21');
}
}
} else {
statAD_21('1', '207', '21');
}
links_21[2] = "https://www.ismx.cn/index.php?m=poster&c=index&a=poster_click&siteid=1&id=206";
if (isIE_21){
if (document.readyState=="complete"){
statAD_21('1', '206', '21');
} else {
document.onreadystatechange=function(){
if(document.readyState=="complete") statAD_21('1', '206', '21');
}
}
} else {
statAD_21('1', '206', '21');
}
var imgs_21 = new Array();
for(var n = 1; n <= 5; n++) imgs_21[n] = new Image();
imgs_21[1].src = "https://www.ismx.cn/uploadfile/2023/0206/20230206113733772.png";
imgs_21[2].src = "https://www.ismx.cn/uploadfile/2023/0206/20230206113528646.png";
var tits_21 = new Array();
tits_21[1] ="";
tits_21[2] ="";
var imgwidth_21 = 1200;//图片宽度
var imgheight_21 = 190;//图片宽度
var str_21 = "";
str_21 += "";
str_21 += "";
//修改点1:循环添加内层div内容以增加个数
str_21 += "";
document.write(str_21);
var oi_21 = document.getElementById("dimg_21");
var pause_21 = false;
var curid_21 = 1;
var lastid_21 = 1;
var sw_21 = 1;
var opacity_21 = 100;
var speed_21 = 15;
var delay_21 = (document.all)? 400:700;
function SetAlpha_21(){
if(document.all){
if(oi_21.filters && oi_21.filters.Alpha) oi_21.filters.Alpha.opacity = opacity_21;
} else {
oi_21.style.MozOpacity = ((opacity_21 >= 100)? 99:opacity_21) / 100;
}
}
function statAD_21(siteid, id, pid) {
var sp = document.createElement("SCRIPT");
sp.src = "https://www.ismx.cn/index.php?m=poster&c=index&a=show&siteid="+siteid+"&id="+id+"&spaceid="+pid;
document.body.appendChild(sp);
}
function ImgSwitch_21(id, p){
if(p){
pause_21 = true;
opacity_21 = 100;
SetAlpha_21();
}
oi_21.src = imgs_21[id].src;
document.getElementById("dlink_21").href = links_21[id];
//document.getElementById("it" + lastid).className = "off";
//document.getElementById("it" + id).className = "on";
//document.getElementById("titnv").innerHTML = "" + tits[id] + "";
curid_21 = lastid_21 = id;
}
function ScrollImg_21(){
if(pause_21 && opacity_21 >= 100) return;
if(sw_21 == 0){
opacity_21 += 2;
if(opacity_21 > delay_21){ opacity_21 = 100; sw_21 = 1; }
}
if(sw_21 == 1){
opacity_21 -= 3;
if(opacity_21 < 10){ opacity_21 = 10; sw_21 = 3; }
}
SetAlpha_21();
if(sw_21 != 3) return;
sw_21 = 0;
curid_21++;
if(curid_21 > 2) curid_21 = 1;
ImgSwitch_21(curid_21, false);
}
function Pause_21(s){
pause_21 = s;
}
function StartScroll_21(){
setInterval(ScrollImg_21, speed_21);
}
function CheckLoad_21(){
if (imgs_21[1].complete == true && imgs_21[2].complete == true) {
clearInterval(checkid_21);
setTimeout(StartScroll_21, 2000);
}
}
var checkid_21 = setInterval(CheckLoad_21, 10);