1340 Part V . Putting JavaScript to Work (Make my own web site)

1340 Part V . Putting JavaScript to Work while all others are set to 0. These settings allow the first display of the outline to show all the root nodes, with all other items collapsed. // initialize current state storage field if (!getCurrState()) { // must be hard-wired to outline structure with 1 for // each indent0 class item, 0 for all others initState = 1000010000 setCurrState(initState) } With the initial outline state saved in the above code, the following statements execute at load time to write a ) } Initial settings of the displayproperty for IE4+ can be done programmatically only after the document loads (the tags must exist before their properties can be adjusted). The following init() function is called from the onLoad event handler. Each browser class has a different set of initialization tasks. Both branches rely on the current state setting, so that value is retrieved just once. In the CSS branch, the style.display properties for hidden blocks are set to none. For NN4, on the other hand, the style.display properties are set as the page reloads, but this loop swaps the widget image for expanded blocks to the minus.gifversion. // for CSS, initialize flagged tags to style display = none // for NN4, set affected images to minus.gif function init() { var visState = getCurrState() if (isCSS) { for (var i = 0; i < visState.length; i++) { if (visState.charAt(i) == 0 ) { // branch for browser object capability if (document.all) { document.all( a + i).style.display = none } else if (document.getElementsByTagName) { document.getElementById( a + i).style.display = none } } } } else if (isNN4) { for (i = 0; i < visState.length; i++) {
You want to have a cheap webhost for your apache application, then check apache web hosting services.

Leave a Reply