setTimeout(function(){

KODLAR;

}, 5000);
Bu JS kodu ready içine veya window onload içine koyulduğu zaman 5 saniye sonra çalışır