www.insideDHTML.com
Inside Dynamic HTML | Fun and Games | The 10K Demo | XML Online | CSS Online | Resources
Write Once! | DHTML Toolkits | Inside Techniques | Inside Scriptlets

DHTML Toolkits/

 
The Outline Toolkit

Introduction
Defining Outlines
Hooking Events
Outline ToolkitIE4

Download Library

 

Hooking Events

Once you finish defining your outline, you may want to define event handlers for responding to the user's selection. Adding an event handler to an outline item is as easy as adding an ONCLICK handler to the <P> containing the outline text:

    <LI><SPAN class=outlineMore>+</SPAN>
        <P ONCLICK="window.location='/home.asp'">Go Home</P>

The <P> element specified on each list item does not add any extra space to the rendering. It is required so that the code can distinguish between the user clicking in the margin area reserved for the + - indicators, and the user clicking on the text.

Now you have seen how to manually define and create outlines. Our Outline ToolkitIE4 helps you through the process and automatically generates the appropriate HTML.