Hello all
Was wondering if it was possible for <div>s to be subs to each other.
Like if the main div is hidden the subs will be as well without having to
hide each one.
example:
<DIV name="main1">
<DIV name="sub1main1"></div>
<DIV name="sub2main1"></div>
</div>
<Div name="main2">
<DIV name="sub1main2"></div>
<DIV name="sub2main2"></div>
</div>
currently I can hide all three:
function hide(){
document.all.main1.style.visibility= 'hidden';
document.all.sub1main1.style.visibility= 'hidden';
document.all.sub2main1.style.visibility= 'hidden';
document.all.main2.style.visibility= 'visible';
document.all.sub1main2.style.visibility= 'visible';
document.all.sub2main2.style.visibility= 'visible';
}
but I was hoping it might be possible to hide the subs just by hiding the
main.
Thanks for any help
Rodney
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists