<a href="http://www.moonreturn.com/personel/expandall.html">Demo here: </a>
<strong>For all source code click above link and see view source</strong>
function expandAll(){
for(i=1;i<=6;i++)
{
document.getElementById('rmenu'+i).style.display="block";
document.getElementById('a'+i).style.display="none";
document.getElementById('aa'+i).style.display="block";
}
}
function contractAll(){
for(i=1;i<=6;i++)
{
document.getElementById('rmenu'+i).style.display="none";
document.getElementById('a'+i).style.display="block";
document.getElementById('aa'+i).style.display="none";
}
}
function showrmenu(rowno){
contractAll();
document.getElementById('rmenu'+rowno).style.display="block";
}
function showcmenu(id)
{
document.getElementById('rmenu'+id).style.display="none";
document.getElementById('a'+id).style.display="block";
document.getElementById('aa'+id).style.display="none";
}
function showemenu(id)
{
document.getElementById('rmenu'+id).style.display="block";
document.getElementById('a'+id).style.display="none";
document.getElementById('aa'+id).style.display="block";
}
Page views:268