1353Chapter 52 .Application: Outline-Style Table of Contents // (Top web site)
1353Chapter 52 .Application: Outline-Style Table of Contents // retrieve matching version of plus images function getCollapsedWidgetState(imgURL) { if (imgURL.indexOf( Start ) != -1) { return collapsedWidgetStart } if (imgURL.indexOf( End ) != -1) { return collapsedWidgetEnd } return collapsedWidget } Wrap up There s no question that the amount and complexity of the code involved for the OPML version of the outliner are significant. The pain associated with developing an application such as this is all up front. After that, the outline content is easily modifiable in the OPML format (or perhaps by some future editor that produces OPML output). Even if you don t plan to implement an OPML outline, the explanation of how this example works should drive home the importance of designing data structures that assist not only the visual design but also the scripting that you use to manipulate the visual design. Further Thoughts The advent of CSS and element positioning has prompted numerous JavaScripters to develop another kind of hierarchical system of pop-up or drop- down menus. You can find examples of this interface at many of the JavaScript source Web sites listed in Appendix D. Making these kinds of menus work well in NN4, IE4+, and W3C DOMs is a lot of hard work, and if you can adopt code already ironed out by others, then all the better. Most of the code you find, however, will require a fair amount of tweaking to blend the functionality into the visual design that you have or are planning for your Web site. Finding two implementations on the Web that look or behave the same way is rare. As long as you re aware of what you ll be getting yourself into, you are encouraged to check out these interface elements. By hiding menu choices except when needed, valuable screen real estate is preserved for more important, static content. …
Looking for affordable and reliable webhost to host and run your business application? Then look no more and go to servlet web hosting services.