if you are using jquery 1.4 yo can simple do
Code:
<script type="text/javascript">
$(document).ready(function(){
$(".trigger").click(function(){
$(".panel").show("fast").delay(2000).hide("fast");
});
});
</script>
You can change the delay time "1000 = 1 sec" and effect with
Code:
//slide effect
$(".panel").slideDown("fast").delay(4000).slideUp("fast");
//fade effect
$(".panel").fadeIn("fast").delay(2000).fadeOut("fast");
or go crazy and play with the css and animation effects. but yeah, 1.4 has delay which is awesome.
here is an example with the fade
http://www.blueicestudios.com/delay/