Im looking for help on how to write a function.  In standard javascript i
have 2 elements: oldData, and newData.  Currently i just am swapping the two
with replaceChild.  However i want to add a [fade-out, replace, fade-in]
sequence to it with JQuery.

I am wondering is it possible to create a function like this in JQuery and
simply call it from a standard javascript function:

JQueryFadeSwap(oldStuff, newStuff){
 
      newStuff.opacity = 0;
      oldStuff.fadeOut();
      swap(oldStuff, newStuff);
      newStuff.fadeIn();
}

Can someone give me some input on how to accomplish this?  Thanks!

-- 
View this message in context: 
http://www.nabble.com/newb-question---JQuery-fade-and-replace-tf3030628.html#a8420399
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to