MC百科版本切换系统备份 by.Ahrwing_RebirthIsHope at 2014-2-27
来源:互联网 发布:硬笔书法网络直播课 编辑:程序博客网 时间:2024/05/22 07:05
/** * MC百科版本切换系统 * @RebirthisHope * @copyright 2014 */ $(document).ready(function(){ /* var AllList = $(".main_outside"); var AnimateList= $(".Vers"); */ LRList = $(".Vers #ToLeftVers,.vers #ToRightVers"); LeftList = $(".Vers #ToLeftVers"); RightList = $(".Vers #ToRightVers"); MaxNum = $(MainStr).length - 1; VerNum = MaxNum; //自动跳转到当前所在的版本 VerJumpTo = nMoveNum * MaxNum;
VerJumpTo = '-=' + VerJumpTo + 'px'; $(MoveStr).animate({"margin-left":VerJumpTo});
VersCK(); /* //切换按钮显示 AllList.mouseenter(function(){ AnimateList.animate({opacity:1.0}); }); //切换按钮隐藏 AllList.mouseleave(function(){ AnimateList.animate({opacity:0.0}); }); */ //更新版本点击事件 for(var i = 0; i < LeftList.length; i++){ LeftList[i].i = i; LeftList[i].onclick = function(){ $(MoveStr).animate({"margin-left":"+=" + nMoveNum + "px"}); VerNum -= 1; VersCK(); //动态获取参数 var NewVal= $("#List_" + (VerNum + 1) + " #NewIdForId").val(); if(NewVal){ NewStrClean(NewVal); } }; } //更老版本点击事件 for(var i = 0; i < RightList.length; i++){ RightList[i].i = i; RightList[i].onclick = function(){ $(MoveStr).animate({"margin-left":"-=" + nMoveNum + "px"}); VerNum += 1; VersCK(); //动态获取参数 var NewVal= $("#List_" + (VerNum + 1) + " #NewIdForId").val(); if(NewVal){ NewStrClean(NewVal); }
}; } //版本按钮显示检测 function VersCK(){ $("#ToLeftVers").attr('title','查看' + strName + '以前的版本\n' + '共 ' + (MaxNum+1) + ' 个,' + '当前第 ' + (VerNum+1) + ' 个。'); $("#ToRightVers").attr('title','查看' + strName + '更新的版本\n' + '共 ' + (MaxNum+1) + ' 个,' + '当前第 ' + (VerNum+1) + ' 个。'); if(VerNum <= 0){ LeftList.css({display:"none"}); }else{ LeftList.css({display:"block"});
} if(VerNum >= MaxNum){ RightList.css({display:"none"}); }else{ RightList.css({display:"block"});
}
$(".right_outside").animate({"height": $("#List_" + (VerNum + 1)).height()},250); } });
- MC百科版本切换系统备份 by.Ahrwing_RebirthIsHope at 2014-2-27
- Linux系统切换jdk版本
- MC/SG集群系统概述
- 各版本Linux系统通用备份方法
- 系统多个版本excel的切换
- Mac 系统不同jdk版本切换方法
- Mac系统不同jdk版本切换方法
- Ubuntu系统中切换python版本
- 查看jdk系统版本和切换服务器
- ubuntu系统的gcc版本切换
- MC
- mc
- at切换命令
- db2同系统同版本简单备份和恢复
- ubuntu 系统下JDK 安装及版本切换
- Linux Unbutu系统下进行jdk版本切换
- Linux系统装有多个PHP的版本切换问题
- mac ox s系统下的jdk版本切换
- Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation
- 写一个函数,使给定的一个二维数组(3×3)转置,即行列互换
- Linux网络编程经典书籍
- 带进度条的HTML5上传文件(使用XMLHttpRequest对象
- 手动 4- linux配置varnish
- MC百科版本切换系统备份 by.Ahrwing_RebirthIsHope at 2014-2-27
- jquery源码分析
- 视图,存储过程
- iOS 通讯录访问(一)
- Ubuntu下安装最新版本的CMake
- Nyoj-181 小明的难题
- 方块填数c++代码
- 排队接水(sort)
- Android 异常:android error opening trace file