Browse
http://RossM.net and go to the
Java section.
There should be a menu in the top left with 'Java' as one of the entries.
If not, try clicking the arrow in the bar at the top of the page which takes you to the Site Map and search for 'Java' there.
Go to the 'Expanding Text' section of the Java page, and check that the example is still on this page (if not follow any new link to the example).
Right-click the page and 'View Source' to get the Java
Script for the example:
Look in the '<head>' section at the top of the page source code. You want the '<style>' and '<script>' sections.
Paste and edit the '<style>', '<script>' and example '<div>' sections to your new file and edit them to suit.
Your divs now have a class
<div id="Script" class="fold">
and the div style now uses div.fold instead of just div:
<style>
div.fold {display:none; margin:0 0 4px 4px; padding:0 0 2px 4px; border: 2px solid #888; border-top:none; border-right:none; -moz-border-radius-bottomleft:1em;}
</style>