最新下载
css3实现超好看的搜索框和按钮
24小时阅读排行榜
- 1 如何在Golang中实现服务注册与发现_Golang微服务注册发现技巧
- 2 ios怎样调用html5触摸事件_ios触摸事件html5绑定法【步骤】
- 3 如何使用Golang实现滚动更新_服务无感升级方法
- 4 Go模块发布流程是怎样的_Go开源模块发布指南
- 5 Go语言import语句怎么写_Golang包导入规则说明
- 6 Python中为子类方法设置默认参数值的正确方式
- 7 html个人页面怎么加验证码_html简单验证码实现法【安全】
- 8 SQL 中 CASE WHEN 的真实用途
- 9 javascript es6新特性有哪些_怎样在现代项目中应用它们【教程】
- 10 javascript怎样实现状态管理_Redux原理是什么【教程】
- 11 javascript如何编写异步代码_回调、Promise和async/await有何不同【教程】
- 12 如何使用Golang实现HTTP路由_Golang net/http ServeMux方法技巧
- 13 Golang反射可以修改变量吗_Go语言反射可修改性解析
- 14 javascript中的错误处理怎样进行【教程】
- 15 html5如何实现图片智能裁切_html5主体识别裁切法【步骤】
最新教程
-
- Node.js 教程
- 16147 2025-08-28
-
- CSS3 教程
- 1546621 2025-08-27
-
- Rust 教程
- 23279 2025-08-27
-
- Vue 教程
- 25743 2025-08-22
-
- PostgreSQL 教程
- 22231 2025-08-21
-
- Git 教程
- 9208 2025-08-21
代码片段:
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 ++;
}
