I have this script that changes images fine, but not smoothly. How can I change this so they change smoothly?
//--------AutoPlay select--------------------------
function autoPlaySlider(id){
var recNumber = parseInt(id)+1;
if(jQuery("#simg_"+recNumber).length){
jQuery("#rt-header-surround")
.attr("style",'background-image:url('+jQuery("#simg_"+recNumber).attr("imgpath")+')');
}else{
jQuery("#rt-header-surround")
.fadeOut()
.attr("style",'background-image:url('+jQuery("#simg_"+lastone).attr("imgpath")+')');
}
}