Home › Forums › JavaScript › jQuery: Adding background image to div › Reply To: jQuery: Adding background image to div
From what I can gather the user will, at the end of the process, download a set of files (presumably in a folder [and sub-folders?] which will include, at the very least an HTML file, a CSS file (and perhaps a JS file).
The CSS file is to be pre-written but updated to use a user-specified image at a certain point.
That being the case, I’m not sure how you would parse the correct URL/path without knowing the user’s folder structure.
Therefore, it would, to me, make more sense to use a literal string of /img/myimage.jpg
and require the user to place the designated image in the right folder once the download has completed.
Or is that too easy?
I don’t think there is any way to do this as a “one path fits all” way otherwise.