代码片段:
function showDh(){
if(stepNum > step){
if(start >= end){
return;
}else{
start++;
stepNum = 1;
pointMsg = setImgMsg(start);
}
return;
}else if(stepNum == step){
setTimeout(function(){
console.log(step);
$('#showImg2 , #showImg1').removeClass('showDh');
},100);
}else if(stepNum == 1){
$('#showImg2 , #showImg1').addClass('showDh')
}
console.log(stepNum , start , end);
$('#showImg2').css({'width':pointMsg.maxStartW - stepNum * pointMsg.maxStepW,'left':pointMsg.maxStartX - stepNum * pointMsg.maxStepX,'top':pointMsg.maxStartY - stepNum * pointMsg.maxStepY});
$('#showImg1').css({'width':pointMsg.minStartW - stepNum * pointMsg.minStepW,'left':pointMsg.minStartX + stepNum * pointMsg.minStepX,'top':pointMsg.minStartY + stepNum * pointMsg.minStepY});
stepNum ++;
}
申明:本站所有资源都是转载各大下载站,或由网友投稿发布,请自行检测软件的完整性,如有侵权请联系我们删除下架,联系方式:admin@php.cn