Jump to content

drop-in menu.


cpugeek

Recommended Posts

Well, That's a <div> positioned before all the other content with height 0.I'd do some HTML like this:

<div id="contents"><!-- All the contents here --></div><div><a href="java script: void(0)" onclick="toggle()">Table of Contents</a></div>

When you click the link the toggle function determines if the box should open or close, calling a function in each case. The opening function will have a setTimeout() that keeps adding one pixel to the height of the <div> until it reached the desired height. The closing function would keep subtracting a pixel until it got to 0.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...