#footer {
height: 70px;
background:url('../image/footerImg.gif');
}
My jQuery code:
$(document).ready(function(){
var h=$(window).height();
var w=$(window).width();
});
Now I want to assign the width of background:url('../image/footerImg.gif'); as 'w'(var w=$(window).width();). How can do this?