Ver Mensaje Individual
  #7 (permalink)  
Antiguo 23/03/2009, 06:44
usuaria
 
Fecha de Ingreso: marzo-2007
Mensajes: 302
Antigüedad: 17 años, 2 meses
Puntos: 2
Pregunta Respuesta: Problema Jquery no me toma un valor string

Aca está el cogido completo que no anda. :(

Código:
$(".siguiente").click(function() { /*Control del boton Siguiente*/

	if( ($(".visible").attr("name") ) == "esFoto") {
	var actual= $(".widget img").attr("src");
	var vector=["1.jpg","2.jpg","3.jpg","4.jpg"]; 
	
		i=0;
		encontro=false;
		while( (encontro==false) &&  (i<=vector.length) ){
				i++;
				if(vector[i]==actual) encontro=true;
		}
	}
	else i=0 ;

	foto=actual;
	$(".widget .mid img").attr("src",foto);
	alert($(".widget .mid img").attr("src")); //me imprime el nombre correcto,pero sin embargo la foto nose muestra
	
    });