js show span for 5 seconds

JavaScript
$("#myElem").show().delay(5000).fadeOut();

Source

Also in JavaScript: