I've set the .content div to height and width:auto, i want to force the image to fit inside the div without changing aspect ratio.
Here is the jquery:
var images = ['pic1.jpg', 'pic2.jpg', 'pic3.jpg', 'pic4.jpg','pic5.jpg', 'pic6.jpg'];
$(function () {
var i = 0;
$(".content").css("background-image", "url(pics/bg/" + images[i] + ")");
setInterval(function () {
i++;
if (i == images.length) {
i = 0;
}
$(".content").fadeOut("slow", function () {
$(this).css("background-image", "url(pics/bg/" + images[i] + ")");
$(this).fadeIn("slow");
});
}, 6000);
});