close

var classBody = "pattern.png"; $("body").addClass( classBody.replace(/\.\w+$/,"") );