1 Reply Latest reply on May 30, 2010 2:48 AM by David_Powers

    DW template paths



      I want to put some javascript into my dreamweaver template to preload images, using this script:


      <script type="text/javascript">
      pic1= new Image(100,25);


      With most things in templates, such as images, when the template creates a page it rewrites the path to the image so that the page created from the template points to the correct place. Ie. in the template the path will be /img/navbarh.gif instead of ..img/.


      The problem is that when I have it inside javascript with the above code it doesn't rewrite the path. Is there a way to make this happen?