[Solved] Why is my javascript not working


The problem resides in the fact that you used the same path to image folder in both sites.

In the first site your path to image folder is valid, in fact

website_url/images/bg/bg1.jpg

is a valid path to the image called “bg1.jpg”.
But in the other site, the images array contains invalid paths. I.e. the first element of the array has url

/images/bg/bg1

, and the corresponding global url is http://www.cristofoli-design.com/images/bg/bg1.jpg, and as you can see it’a 404 page.

My guess is that in the second site files are in different positions.
Keeping guessing, I think you placed the “images” folder inside the “HOBO3” folder, which is not what you are accessing right now.

solved Why is my javascript not working