Hello Randell,

This will work

<script language="JavaScript">
<!--
function hide(object) {
    if (document.getElementById && document.getElementById(object) != null)
         node = document.getElementById(object).style.visibility='hidden';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'hidden';
    else if (document.all)
         document.all[object].style.visibility = 'hidden';
}
function show(object) {
    if (document.getElementById && document.getElementById(object) != null)
         node = document.getElementById(object).style.visibility='visible';
    else if (document.layers && document.layers[object] != null)
        document.layers[object].visibility = 'visible';
    else if (document.all)
        document.all[object].style.visibility = 'visible';
}

//-->
</script>

<style type="text/css">
        .myStyle {
            position: absolute;
            visibility: visible;
        }
</style>


<div align="center">
<a href="javascript:show('myLayer1');">Show Table</a>
|
<a href="javascript:hide('myLayer1');">Hide Table</a>
</div>
<br>

<div id="myLayer1" class="myStyle">
<table bgcolor="#ffffcc" align="center">
<tr>
        <td>
        This text is initially hidden from view
        <br>
        <br>
        
        </td>
</tr>
</table>
</div>



Tuesday, March 25, 2003, 10:03:49 AM, you wrote:

RBA> Does anyone know how to use JS to close table contents?

RBA> I have a few tables within a main table. If I click on
RBA> Close Table A, then Table A is closed but the rest 
RBA> remains shown. However a button should now show
RBA> to re-display Table A.

RBA> Any references anyone has to this is greatly appreciated.


RBA> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=5
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=5
Get the mailserver that powers this list at http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
                                

Reply via email to