Hello on my project I have a background image
background: url('img/1.JPG') fixed;
I am trying to change this background image using jQuery when a div (".boxy") will be hoverd.
Here is what i managed to do in jQuery
$(document).ready(function() {
$(".boxy").hover(
function()
{
$("body").css(??????); //what should i write here in order to change background image in img/2.JPG
},
function()
{
$("body").css(??????); // what should i write here in order to chage background image in img/1.JPG
}
);
});
$("body").addClass("hoverd")and same-wise removeClass("hobved")