var links = new Array(); var isIE=!!window.ActiveXObject; links[1] = "http://anjayled.com/index.php?m=poster&c=index&a=poster_click&siteid=1&id=1131"; if (isIE){ if (document.readyState=="complete"){ statAD('1', '1131', '12'); } else { document.onreadystatechange=function(){ if(document.readyState=="complete") statAD('1', '1131', '12'); } } } else { statAD('1', '1131', '12'); } var imgs = new Array(); for(var n = 1; n <= 5; n++) imgs[n] = new Image(); imgs[1].src = "/uploadfile/2019/0709/20190709112740471.gif"; var tits = new Array(); tits[1] =""; var imgwidth = 345;//ͼƬ��� var imgheight = 60;//ͼƬ��� var str = ""; str += ""; str += ""; //�޸ĵ�1��ѭ������ڲ�div���������Ӹ��� str += ""; document.write(str); var oi = document.getElementById("dimg12"); var pause = false; var curid = 1; var lastid = 1; var sw = 1; var opacity = 100; var speed = 15; var delay = (document.all)? 400:700; function SetAlpha(){ if(document.all){ if(oi.filters && oi.filters.Alpha) oi.filters.Alpha.opacity = opacity; } else { oi.style.MozOpacity = ((opacity >= 100)? 99:opacity) / 100; } } function statAD(siteid, id, pid) { var sp = document.createElement("SCRIPT"); sp.src = "http://anjayled.com/index.php?m=poster&c=index&a=show&siteid="+siteid+"&id="+id+"&spaceid="+pid; document.body.appendChild(sp); } function ImgSwitch(id, p){ if(p){ pause = true; opacity = 100; SetAlpha(); } oi.src = imgs[id].src; document.getElementById("dlink12").href = links[id]; //document.getElementById("it" + lastid).className = "off"; //document.getElementById("it" + id).className = "on"; //document.getElementById("titnv").innerHTML = "" + tits[id] + ""; curid = lastid = id; } function ScrollImg(){ if(pause && opacity >= 100) return; if(sw == 0){ opacity += 2; if(opacity > delay){ opacity = 100; sw = 1; } } if(sw == 1){ opacity -= 3; if(opacity < 10){ opacity = 10; sw = 3; } } SetAlpha(); if(sw != 3) return; sw = 0; curid++; if(curid > 1) curid = 1; ImgSwitch(curid, false); } function Pause(s){ pause = s; } function StartScroll(){ setInterval(ScrollImg, speed); } function CheckLoad12(){ if (imgs[1].complete == true && imgs[2].complete == true) { clearInterval(checkid12); setTimeout(StartScroll, 2000); } } function GetRandomNum(Min,Max){ var Range = Max - Min; var Rand = Math.random(); return(Min + Math.round(Rand * Range)); } function SetCookie(name,value)//����������һ����cookie�����ӣ�һ����ֵ { var Days = 30; //�� cookie �������� 30 �� var exp = new Date(); //new Date("December 31, 9998"); exp.setTime(exp.getTime() + Days*24*60*60*1000); document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString(); } function getCookie(name)//ȡcookies���� { var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)")); if(arr != null) return unescape(arr[2]); return null; } function getid12() { var k=getCookie('asd12'); if(1>1) { var num = GetRandomNum(1,1); if(k!=num) { ImgSwitch(num, false); SetCookie ('asd12', num) } else { getid12(); } } } var checkid12 = getid12();