In my Wordpress site I am using some JavaScript code for an interactive part.
When the file is local I just call anyPlus.src = "solarZoom.png";.
I have tried many ways and can't figure out how to get the image from the file path once it's on my server. I tried /powerbox/Tour/solarZoom.png, ../Tour/solarZoom.png, Tour/solarZoom.png, /Tour/solarZoom.png, /solarZoom.png.
In my style I would call it as "../Tour/solarZoom.png" but it is not working in the javascript.
I have attached an image of my hierarchy. My root is /powerbox/index.php.

$_SERVER['DOCUMENT_ROOT']."/path";and other parameters and see what that yields/wp-content/themes/powerbox?