I wanna know how I can change images on hovering over them. I got this code from the web but it does not work properly, and I wanna add a fade effect too in the transition. Would appreciate if anyone can help with this. Thanks 
Code:
div {
background: url('http://dummyimage.com/100x100/000/fff');
}
div:hover {
background: url('http://dummyimage.com/100x100/eb00eb/fff');
}