您好,欢迎访问一九零五行业门户网

一端时间轮换的广告_JavaScript

//滚动页面的宽
var scrollwidth = 705;
//滚动页面的高
var scrollheight = 120;
if(dde_pp!=null && dde_pp.length>0){
  dde_para = dde_pp.split(&);}
  for(i=0; dde_para!=null && i  dde_aa = dde_para[i].split(=);
  eval(var +dde_aa[0] +='+dde_aa[1]+');}
var car_num = 5;
var i=1;
//默认滚动时间10秒
var pausebetweenimages=800 * 8;
var slideimages=new array();
//滚动页面1的url
slideimages[0]=;
//滚动页面2的url
slideimages[1]=;
function move1(whichdiv){
tdiv=eval(whichdiv)
if (tdiv.style.pixeltop>0&&tdiv.style.pixeltoptdiv.style.pixeltop=0
settimeout(move1(tdiv),pausebetweenimages)
settimeout(move2(second2),pausebetweenimages)
return}
if (tdiv.style.pixeltop>=tdiv.offsetheight*-1){
tdiv.style.pixeltop-=car_num
settimeout(move1(tdiv),50)}
else{
tdiv.style.pixeltop=scrollheight
tdiv.innerhtml=slideimages[0]
if (i==slideimages.length-1)
i=0
else i++}}
function move2(whichdiv){
tdiv2=eval(whichdiv)
if (tdiv2.style.pixeltop>0&&tdiv2.style.pixeltoptdiv2.style.pixeltop=0
settimeout(move2(tdiv2),pausebetweenimages)
settimeout(move1(first2),pausebetweenimages)
return}
if (tdiv2.style.pixeltop>=tdiv2.offsetheight*-1){
tdiv2.style.pixeltop-=car_num
settimeout(move2(second2),50)}
else{
tdiv2.style.pixeltop=scrollheight
tdiv2.innerhtml=slideimages[1]
if (i==slideimages.length-1)
i=0
else i++}}
function conmouse(){car_num=0;}
function cmouseout(){car_num=5;}
function startscroll(){
if (document.all){
move1(first2)
second2.style.top=scrollheight
}
else if (document.layers){
move1(document.main.document.first)
document.main.document.second.top=scrollheight+5
document.main.document.second.visibility='show'}}
//-->
width=&{scrollwidth};>
        top=1 width=&{scrollwidth}; id=first>
visibility=hide>
其它类似信息

推荐信息