Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/86.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 图像传送带不是移动图像,而是替换它们_Jquery - Fatal编程技术网

Jquery 图像传送带不是移动图像,而是替换它们

Jquery 图像传送带不是移动图像,而是替换它们,jquery,Jquery,很抱歉,我不能集中精力,因为这个项目有点大 我无法移动图像,只能用下一个替换上一个 我认为这与李宇春全像和img全像有关 var handler_big = function () { $('#full_image img').css({width: width_big,height: height_big}); btn.unbind('click'); console.log(width_big); currentPage_big = pages_big.eq(current_big);

很抱歉,我不能集中精力,因为这个项目有点大

我无法移动图像,只能用下一个替换上一个

我认为这与李宇春全像和img全像有关

var handler_big = function () {

$('#full_image img').css({width: width_big,height: height_big});

btn.unbind('click');
console.log(width_big);
currentPage_big = pages_big.eq(current_big); 

if ($(this).hasClass('prevButton_big')) {
    if (current_big <= 0) current_big = pages_big.length - 1;
    else current_big = current_big - 1;
    nextPage_big = pages_big.eq(current_big);

    btn.click(nextPage_big); 
    $(".box_counter")
            .css("background-color" , "white")
            .eq(current_big).css("background-color" , "red");

    nextPage_big.css("marginLeft", -1418);
    nextPage_big.show();
    nextPage_big.animate({
        marginLeft: marg_left
    }, 0,'easeInCubic',  function () {
        currentPage_big.hide();
    });
    currentPage_big.animate({
        marginLeft: car_size
    }, 0,'easeInCubic', function () {
     //   btn.bind('click', handler);
    });
} else {

    if (current_big >= pages_big.length - 1) current_big = 0;
    else current_big = current_big + 1;
    nextPage_big = pages_big.eq(current_big); 
    nextPage_big.css("left",1418);
    nextPage_big.show();      
    console.log(nextPage_big);         
    nextPage_big.animate({
        left: -1418
    }, 1000,'easeInCubic', function () {});
    currentPage_big.animate({
        left: -1418
    }, 1000,'easeInCubic', function () {
        currentPage_big.hide();
      //  btn.bind('click', handler_big);
    });
  }
 }

   $.each(get_org_images, function (i, img) {
     if (i > 0){
       $('#full_image ul').append('<li><img src="' + img + '"/></li>');} });
       pages_big = $('#full_image li'), btn_big = $('#full_image .button');
       btn_big.click(handler_big);
var handler\u big=函数(){
$('full#u image img').css({width:width_big,height:height_big});
取消绑定(“单击”);
控制台。原木(宽度_大);
currentPage_big=pages_big.eq(当前_big);
if($(this).hasClass('prevButton\u big')){
如果(当前_big=pages_big.length-1)当前_big=0;
else current_big=current_big+1;
nextPage_big=页面_big.eq(当前_big);
下一页_big.css(“左”,1418);
下一页大秀();
控制台日志(下一页大);
下一页大动画({
左:-1418
},1000,'easeInCubic',函数(){});
当前页面_big.animate({
左:-1418
},1000,'easeInCubic',函数(){
currentPage_big.hide();
//btn.bind('click',handler\u big);
});
}
}
$.each(获取组织图像、函数(i、img){
如果(i>0){
$('full#u image ul')。追加('li>';});
页面大小=$('full#u image li'),btn_big=$('full#u image.button');
btn_big.单击(处理程序_big);

你的借口很糟糕,你应该觉得自己很糟糕,伙计,我已经为此挣扎了好几天了。我会尽量避开它;这要花我几个小时这就是你学习东西的方式!:)我怀疑有人会替你干这件肮脏的工作