Hi,
I have created a script which is surprisingly working. (I do not do much JavaScript)
What I have is a load of images listed within a div. These images are hidden. JQuery gets the properties of the images and puts them into an array. When the body is clicked, the background image of the page changes. This works nicely.
However, I now have a problem. There are several elements which I shouldn't change the background when they are clicked.
Namely, navigation, footer and caption. How do I create a selector which makes the body clickable, yet ignores clicks on the above 3 div's?
My current selector, which is wrong. Looks like this.
$("body").click (function() {