Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Elio

[Resolvido] Problema com jquery - funcao fade

Recommended Posts

Olá pessoal, hoje estava usando uma função jquery que achei na internet http://forum.imasters.com.br/public/style_emoticons/default/shifty.gif , so que queria dar uma incrementada no negócio, colocar aquele efeito fade que eu acho legal, aí que foi o problema, em outras funções usando fade que encontrei, a função é aplicada com um evento onclick, onload mas nessa não consegui fazer,

aqui vai o link do exemplo que achei na net http://www.yensdesign.com/tutorials/anchornavigation/

e aqui o codigo:


//On load page, init the timer which check if the there are anchor changes each 300 ms
$().ready(function(){
	setInterval("checkAnchor()", 300);
});
var currentAnchor = null;
//Function which chek if there are anchor changes, if there are, sends the ajax petition
function checkAnchor(){
	//Check if it has changes
	if(currentAnchor != document.location.hash){
		currentAnchor = document.location.hash;
		//if there is not anchor, the loads the default section
		if(!currentAnchor)
			query = "section=home";
		else{

			var splits = currentAnchor.substring(1).split('&');
			var section = splits[0];
			delete splits[0];
			var params = splits.join('&');
			var query = "section=" + section + params;
		}
		//Send the petition
		$("#loading").show();
		$.get("callbacks.php",query, function(data){
			$("#content").html(data); // esse content é a div destino na qual queria aplicar o tal efeito
			$("#loading").hide();
		});
	}
}
só explicando, esse trecho do js que queria aplicar o tal efeito fade $("#content").html(data);

 

é isso ai pessoal, quem puder me ajudar agradeço desde já. http://forum.imasters.com.br/public/style_emoticons/default/thumbsup.gif

Compartilhar este post


Link para o post
Compartilhar em outros sites

ow pessoal, da uma força ai... não encontrei nada no google sobre como colocar o efeito fadeIn no html() method,

estou precisando muito mesmo..

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.