javascript - My div content went right after updating html -


i'm in big problem, have updated galleries on website, , after extending gallery pictures, info section , tv&press section went right, , don't know how fix it:

here link: website

i want when click on "info" or "tv & press" content back

thanks in advice

$(document).ready(function(){ var window_w=$(window).width(); var window_h=$(window).height(); var pos=0; var offset_top=(window_h-1000)/2; if(offset_top<-160) offset_top=-160; var offset_izq=(window_w-2000)/2;    if(window_h<640){     $('body').css({'overflow':'scroll','height':'640px'}); }  if(window_w<1000){     $('#anterior').remove();     $('#siguiente').remove(); } $('#frame_principal').animate({scrollleft:-offset_izq});                         function iraseccion(p){     $('#main_nav li').removeclass('selected');     $('#main_nav li:eq('+(p-0)+')').addclass('selected');         if(p==0){             $('#anterior').fadeout(1000);          }         if(pos>1){             $('#siguiente').fadein(1000);         }                if(p==2){             $('#siguiente').fadeout(1000);         }         if(p>0){             $('#anterior').fadein(1000);         }         if(pos<3){              $('#frame_principal').animate({scrollleft: (p*2000)-offset_izq},2000,'easeoutcubic');          }         if(p==1){             $('#fx_logo').animate({scrollleft: (p*400)-200},2000,'easeoutcubic');          }         else {$('#fx_logo').animate({scrollleft: (p*300)-200},2000,'easeoutcubic');}         pos=p; };  $('#main_nav a,#logo,').click(function(event){     event.preventdefault();     var l=$(this).attr('href');     p=parseint(l.replace("#", ""));     iraseccion(p);  });  

/tv/

my opinion that, problem in html div's, not javascript.

sorry uncompleted question

if want, take crack @ fixing code. @ glance, looks "gallery" , "interview" don't move when should. stay @ "left: 2000" , "left: 4000", instead of sliding in. lemme know if need code. luck!


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -