| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- //动态滚页暂时隐藏
- /**
- * 页面切换
-
- window.clearInterval(int);
- var icurrent = 0; //开始翻页标志
- var max = $('.qhdiv').length; //最大翻页数目
- $('.qhdiv').eq(0).attr("style","display:''");
- function change(obj){
- $('.v_box a').removeClass('on');
- $(obj).addClass('on');
- var index = $('.v_box').find('.on').index();
- icurrent = index;
- for (var i = 0; i <= max; i++) {
- if (i == icurrent) {
- $('.qhdiv').eq(icurrent).attr("style","display:''");
- } else {
- $('.qhdiv').eq(i).attr("style","display:none");
- }
- }
- }
- //鼠标操作
- $('.v_box .v_btn').mouseover(function(){
- change(this);
- });
- //自动翻页
- var int = window.setInterval(function changeauto(){
- if(icurrent==max){
- icurrent = 0; //上限后 为0 重新翻页
- }
- for (var i = 0; i <= max; i++) {
- if (i == icurrent) {
- $('.qhdiv').eq(icurrent).attr("style","display:''");
- } else {
- $('.qhdiv').eq(i).attr("style","display:none");
- }
- }
- $('.v_box a').removeClass('on');
- $(obj).addClass('on');
- $('.v_box a').eq(icurrent).addClass('on');
- icurrent++;
- } , 8000);
- */
- /**
- * 日均增重箭头指向判断
- * @param jttzzz
- * @param zttzzz
- * @param qttzzz
- */
- function tzzz(jttzzz, zttzzz, qttzzz) {
- if (zttzzz >= qttzzz) {
- $("#ztQtTzzz").css("display", "");
- }
- if (qttzzz > zttzzz) {
- $("#qtZtTzzz").css("display", "");
- }
- if (zttzzz > jttzzz) {
- $("#ztJtTzzz").css("display", "");
- }
- if (zttzzz <= jttzzz) {
- $("#jtZtTzzz").css("display", "");
- }
- }
-
- tzzz($("#jttzzz").val(), $("#zttzzz").val(), $("#qttzzz").val());
-
-
- /**
- * 料肉比箭头指向判断
- * @param ztlrb
- * @param qtlrb
- * @param dQtLrb
- */
- function lrb(ztlrb, qtlrb, dqtlrb) {
- if (qtlrb >= dqtlrb && qtlrb > 0) {
- $("#qtDqtLrb").css("display", "");
- }
- if (dqtlrb > qtlrb && qtlrb > 0) {
- $("#dqtQtLrb").css("display", "");
- }
- if (qtlrb > ztlrb && ztlrb > 0) {
- $("#qtZtLrb").css("display", "");
- }
- if (ztlrb >= qtlrb && ztlrb > 0) {
- $("#ztQtLrb").css("display", "");
- }
- }
-
- lrb($("#ztlrb").val(), $("#qtlrb").val(), $("#dqtlrb").val());
-
-
- /**
- * 死亡数颜色显示判断
- * @param sws
- */
- function sws(sws) {
- if (sws > 0) {
- $("#swsOverZero").css("display", "");
- } else {
- $("#swsEqualZero").css("display", "");
- }
- }
-
- sws($("#sws").val());
|