The jQuery library can be used to easily show or hide DIVs within your HTML pages. The following example shows how it can be done.
Include the jQuery libary in the head section of your HTML page :
<script src=\"http://www.yoursite.com/jquery-1.4.4.js\"></script>
http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js
<script type="text/javascript">
<!--
function togglebox(box_id) {
$("#" + box_id).fadeToggle("slow");
};
function showbox(box_id) {
$("#" + box_id).fadeIn("slow");
};
function hidebox(box_id) {
$("#" + box_id).fadeOut("slow");
};
// -->
</script>
hidebox('mydiv1');
showbox('mydiv1');
togglebox('mydiv1');