Foros del Web » Programando para Internet » Jquery »

Problemas jQuery y Chrome (15)

Estas en el tema de Problemas jQuery y Chrome (15) en el foro de Jquery en Foros del Web. Hola señores, tengo un problema con Chrome, lo que pasa es que no detecta el evento click en el boton menu de mi web: http://amdsoluciones.com/estudio1 ...
  #1 (permalink)  
Antiguo 02/12/2011, 20:14
 
Fecha de Ingreso: diciembre-2009
Mensajes: 16
Antigüedad: 14 años, 4 meses
Puntos: 0
Exclamación Problemas jQuery y Chrome (15)

Hola señores, tengo un problema con Chrome, lo que pasa es que no detecta el evento click en el boton menu de mi web:
http://amdsoluciones.com/estudio1
Ya me tiene harto ya busque de todo y no encuentro el problema, probablemente será un problema de wordpress..

Ya probé con las versiones 1.7.1 y 1.6.4!

Miren mi código, y si tienen alguna idea me dicen por favor!
Código Javascript:
Ver original
  1. jQuery.noConflict();
  2. jQuery(function ($) {
  3.  
  4. $().load("ajax-loading.gif");
  5.  
  6. var esvisible=false;
  7. var bpage=$("#page");
  8. var btnms=$("#mostrar span");
  9. console.log("#mostrar.click()");
  10.     $("a#mostrar, #mostrar span, #mostrar b").click(function(evento){
  11.     evento.preventDefault();
  12.     if(esvisible==false){
  13.         $(this).html("<b>-</b>");
  14.  
  15.         $("#page").animate({"left": "-980px"}, 200);
  16.         $(this).animate({width:"5px"}, 500, function(){
  17.         $("#page").animate({"left": "0px"}, 400);
  18.         $(this).animate({marginLeft: "0px"}, 400);
  19.         $("body").css({"height":"auto", "overflow":"auto"});
  20.         });
  21.         esvisible=true;
  22.  
  23.     }else{ 
  24.         $(this).html("<b>+</b>");
  25.         $("#page").animate({"left": "-1064px"}, 400);
  26.         $("#page").animate({"left": "-980px"}, 350, function(){
  27.         $("#mostrar").animate({width:"65px"}, 400, function(){
  28.         esvisible=false;
  29.         $("body").css({"height":"100%", "overflow":"hidden"});
  30.         $("#mostrar").append(" menu");
  31.         $("#menues").fadeIn();
  32.         });
  33.         });
  34.         $(this).animate({marginLeft: "45px"}, 600);
  35.     }
  36.  
  37.     });
  38.     var lnks=$("#bac-access a");
  39.     lnks.click(function(evento){
  40.         var este=this;
  41.         var contenido=$("#primary");
  42.         evento.preventDefault();
  43.         $(this).css({"background": "url(ajax-loader.gif) no-repeat right center  #f5f5f5", "color":"#999"});
  44.         var hfre=$(this).attr("href")+ " #content";
  45.         contenido.load(hfre, function(resultado){
  46.             $(este).css({"background": "#f9f9f9", "color":"#666"});
  47.             window.location.hash="#"+hfre.substring(33, 150);
  48.             contenido.append(resutado);
  49.         });
  50.     });
  51. var actual=1;var actualstr;
  52.  
  53. function derecha(){
  54.  
  55.         if(actual<=0){
  56.             actual=3;
  57.         }
  58.             mostrar(actual);
  59.             actualstr="#img"+actual;
  60.             $(actualstr).stop().animate({"left": "-100%"}, 500, function(){
  61.             $(actualstr).css("left", "0%");
  62.             $(".myslider2").prepend($(this));
  63.             ocultar(actual);
  64.             actual--;
  65.         });
  66. }
  67. function izquierda(){
  68.         if(actual>=4){
  69.             actual=1;
  70.         }
  71.        
  72.             actualstr="#img"+actual;
  73.             $(actualstr).stop().animate({"left": "100%"}, 500, function(){
  74.             $(actualstr).css("left", "0%");
  75.             $(".myslider2").prepend($(this));
  76.             actual++;
  77.         });
  78.  
  79. }
  80.     setInterval(function(){
  81.      derecha();
  82.      }, 5000);
  83.      
  84.     $("#left").click(function(){
  85.     ocultar2(actual);
  86.     izquierda();
  87.     mostrar(actual);
  88.     });
  89.     $("#right").click(function(){
  90.     if(actual<=0){
  91.     actual=3;
  92.     }
  93.     ocultar2(actual);
  94.     derecha();
  95.     mostrar(actual);
  96.     });
  97.    
  98.     function mostrar(numero)
  99.     {
  100.         var sel="#txt"+numero;
  101.         $(sel + " h1").stop().animate({opacity:"1.0", marginLeft: "0%"});
  102.         $(sel + " h2").stop().animate({opacity:"1.0",  marginLeft: "0%"});
  103.         $(sel).show();
  104.     }
  105.     function ocultar(numero)
  106.     {  
  107.         var sel="#txt"+numero;
  108.         setTimeout(function(){
  109.         $(sel + " h1").stop().animate({opacity:"0.0",  marginLeft: "-25%"});
  110.         $(sel + " h2").stop().animate({opacity:"0.0",  marginLeft: "25%"}, 500, function(){
  111.         $(sel).hide()});
  112.         }, 4000);
  113.     }
  114.     function ocultar2(numero)
  115.     {
  116.  
  117.         var sel="#txt"+numero;
  118.         $(sel + " h1").stop().animate({opacity:"0.0",  marginLeft: "-25%"});
  119.         $(sel + " h2").stop().animate({opacity:"0.0",  marginLeft: "25%"}, 500, function(){
  120.         $(sel).hide();
  121.         });
  122.     }
  123. });

Etiquetas: chrome, google
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 07:10.