loading tree images
Lucia Sheehan <[email protected]>
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
I'm using struts-menu to display a tree using the ListMenu Displayer. However, I'm finding that there is a big hit on loading the tree because the images are being downloaded from the server each time the menu is painted. On load of the menu, each plus and minus gif is loaded and this is done again when the tree is expanded. The images are referenced in menuExpandable.js and menuExpandable.css. I've tried to do this using javascript - e.g. (new Image(80,20)).src = "images/plus.gif"; Has anyone any idea how to preload these images so they are retrieved from the server only once? ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285