Ver Mensaje Individual
  #8 (permalink)  
Antiguo 08/03/2010, 10:18
Avatar de mayid
mayid
Colaborador
 
Fecha de Ingreso: marzo-2009
Ubicación: BsAs
Mensajes: 4.014
Antigüedad: 15 años, 1 mes
Puntos: 101
Respuesta: Como unir 2 javascript

Volviendo al primer ejemplo, que funcionaba al revés, yo agregaría hide()

Queda así:
Cita:
jQuery.fn.slideFadeToggle = function(speed, easing,callback) {
return this.animate({opacity: 'toggle', height: 'toggle'}, speed, easing, callback);
};


$(document).ready(function(){
$("#carga-loc-principal").click(function() {
$("div#texto").load("paginaweb.html", function() {
$(this).hide().slideFadeToggle('slow')
});
});});
Peero, sería mucho mejor tener un opacity : 1. Que raro no haya funcionado eso.

Probate esto también:
Cita:
$(document).ready(function(){
$("#carga-loc-principal").click(function() {
$("div#texto").load("paginaweb.html").animate({opa city: 1, height: 400px}, "slow");

});
En height deberías poner el verdadero largo del div texto, que desconozco.