js2

来源:互联网 发布:淘宝编辑软件 编辑:程序博客网 时间:2024/05/16 07:23
//下一个div
 function nextDIV(){

if(i==3){
return;
}
if(i==1){
nowDIV.hide(200,function(){
scendDIV.fadeIn(200);
});
setTitle(name2);
nowDIV=scendDIV;
imgTOColor('#reback');
}else if(i==2){
nowDIV.hide(200,function(){
threadDIV.fadeIn(200);
});
setTitle(name3);
nowDIV=threadDIV;
imgTOColor('#reback');
imgTOGray('#go');
}
i=i+1;

}
 //上一个div
function preaDIV(){
if(i==1){
return;
}
if(i==2){
nowDIV.hide(200,function(){
firstDIV.fadeIn(200);
});
setTitle('welcome to NPB');
nowDIV=firstDIV;
imgTOGray('#reback');
imgTOColor('#go');
}else if(i==3){
nowDIV.hide(200,function(){
scendDIV.fadeIn(200);
});
setTitle(name2);
nowDIV=scendDIV;
imgTOColor('#reback');
imgTOColor('#go');
}
i=i-1;
}