curiouswebster
asked on
need an HTML table of contents which can be turned on or off by the user
I'd like a table of contents and considered using an entire pane on one side, but it took up to much room.
Any suggestions about how to keep the functionality of a table of contents but have it be an option to the user?
thanks,
newbieweb
Any suggestions about how to keep the functionality of a table of contents but have it be an option to the user?
thanks,
newbieweb
So whenever the image is clicked the toc will shown if it is hidden. if the image is clicked again the toc will hide.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
as <div id="toc" style="display:none">
....
....
...
</div>
Now add a button/small image for table of contents
<img src="yourimage" onclick="showToc()">
add javascript fn
function showToc()
{
if(document.getElementById
document.getElementById('t
else
document.getElementById('t
}