I have a section on my website that has several aim targets for visitors click to shoot at. I am using cursor: crosshair
for the section. I want to make it so that When my visitor clicks anywhere in the targets section I want to leave an animated bullet_hole.gif
I guess the command for the code would be within div
container onmouse click create a div
at the click Location and then delete the div
after 5 seconds.
How do I write the javascript/jQuery code to do this?