I'm trying to reference a image that is in the same folder has the .js but call it on any page of my php/wordpress page.
So the .js is in http://www.example.com/wp-content/themes/includes/demo/facebox.js and the image is on http://www.example.com/wp-content/themes/includes/demo/closinglabel.png
but I'm referencing the js in the front page and on other pages basically www.example.com. This is basically a fix for facebox because it won't let me autoload while picking my hrefs. Can in .js find the path to the current .js location?