The title explains it really. How to do this? Both divs are of differing size. Both divs are moving (I\'m making a little Jq开发者_StackOverflow中文版uery game). If one hits the other, I want stuff to
Edit: Simple code I used to solve the problem in case anyone is interested (thanks to Fredrik): int windowOverlap(Rectangle rect1, Rectangle rect2)
` ```I try to do this way but it does not work. How can I overlay on an image. &l开发者_Go百科t;div class="banner_img">