Hi!
I have a big problem here.
Please, see the simple example:
[url]http://livescore-bg.net/srpski.html
I want when I change some of the menus 3 thing to happen in the folowing order:
1) Old flag to hide()
2) New flag to be on its place, IN THE MOMENT THAT this is not visible, I mean, in the moment in which the hide() action will already be performed.
3) New flag to fadeIn()
As you can see after some tests on the url shown, FIRST it replaces the flag, and after that it hides the old and shows the new one.
Here is my first version of the code:
[CODE]
$(“.zastavaholder”).each(function(){
$(this).hide(1000);
});
$(“#zastava1”).html(newflag1);
$(“#zastava2”).html(newflag2);
$(“.zastavaholder”).each(function(){
$(this).fadeIn(1800);
});
and here is my even stranger current version:
[CODE]
$(“.zastavaholder”).each(function(){
$(this).hide(1000);
});
$(“.zastavaholder”).each(function(){
$(this).fadeIn(1800);
});
$(“#zastava1”).html(newflag1);
$(“#zastava2”).html(newflag2);
Ok. Thats my question. Why it first does the html(), even if I put it in the end of the function? And how to get what I want in the desired order of events. PLease, help!!