<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content="text/html; charset=us-ascii" http-equiv=Content-Type> <META name=GENERATOR content="MSHTML 8.00.6001.18813"></HEAD> <BODY> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=049515922-06082009>I was wondering how do you make text fade in for a specific amount of time then fade out.</SPAN></FONT></DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=049515922-06082009></SPAN></FONT> </DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=049515922-06082009>I have the fade in / out part..i just cant figure out the duration so it stays there after fading in for 5 seconds then fades out.</SPAN></FONT></DIV> <DIV><FONT size=2 face="Trebuchet MS"><SPAN class=049515922-06082009></SPAN></FONT> </DIV> <DIV> </DIV> <DIV align=left><FONT size=2 face=Arial>Dave </FONT></DIV></BODY></HTML>
You might be able to do something similar to the following: function fadeIn() { $(".myText").fadeIn("slow", function () { window.setTimeout("fadeOut();",5000); } } function fadeOut() { $(".myText").fadeOut("slow"); }