Jan 21, 2015 03:56 AM
(This post was last modified: Jan 21, 2015 04:19 AM by Avocado.)
I have a directory
html >
...... index.html
......Folder#inc >
...... Folder#Images
......Folder#Js >
......myfile.js
Inside this myfile.js I need to make a reference to images inside the Images folder, but I don't know how to do this. When I link it to /inc/Images/..etc.. It doesn't add the root directories.
So basically, I eventually want to run this on an android device. I don't know how to get file path for the images within the Javascript. At the moment my images are just linking towards /inc/images/.. instead of C://....../inc/images.
Kinda lost, thanks for any help.
html >
...... index.html
......Folder#inc >
...... Folder#Images
......Folder#Js >
......myfile.js
Inside this myfile.js I need to make a reference to images inside the Images folder, but I don't know how to do this. When I link it to /inc/Images/..etc.. It doesn't add the root directories.
So basically, I eventually want to run this on an android device. I don't know how to get file path for the images within the Javascript. At the moment my images are just linking towards /inc/images/.. instead of C://....../inc/images.
Kinda lost, thanks for any help.


