title: phonegap set the root directory for asset files
body: <p>I have seen few questions but I can't find they were old and without any solutions.</p>
  
  <p>So I'n my asset folder I have the following tree:</p>
  
  <pre><code> - ressources
    - img
       - logo.png
    - css
       - style.css
   - process1
    - page1.html
   - index.html
  </code></pre>
  
  <p>My "index.html" when I include img/logo.png or css/style.css everything works fine.</p>
  
  <p>But to have the same result in "page1.html" I must use ../img/logo.png and it's quite annoying since I have a lot of pages.</p>
  
  <p>I have found two ugly solutions:</p>
  
  <ul>
  <li>Copy the "ressources" folder in each subfolder</li>
  <li>Create a script that will change all the url to the root directory for each os (file:///android_asset/www/ for android)</li>
  </ul>