最新下载
24小时阅读排行榜
- 1 WPS为什么无法编辑PDF内容_WPS PDF编辑功能限制与解决
- 2 在Java中如何实现简单的聊天室功能
- 3 Golang sync包常用并发工具实践
- 4 在Java中如何实现在线留言功能
- 5 HTML数据如何转换Excel格式 HTML数据导出为表格的方法
- 6 如何在Golang中处理RPC调用错误
- 7 html函数如何高亮显示代码段 html函数代码预格式化的处理
- 8 composer怎么处理“The checksum verification failed”错误_说明解决校验和验证失败的方法
- 9 VSCode调试性能:优化大型项目调试启动时间的配置方案
- 10 win11无法访问网络共享文件夹怎么办 win11网络共享访问故障解决方案
- 11 如何用css实现图片悬停缩放过渡
- 12 html5制作网页怎么发布_HTML5网站部署与上线流程
- 13 Potplayer如何修复卡顿问题_Potplayer解决播放卡顿的实用方案
- 14 如何在Golang中实现微服务健康检查
- 15 c++中的std::get怎么用于tuple和variant_c++ get获取tuple与variant成员方法
最新教程
-
- Node.js 教程
- 6166 2025-08-28
-
- CSS3 教程
- 907264 2025-08-27
-
- Rust 教程
- 9980 2025-08-27
-
- Vue 教程
- 12168 2025-08-22
-
- PostgreSQL 教程
- 9317 2025-08-21
-
- Git 教程
- 4807 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 ++;
}


