PDA

View Full Version : All levels graphics path



cardioid
07-29-2013, 08:56 PM
1) Script Title: ddlevelsmenu.js

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/ddlevelsmenu/generator.htm

3) Describe problem: When you have the menu on another folder level, it breaks the path to the graphics with the disclosure triangles. It seems silly to duplicate the entire script for each folder level just to fix the path - what would you suggest? An absolute path (http://www....) perhaps, or is there a better way to let me work on the pages locally?

Thanks,
cardioid

Beverleyh
07-29-2013, 09:18 PM
Its probably not worth worrying about the triangles while you're working locally. Once the script is online you can use an absolute path, either;
- http://www.mywebsite.com/path/to/triangle.gif, OR
- /path/to/triangle.gif,
So the triangle shows regardless of what level you're at, while still referencing the one script file (no multiple instances in sub-levels).