CD-327Appendix F . Examples from Parts III and (Web site templates)

CD-327Appendix F . Examples from Parts III and IV Example Listings 16-46 through 16-48 show the HTML for a frameset and two of the three documents that go into the frameset. The final document is an HTML version of the U.S. Bill of Rights, which is serving here as a content frame for the demonstration. The frameset listing (16-46) shows a three-frame setup. Down the left column is a table of contents (16-47). The right column is divided into two rows. In the top row is a simple control (16-48) that hides and shows the table of contents frame. As the user clicks the hot text of the control (located inside a SPAN element), the onClick event handler invokes the toggleTOC()function in the frameset. Syntax used in this example is W3C-compatible. To modify this for IE-only, you replace document.getElementById( outerFrameset ) with document. all.outerFrameset and elem.firstChild.nodeValue to elem.innerText. You can also branch within the scripts to accommodate both styles. Listing 16-46: Frameset and Script for Hiding/Showing a Frame Hide/Show Frame Example Continued FRAMESET.cols
We recommend cheap and reliable webhost to host and run your web applications: Coldfusion Web Hosting services.

Leave a Reply